![]() |
PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: PHP5.4.6 & Apache2.2.22 Issue ???!!!!! (/showthread.php?tid=56931) |
PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Horvat[/eluser] Recently I installed Ubuntu 12.10(64bit)on my pc, and i have a problem with loading FW webpages, if there some concrete php file it will load it. BUT, if its from (for example: CodeIginter FW) Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if I Put http://localhost/CodeIgniter_Test/CodeIgniter_2.1.0-skeleton/site/index or http://localhost/CodeIgniter_Test/CodeIgniter_2.1.0-skeleton/site/other I have 404 error, WHY IS PHP NOT WORKING RIGHT??!?!?! PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Aken[/eluser] If you didn't implement an .htaccess file to rewrite your URLs, your examples would be located at http://localhost/CodeIgniter_Test/CodeIgniter_2.1.0-skeleton/index.php/site/index Read the user guide about how the URLs work. PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Horvat[/eluser] I have implementened before .htaccess in root Code: RewriteEngine on Maybe i need to change permission for .htaccess, is it possible that apache don't see it? PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Aken[/eluser] You'll probably need a RewriteBase option that specifies the subfolder that your CI installation is in. I bet if you go to the URL I mentioned with index.php it works fine (which means it's a rewrite issue in your .htaccess). PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Horvat[/eluser] Yes you're right, but how to fix my 'rewrite issue in your .htaccess' PHP5.4.6 & Apache2.2.22 Issue ???!!!!! - El Forum - 01-31-2013 [eluser]Aken[/eluser] [quote author="Aken" date="1359684617"]You'll probably need a RewriteBase option that specifies the subfolder that your CI installation is in.[/quote] |