• hi there ,

    I can solve this issue. I try to enable permalink for my blog but it doens’t work! Now let me tell you the details:

    -in my blog’s directory i have the .htaccess (777 permissions) file with the following content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 88.198.207.4
    deny from 88.198.36.73
    deny from 91.214.44.231
    deny from 91.214.44.230

    -Apache directives in /etc/apache2/sites-available/

    ServerAdmin [email protected]
    ServerName test.com
            ServerAlias www.test.com
    
    DocumentRoot /home/admin/path/siteroot
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride All
    	</Directory>
    
    <Directory /home/admin/path/siteroot>
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride All
    		Order allow,deny
    		allow from all
    </Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride All
    		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all
    	</Directory>
    
    	ErrorLog /var/log/apache2/error.log
    
    	# Possible values include: debug, info, notice, warn, error, crit,
    	# alert, emerg.
    	LogLevel warn
    
    	CustomLog /var/log/apache2/access.log combined
    	ServerSignature On
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride All
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    <Directory /home/admin/path/siteroot>
    		Options FollowSymLinks
    		AllowOverride All
    </Directory>

    – mod_rewrite it’s on

    Please help me because i really don’t know what’s happening!

Viewing 10 replies - 1 through 10 (of 10 total)
  • What happens, do you get 404 errors? .. blank page? ..

    Thread Starter helyos

    (@helyos)

    Every change i make i get ” HTTP 404 – File not found ! ”

    Try adding the symlinks option to the top your htaccess..

    Options +FollowSymLinks

    Use the + to enable the option, without the plus, you’re just inheriting (iirc).

    Not a big apache user, only in WAMP environments, so forgive me if the above doesn’t help at all… ??

    Thread Starter helyos

    (@helyos)

    I have made the changes

    ServerAdmin [email protected]
    ServerName test.com
            ServerAlias https://www.test.com
    
    DocumentRoot /home/admin/path/siteroot
    	<Directory />
    		Options +FollowSymLinks
    		AllowOverride All
    	</Directory>
    
    <Directory /home/admin/path/siteroot>
    		Options Indexes +FollowSymLinks MultiViews
    		AllowOverride All
    		Order allow,deny
    		allow from all
    </Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride All
    		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all
    	</Directory>
    
    	ErrorLog /var/log/apache2/error.log
    
    	# Possible values include: debug, info, notice, warn, error, crit,
    	# alert, emerg.
    	LogLevel warn
    
    	CustomLog /var/log/apache2/access.log combined
    	ServerSignature On
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride All
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    <Directory /home/admin/path/siteroot>
    		Options +FollowSymLinks
    		AllowOverride All
    </Directory>

    BUT NO IMPROVEMENTS ! THE SAME OLD 404 ??

    Any other ideas?

    Thank you in advance!

    What’s showing up in the apache error logs?

    Thread Starter helyos

    (@helyos)

    [Wed Dec 23 21:37:10 2009] [error] [client 92.83.218.50] PHP Notice: XML error: > required at line 36, column 15 in /home/admin/path/test.com/wp-includes/class-simplepie.php on line 1792, referer: https://www.test.com/wp-admin/
    [Wed Dec 23 21:37:15 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:37:17 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:37:20 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:37:26 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:37:31 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/wp-content/themes/images/favicon.ico
    [Wed Dec 23 21:37:32 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/radio-dance, referer: https://www.test.com/
    [Wed Dec 23 21:37:32 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:37:46 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:39:03 2009] [error] [client 92.83.218.50] File does not exist: /home/admin/path/test.com/favicon.ico
    [Wed Dec 23 21:40:39 2009] [error] [client 66.249.71.250] File does not exist: /home/admin/path/test.com/dedicatii-radio.html

    92.83.218.50 – it’s my ip. and these errors are because of not working permalink. I think….

    I don’t use Apache extensively enough to understand your configuration above, but i’d guess there’s something there that needs adjustment (log looks fine though).

    I use Uniform Server for my local testing environment, so it comes with Apache, PHP etc.. all installed and pre-configured..

    Is your site functional otherwise, do the directives work ok under normal operation (ya know, minus pretty permalinks).

    Thread Starter helyos

    (@helyos)

    Yap everything works fine. Only when i use permalinks is not working! ??

    Merry Christmas t31os_ !

    Hey. I moved a WordPress blog from one Ubuntu server to another. Mine worked just fine as well for the main page, but the permalinks weren’t working for the post addresses for me either.

    I just realized that I needed to enable mod rewrite.

    # a2enmod rewrite
    Enabling module rewrite.
    Run '/etc/init.d/apache2 restart' to activate new configuration!
    root@ubuntu:/etc/apache2/mods-enabled# /etc/init.d/apache2 restart
     * Restarting web server apache2                                                                                              ... waiting                                                                                                          [ OK ]
    root@ubuntu:/etc/apache2/mods-enabled#

    @helyos

    Any resolution to this? I have the same problem.

    Cheers

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalink not working on ubuntu/apache2’ is closed to new replies.