Re: Problems installing PHP
| From: | crimix | Date: | Wed, 24 Jul 2002 21:23:07 +0000 |
| Subject: | Re: Problems installing PHP | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7894@lists.php.net to get a copy of this message | ||
Hi Chris,
when I started to use PHP I discovered the same problem because you have to add these lines of code into http.conf file
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
, add these lines into the file mod_php4 under ../http/modules
Variable:HTTPD_SEC_MOD_PHP
LoadModule:LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule:AddModule mod_php4.c
Text:PHP4
and place the module file "libphp4.so" under the exact path.
The last problem is to recompile apache specifing to implement PHP4 functionality.
I suggest you to read how to recompile your Apache with this option into the Apache's man page.
If you want I can send you a copy of apache compiled to support it directly.
Good luck and have a nice day
Tiziano Crimella
Chris Guest wrote:
I confess I am a newbie to PHP... I have a development server that I am using to test with. The server is running RH 7.3 Linux, Apache 1.3.19 and FrontPage 2002 extensions. I have read the README and docs on installing PHP...I can't get PHP to work. I don't see any errors while installing or unloading and reloading httpd. I created a test page with <? phpinfo(); ?> in it. When I try to go to that page I get a prompt that I am about to download a page. If I download the page and open it...all I see is <? phpinfo(); ?> . I just need PHP for a few script if it makes any difference. Any guidance would be greatly appreciated. -- Thanks, Chris Guest, WAN Administrator Grady County Schools Ph: (229)377-8258 Fax: (229)378-1199 Email: cguest@grady.k12.ga.us