Install CI in client server and getting blank page |
[eluser]Rubiz'[/eluser]
Hello all.. I have an CI app running perfectly in my server. When I install it in the client server, I have only a blank page. I discovered right now that the client server is a windows server running php. This may be the problem?
[eluser]Rubiz'[/eluser]
Before you ask it: I'm not using URL rewrite, there's no .htaccess file. If I use a common echo in the index.php page, it works fine. When I put the CI index.php again, it gets the blank page again. I already tried to install the CI as I downloaded it, but it didn't work too. Anyone?
[eluser]orfaust[/eluser]
perhaps the server hides errors by default try Code: ini_set('display_errors',1);
[eluser]Rubiz'[/eluser]
Where I could introduce this code? In the main controller?
[eluser]orfaust[/eluser]
that code should be executed in the first executed lines, but to achieve that you should edit codeigniter core files. Avoid that if you're not experienced: an easier way to know if your server is set to hide php errors is to upload a temporary file (ie info.php) which only contains Code: <?php phpinfo(); Search for Code: display_errors Once you know that value, you can take choose next step
[eluser]Rubiz'[/eluser]
omg 0_0 display_errors is off... what do I have to do?
[eluser]orfaust[/eluser]
switch to a linux server (joking) edit index.php and put that command (ini_set) on top then you should get an error (or some) instead of a blank page don't forget to disable the phpinfo execution, it may show sensible informations
[eluser]Rubiz'[/eluser]
The errors displayed: Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(application) is not within the allowed path(s): (d:\webs\) in D:\webs\baetam\index.php on line 96 Warning: require(system/codeigniter/Common.php) [function.require]: failed to open stream: Operation not permitted in D:\webs\baetam\system\codeigniter\CodeIgniter.php on line 38 Fatal error: require() [function.require]: Failed opening required 'system/codeigniter/Common.php' (include_path='.;C:\php5\pear') in D:\webs\baetam\system\codeigniter\CodeIgniter.php on line 38 What do I do?! OMG!!!
[eluser]orfaust[/eluser]
Quote:fatal error: require() [function.require]: Failed opening required 'system/codeigniter/Common.php' It seems CI has not the permissions to read its files. If you have ftp access you may be able to change directories and files permissions, but be careful, don't touch them if you don't know what you're doing. I can't help much with windows server permissions, try asking the host provider. Or someone else here... good luck
[eluser]Bart v B[/eluser]
Permissions from windows are almost the same as with Linux. http://www.windowsecurity.com/articles/U...sions.html |
Welcome Guest, Not a member yet? Register Sign In |