Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a server running Debian stable with Apache and PHP5.
I have a Perl web application running perfectly, but when I try and set up a PHP web application (a booking system in this case) the index.php does not display (blank page). This has happened on both PHP systems that I have tried (CRBS and ERBS).
A simple PHP test page works. I have tried "chowning" the contents with www-data and "chmoding" it with 777 and that does not make any difference.
; instead (see below). Keeping display_errors enabled on a production web site
; possible values for display_errors:
;display_errors = "stderr"
display_errors = On
; Even when display_errors is on, errors that occur during PHP's startup
evo2,
Thanks but no that's not the problem. Even specifying the index.php in the URL does not help. With a test index.php page (with a simple PHP echo or similar) works fine.
I don't think that the page size is just 20 bits long.
Take a look at the beginning of index.php to see if it starts with "<?php" or just "<?"
In the second case use "short_open_tag = on" in php.ini and see if it works. Of course you have to restart apache after changing php.ini.
If I add an "echo 'testing';" after the <?php in the index.php that is not working, the word "testing" is displayed on the page. If I put it at the bottom it is not displayed. There must be something in these pages that is stopping the page from loading. Could it be something to do with MySQL?
Could be a mysql connection problem among other things, but without the errors output it's difficult to say.
Use the following in php.ini and see if you get any output:
Code:
display_errors = On
display_startup_errors = On
error_reporting = E_ALL
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.