开发者

Index.php doesn't work on VPS but other files do

开发者 https://www.devze.com 2023-03-31 19:46 出处:网络
I\'ve got really interesting problem with my VPS. I\'ve already installed www server using this instructions set: http://wiki.debian.org/LaMp and everything looks fine, but index.php file doesn\'t w

I've got really interesting problem with my VPS.

I've already installed www server using this instructions set: http://wiki.debian.org/LaMp and everything looks fine, but index.php file doesn't work.

It's main file of whole service and it's contains some initializations and includes. When I add there some echo, it display correctly. It seems that include function doesn't work.

Php开发者_开发百科myadmin works fine, other php files works but no index.php. I'm pretty sure it's not problem with file because it works great on old hosting.

Any ideas? I've searched the net, reinstalled everything twice but still i don't have any solution and i'm starting to feel helpless. If you need some additional information - ask.


My main guess is, that it throws an error which is not displayed.

Try adding this to the top of your PHP file:

error_reporting(E_ALL);
ini_set('display_errors', '1');

that should show you all the errors.

alternatively, you can check your error-log

0

精彩评论

暂无评论...
验证码 换一张
取 消