Click to See Complete Forum and Search --> : error with php install?


wujimon
02-08-2003, 01:32 AM
Hello.

I chose to install apache/php/mysql when I installed RedHat 8. I have verified that apache is running, in addition, I have verified that mysql works with php via various php pages in addition to the phpmyadmin being installed. I have tested my my php with the following pages:

test.php: contains the phpinfo() and it shows a list of all the properties and such
testdb.php : written to verify that php can communicate and log into mysql

Both of these work and my question is I've read that I probably have php installed as a module and that it might need to be installed as an interpreter? I'm a bit confused b/c I thought the php installation was supposed to be either or. In addition, I was under the understanding that if I was able to get info with the phpinfo() then that pretty much verified that php was installed correctly.

Can anyone shed some light on this matter? Is there some way that I can verify that I am able to run php scripts? Is installing php different to run php scripts different from installing as a module?

Thanks for your time.
wuji

wujimon
02-08-2003, 03:13 AM
Also, I've made sure to verify/add the following to httpd.conf:

========================
LoadModule php4_module modules/libphp4.so

AddType application/x-httpd-php .php

Action application/x-httpd-php /php4/php

ScriptAlias /php4/ "/usr/bin/"
========================

Now, when I try to test php pages, I just seem to get jumbled garbage. I don't beleive that "Action" or "ScriptAlias" was defined before. Are these needed? Any suggestions?

Thanks for your time.
wuji

mdwatts
02-08-2003, 09:35 AM
Since I don't know the answer, how about if I move this to the Web Serving forum in hopes one of the JL members that hangs out in that forum will be able to provide assistance.

Choozo
02-08-2003, 05:02 PM
PHP is usually installed as a Apache module, but it can additionally be installed as an interpreter - enables you to run PHP scripts from the command line.

AFAIK the later releases of PHP (4.3.x) install both options as default, but you need to specify this option during ./configure for the earlier versions

wujimon
02-10-2003, 11:40 AM
The issue has been resolved. It was an issue with the "short_open_tag" option in php.ini. For the particular script in question, this needed to be "On". Thanks again for your help.


wuji.