Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter Spindler

    (@spindler)

    Hello Clayton James,

    Yes It appears that way… However, this is not my first attempt in setting up this server. My first attempted used the var/www directory. When I first started to set it up everything seamed ok but then I started to develop some security and system update issues that caused more grief then I wanted and I eventually had to format the drive and start over again with a fresh install. I need to avoid this from happening again so I want to spend just a little more time in investigating the issues and all possible solutions before I open a new security/config vulnerability.

    Thanks for your help. I am taking your ideas into consideration and will have to implement your idea if I cannot overcome this pointing issue.

    Spindler

    Thread Starter Spindler

    (@spindler)

    This is useful. However, I am not sure how this will help me. Is there a way of fix or redirect wordpress so it follows the apache2 link to the correct location?

    WordPress want to save a file on the /var/www/html/wp-content/uploads/2011/02 directory. However that file does not exist. it looks like var/www/ and inside this folder is an apache2 file for my server admin page. All other redirect files are managed by apache2 and point to each website.

    I think the problem might be with apache2? Any ideas how this might be able to be fixed?

    Thread Starter Spindler

    (@spindler)

    Thanks a lot. This has helped assign my USER name to each directory and file.

    However, wordpress is still pointing to the var directory. Not really sure how to correct this. i attempted to upload a file and this is the error I see.

    “picture.jpg” has failed to upload due to an error
    Unable to create directory /var/www/html/wp-content/uploads/2011/02. Is its parent directory writable by the server?

    Thread Starter Spindler

    (@spindler)

    I tried this. Weird thing happened. When I changed the owner on the files and folder to USER:www-data my website went down.

    I could not access the website at all using a browser, such as firefox or explorer. I changed the file permission on the wp-login.php file to 777 to see if I can access that page. However, I could not.

    I change the directorys and file owner back to www-data:www-data and the problem went away. So I know that www-data:www-data allows everyone to access the site. However USER:www-data prevents everyone from access the site.

    What could be preventing USER:www-data from working as intended?

    Thread Starter Spindler

    (@spindler)

    To answer your questions.

    1. I am running Ubuntu 10.04 with Gnome 2.30.2. I installed a LAMP server using the Ubuntu Software center. I am also running vftp. I installed GNome, LAMP and vftp using the software center.

    2. I have 9 websites. Each one uses a different wordpress version. Some are old. I originally had the sites on a hosting service and I copied the files over. Some of the sites I made from scratch on this server. I assume all are displaying this problem. Most of the sites are work in progress or archive. I did not use apt-get, synaptic or a package management system.

    3. I am only concerned about one website right now. If I can get it fixed then I will apply the change to the rest of my sites and see what happens. If the fix does not work on the secondary sites it is not a big deal. I really need it on my primary site.

    4. Yes I am using the virtual server managed by Apache2. The virtual host file points to the home/USER/WEBSITE directory. It looks like it works ok. There is nothing pointing to the var directory. so I do not know why wordpress wants to update that location.

    Thread Starter Spindler

    (@spindler)

    This is helpful….but I need some more detail in how to do what you are saying.

    1. Do I need to change the owner so the files are writable by the server? Or do I need to set something so the server can write to the directory? What is the server user name?

    2. The comments you have here make sense to me. However, I tried this already and it did not help.

    One thing I failed to mention the actual error I got was the following….which shows that wordpress is attempting to write in a different location.

    “picture.jpg” has failed to upload due to an error
    Unable to create directory /var/www/html/wp-content/uploads/2011/02. Is its parent directory writable by the server?

    I attempted to write a picture file and wordpress was pointing to the VAR directory.

    A. Can I change wordpress so it writing into the write directory?
    B. Is it better to attempt to change the permissions in the var/html/wp-content director so wordpress can write to that file?

    Thread Starter Spindler

    (@spindler)

    Thank you very much this solved my problem. 🙂

    I now have my permalink working as required.

    Thread Starter Spindler

    (@spindler)

    Yes…..AllowOverride is the problem I was having.

    I was able to fix this by changing the virtual host.

    Thanks a lot.

    Thread Starter Spindler

    (@spindler)

    So I was able to positively determine that mod-rewrite in not enabled on my machine. I was able to look at the phpinfo file and it was not listed in the apache2 list of mods installed.

    I took a look at the Using permalink page mentioned by t-p. This helped alot.

    I found an article that is suppose to tell me how to enable mod_rewrite. http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache

    When I am attempting to enable the mod_rewrite….I am looking for the httpd.conf file but I do not know where it is. I thought it would be in the etc apache2 directory. I did find a file there but it did not contain any information….It is possible i could have created it myself.

    Does any one know of a better source to explain how to enable mod_rewrite?

    Thread Starter Spindler

    (@spindler)

    This look like instruction to install wordpress. Unfortunately I have done these steps without any issue.

    The real problem starts when I try to use pretty parmalink. I am currently investigating the parmalink FAQ page to see if I missed something.

    http://codex.wordpress.org/Using_Permalinks

    Thread Starter Spindler

    (@spindler)

    This is helpful….To bad it is not in the setup instructions someplace.

    I was able to set the user and group for all of the necassary files. So now I do not need to use 777 to change the .htaccess…..This is very nice.

    Ofcourse….changing the permissions did not solve my permalink issue. The problem still remains that when I use the default setting I can see the pages correctly even though the slug is in correct.

    I am not sure what else I could possible do to correct this issue. I am thinking wordpress does not like the way I installed 3.0.1 At least now the error I see is affecting all of my sites on my machine.

    Thread Starter Spindler

    (@spindler)

    I was able to assign wordpress a user name so that I did not need to use 777 to change the .htaccess.

    Here is a link to the forum I used to get the answer.

    http://ubuntuforums.org/showthread.php?t=1617555

    Thread Starter Spindler

    (@spindler)

    OK… I agree. I am having some problems with the Linux setup…..What do you think I should check?

    Could it be a problem with a permission setting. The only time I can get wordpress to update the .htaccess file is when I set the permission to 777. This tells me that WordPress does not have any user or group permissions.

    Do you know how I can change the permission of wordpress so it has a user level permission?

    Thread Starter Spindler

    (@spindler)

    I found something else that might shed some light.

    When I changed the permalink back to the default settings….That is of the form http://www.XXX.com/?p=123 the website works. I am able to see all of the webpages and all of the links work.

    When I go back and check the slug for each page. The page slugs have not changed. They are of the form http://www.pinterec.ca/%postname% NOT of the form http://www.XXX.com/?p=123 .

    This might indicate a bug in WordPress 3.0.1

    I still need this problem solved since I have links around the internet that point to my site.

    Does anyone know how to contact the developers of the next release of WordPress?

    Thread Starter Spindler

    (@spindler)

    I tried a new test to determine what might be happen.

    I created a new page using wordpress `”New Page”. I create a test page. While it was under construction I was able to “preview” the page. WordPress created a new test URL link to the site. It was of the form http://www.XXX.com/?page_id=2191&preview=true

    HOWEVER…..When I went and published the page the url changed to the expected address. Again the page url that was created appears like this:
    http://www.XXX.com/test/ However, the content shows a 404 error.

    I should also mention that the 404 error is only text . the theme of the website is not visible.

Viewing 15 replies - 1 through 15 (of 23 total)