Re: Can't execute PHP script
| From: | brian | Date: | Sun, 09 Sep 2007 14:32:36 +0000 |
| Subject: | Re: Can't execute PHP script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261870@lists.php.net to get a copy of this message | ||
Børge Holen wrote:
On Saturday 08 September 2007 17:21, brian wrote:Oh, right--Debian. My bad.Randy Patterson wrote:no he should not. this resides within the php5.load file. He must symlink his files. Debian does not utilize httpd.conf for any specific reason since apache2, it's just there for compability reasonsHey, [Note:] This is a different problem from the one I posted earlier today. I can't get my LAMP server setup to run PHP script. As returned by apache2ctl, I am running; Apache/2.2.4 (Debian) PHP/5.2.3-1+b1 I point my browser to; http://localhost/apache2-default/test.php The file test.php contains this code; <html><body> <h1>PHP Test</h1> <br /> <?php print "Hello World!"; ?> </body></html> The browser outputs only; PHP TestCheck in your httpd.conf that you have all of the following: LoadModule php5_module modules/libphp5.so AddHandler php5-script phpAddType text/html phpMake sure they're in there and uncommented. And that you restart httpd.brian