• Resolved spineless

    (@spineless)


    I recently had to reload linux back onto my machine. I backup my website and attempted to reinstall it in my home directory.

    I am running Ubuntu 10.10 with a LAMP and WordPress 3.1

    The problem I have is that I can see my home page of the website but I cannot see any other pages such as the about us, contact, etc. When I click on the link on the home page to these internal pages I get the following error.

    Not Found

    The requested URL /about-2/ was not found on this server.
    Apache/2.2.16 (Ubuntu) Server at https://www.website2.ca Port 80

    I believe this might be an issue with the perma links but when I check the page in the admin area I can see the perma link is ok. When I preview the page I get the same error.

    The site is located in my HOME directory in Linux. It is located inside a user directory that has “DESKTOP USER” privileges. The directory for the website is owned by www-data with the group www-data. SO the directory and files look like this.

    Directories drwxr-xr-r-x www-data:www-data <directory name>
    Most files -rw-r—r– www-data:www-data <file name>

    How do I fix the permissions so that wordpress will display the internal website pages?

Viewing 5 replies - 1 through 5 (of 5 total)
  • arkgroup

    (@arkgroup)

    spineless,

    You should have .htaccess file with rewrite rules in wordpress folder. Do you have this file?

    Thread Starter spineless

    (@spineless)

    Yes I do have an .htaccess file. This was copied from the old install and it used to work…. and it should still work. As I mentioned the home page of the website can be displayed. Here is a copy of the highlights.

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    ……redirect 301 rules

    </IfModule>

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteRule ^index\.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    In addition to this information I took a look at the Apache2 error log and this is the last couple of errors that were generated.

    [Sat Mar 05 13:07:51 2011] [error] [client 100.2.18.14] File does not exist: /home/USER/www/WEBSITE2/about-2, referer: https://www.website2.ca/
    [Sat Mar 05 13:07:54 2011] [error] [client 100.2.18.14] File does not exist: /home/USER/www/WEBSITE2/services, referer: https://www.website2.ca/
    [Sat Mar 05 13:07:57 2011] [error] [client 100.2.18.14] File does not exist: /home/USER/www/website2/referrals-2, referer: https://www.website2.ca/

    I am not sure why ” The file does not exist”. Does this help?

    arkgroup

    (@arkgroup)

    Try to disable permalinks from admin panel and then enable it again. Also try to insert this line to the beginning of a .htaccess file:

    Options +FollowSymlinks

    Make sure mod_rewrite installed. Just create simple phpinfo file and look for mod_rewrite there.

    arkgroup

    (@arkgroup)

    [Sat Mar 05 13:07:51 2011] [error] [client 100.2.18.14] File does not exist: /home/USER/www/WEBSITE2/about-2, referer: https://www.website2.ca/

    It tries to open a directory index file in about-2 folder instead of rewriting the url for some reason.

    Thread Starter spineless

    (@spineless)

    Thanks a lot Arkgroup.

    I totally forgot to enable mod-rewrite. Once I did this everything is working now.

    Sudo a2enmode rewrite
    Sudo /etc/init.d/apache2 reload
    Sudo/etc/init.d/apache2 restart

    check phpinfo.php and it is good! Website is up again.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot view wordpress generated output files’ is closed to new replies.