codeigniter 1.7.2 not work in php 5.3 |
[eluser]Unknown[/eluser]
helloo all i have a problem here ... i installed my web (CodeIgniter 1.7.2) in webserver that use php 5.3,and when i try in browser it only show a blank page (all white)... i've checked all the connection configuration and its ok ... is it a problem with the framework not supported with php 5.3? so please help me ... :-)
[eluser]Watermark Studios[/eluser]
Framework works fine with php 5.3. I ran into the same problem and it turned out to be an issue with my Apache and php.ini configuration. Double check that in your Apache config file you have mod_rewrite loaded and the Directory settings set up properly. Here is a solid tutorial that helped me out quite a bit when I first ran into this problem. Good luck, Ken
[eluser]Narkboy[/eluser]
Are you using mod_rewrite? If not, you may have an issue with the default timezone. 5.3 *requires* that you set the default timezone, and will throw an error if you don't. If CI is setup to hide errors, you'll see nothing in the broswer. The timezone should be set in the php.ini file, but you can also set it in CI - in /application/config/config.php, add: Code: // Setting timezone to prevent php5.3 timezone errors on badly configured servers: Replace 'Europe/London' with the correct timezone for wherever your server is. Remember - set it to where your server is phycially located. If you are using mod_rewrite, then first try to get CI to work without, and add it in after. /B Edit - side note, in theory this works anywhere, but if you put it into index.php, you still get the error. Any idea why?
[eluser]Watermark Studios[/eluser]
It might be a good idea to turn PHP errors on so you can at least see what's going on. That's something I hadn't thought about before Narkboy mentioned it.
[eluser]altrano[/eluser]
Try $ sudo a2enmod rewrite and then $ sudo /etc/init.d/apache2 restart to enable mod rewrite without editing php.ini it has worked for me maybe its a help for you. |
Welcome Guest, Not a member yet? Register Sign In |