WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 404 error when tried on localhost ubuntu (3 posts)

  1. johnyc
    Member
    Posted 2 years ago #

    I've setup multisite wp on ubuntu server. I can see homepage & wp-admin console/dashboard. All other pages are giving 404 errors.
    I searched on the support forums & found the solution but & I tried to change /etc/apache2/sites-available/default file but no success.

    <VirtualHost *:80>
    	ServerAdmin webmaster@localhost
    
    	DocumentRoot /var/www
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride None
    	</Directory>
    	<Directory /var/www/>
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride None
    		Order allow,deny
    		allow from all
    	</Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride None
    		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
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    </VirtualHost>

    I changed AllowOverride All from None & added 'fileinfo option' but know success.
    Kindly help me getting this done.

    Thank you.

  2. Can you see pretty permalinks on your main site?

  3. johnyc
    Member
    Posted 2 years ago #

    Thank you @Ipstenu
    wow! when I change parmalinks to default '/?p=3'
    it works. other custom options doesnt work.

    haha funny! why it's so?
    Issue resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic