Haven't played with PHP for a while so I'm not sure if things have
changed...
"#!" is not required for Apache to parse PHP. PHP uses "<?" and "?>" to
indicate executable PHP code:
http://www.devshed.com/Server_Side/PHP/Introduction/page2.html
Marco
----- Original Message -----
From: "Lou Spironello" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 19, 2000 11:49 AM
Subject: apache not executing php scripts
> Hello. I'm having difficulties getting php to work on my RH7.0.
> No php script will be processed inside an html page or if I read a page
with a
> php extention.
> I created a small script with the following:
> #!/usr/bin/php
> echo "hello, I'm a php script\n";
>
> The following output was produced by the script:
>
> X-Powered-By: PHP/4.0.3pl1
> Content-type: text/html
>
> echo "hello, i'm a php script\n";
>
>
> It looks like php is working fine. I also believe that my apache configs
are set
> up properly. But apparently
> not.
>
> Here is some info on my current setup:
>
> /etc/ld.so.conf contains:
> /usr/lib/mysql
> /usr/lib/mysqllibmysqlclient.a
> /usr/lib/mysqllibmysqlclient.so.9
> /usr/lib/mysqllibmysqlclient.so.9.0.0
> /usr/lib/mysqllibmysqlclient.so
>
> httpd -l produces the following output:
> http_core.c
> mod_so.c
> suexec: disabled; invalid wrapper /usr/sbin/suexec
>
> grep of php on /etc/httpd/conf/httpd.conf produces:
>
> LoadModule php_module modules/mod_php.so
> LoadModule php3_module modules/libphp3.so
> LoadModule php4_module modules/libphp4.so
> AddModule mod_php.c
> AddModule mod_php3.c
> AddModule mod_php4.c
> DirectoryIndex index.html index.htm index.shtml index.php index.php4
> index.php3 index.cgi
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php4 .php3 .phtml .php
> AddType application/x-httpd-php-source .phps
> <IfModule mod_php3.c>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3-source .phps
> <IfModule mod_php.c>
> AddType application/x-httpd-php .phtml
>
>
> I'm urrently running RH7.0
>
> following rpms installed:
>
> mod_php-4.0.3pl1-1
> php-4.03pl11-1
> php-imap-4.0.3pl1-1
> php-ldap-4.0.3pl1-1
> php-mysql-4.0.3pl1-1
> php-pgsql-4.0.3pl1-1
> php-manual-4.0.3pl1-1
> asp2php-gtk-0.75.5-1
> asp2php-0.75.5-1
> apache-1.3.14-3
> apache-devel-1.3.14-3
> apache-manual-1.3.14-3
>
> php.ini resides in /etc
>
> Any ideas would be appreciated.
>
> Thank you
> Lou
>
>
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list