Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found #354

Closed
JeffCimmino opened this issue Jan 14, 2014 · 7 comments
Closed

404 Not Found #354

JeffCimmino opened this issue Jan 14, 2014 · 7 comments

Comments

@JeffCimmino
Copy link

Hi @panique ,

I have been working with the professional application, and I'm experiencing some errors with changing pages. Like a similar problem on here, /index/index works fine, but navigating to other pages, such as overview/index, problems occur. I will include some background on various settings that could be useful for troubleshooting:

System: 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64
Server: Apache2
mod_rewrite is enabled

/php-login/application/config/config.php URL:

define('URL', 'http://[IP-ADDRESS]/php-login/');

root/php-login/ .htaccess file:

# Necessary to prevent problems when using a controller named "index" and having a root index.php
# more here: http://stackoverflow.com/q/20918746/1114320
Options -MultiViews

# turn rewriting on
RewriteEngine On

# When using the script within a sub-folder, put this path here, like /mysubfolder/
# If your app is in the root of your web folder, then please delete this line or comment it out
RewriteBase /php-login/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

If I can provide any other helpful information, please let me know!

untitled2
http://[ipaddress]/php-login/index.php Works just fine.
untitled
loading into any other page displays this 404 not found message. The 404 changes based on what page I link to.

@gsanox
Copy link

gsanox commented Jan 14, 2014

Hi, check AllowOverride is set to All in your apache configuration.

@JeffCimmino
Copy link
Author

Something along the lines of this? Because when I did that, it still does not work.

<VirtualHost *:80>
         ServerAdmin root@localhost

         DocumentRoot /var/www
         <Directory />
                Options FollowSymLinks
            AllowOverride All
         </Directory>
         <Directory /var/www/>
                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 None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
         </Directory>


         ErrorLog ${APACHE_LOG_DIR}/error.log

         LogLevel warn

         CustomLog ${APACHE_LOG_DIR}/error.log

         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>

@gsanox
Copy link

gsanox commented Jan 14, 2014

Did you restart apache?

@JeffCimmino
Copy link
Author

Yes, I did. Should that change be made in '/sites-available/default', or '/apache2/apache2.conf'?

@gsanox
Copy link

gsanox commented Jan 14, 2014

In sites-available

@JeffCimmino
Copy link
Author

Thank you, that worked! I had been changing the config in /sites-available/default, when I should have been changing it in /sites-available/000-default.conf! You were great, thanks!

@panique
Copy link
Owner

panique commented Jan 14, 2014

The install tutorial is for Ubuntu 12.04 LTS with Apache 2.2 and PH5.3, you have probably used something different here. For other people with the same issue: What exactly have you used ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants