Hi,
I am very new to PHP and Apache web server.
Unable to configure Apache web server to PHP script as CGI binary.
Platfrom: Linux
PHP version: PHP 5.3.3
Apache version: httpd-2.2.16
Kind request to help me.
The info I have is:
1) Build Apache and install
- ./configure --enable-so
- make; make install;
2) Build PHP and install
- ./configure
- make; make install;
3) configure Apache
- Add following in mime module
AddType application/x-httpd-php .php
Action application/x-httpd-pophp "/php/php-cgi"
- Add Directory direcive
<Directoty "/usr/local/php/bin/">
Options Indexes FollowSymlinks
AllowOverrride None
Options None
Order allow,deny
Allow from all
</Directory>
4) restart Apache web server
5) run PHP script from web server.
Regards,
Ramu