Click to See Complete Forum and Search --> : php doesn't show


edhan
09-12-2003, 02:18 AM
Hi

I have re-installed my RH8.0 and the php doesn't show for the phpinfo.php. I viewed the source and I can see that it is there but on the screen is blank? Before I re-install, I can see the phpinfo.

Any way I can check what is wrong?

Thanks!

Regards
Edward Han

mrBen
09-12-2003, 03:13 AM
Sounds like it could be that Apache has not been configured to know that PHP is there.

edhan
09-12-2003, 03:31 AM
Hi

But I have already installed php-4.3.1.

How to check the configuration to work ?

Regards
Edward Han

theN
09-12-2003, 04:11 AM
How did you install PHP vis-a-vis Apache - source install / RPMs & is PHP loadable module / statically built?

If PHP is a loadable module i.e. PHP was configured with --with-apxs2, then look for the following lines in httpd.conf
------
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
------

Either way, go through the respective pages in PHP and Apache manuals.

regards
theN

edhan
09-12-2003, 07:08 AM
Originally posted by theN
How did you install PHP vis-a-vis Apache - source install / RPMs & is PHP loadable module / statically built?

If PHP is a loadable module i.e. PHP was configured with --with-apxs2, then look for the following lines in httpd.conf
------
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
------

Either way, go through the respective pages in PHP and Apache manuals.

regards
theN

It is loadable module as I configure with --with-apxs and it has the following lines in httpd.conf as you have mentioned. But it still doesn't show when executing phpinfo.php.

Very Strange.

Regards
Edward Han

mrBen
09-12-2003, 08:40 AM
Any errors in your logs?

edhan
09-12-2003, 09:17 AM
Originally posted by mrBen
Any errors in your logs?

No error. That is why it is strange. Can't figure out. Anyway, I decided to re-install again and see if I can get it working.

Regards
Edward Han

theN
09-12-2003, 05:20 PM
Hi

* Whats the output of ./apachectl -l (small L)?
* Can you access the regular index.html when apache's on?
* configure with --with-apxs...it *must* be apxs2, not apxs
* BTW, apache must be running ;) for PHP to work

can't think of what else could be wrong. You sure there're no clues in the log files (both error and access)?

regards
theN

edhan
09-12-2003, 08:14 PM
Originally posted by theN
Hi

* Whats the output of ./apachectl -l (small L)?
* Can you access the regular index.html when apache's on?
* it *must* be apxs2, not apxs
* BTW, apache must be running ;) for PHP to work

can't think of what else could be wrong. You sure there're no clues in the log files (both error and access)?

regards
theN


Okay, finally I am able to run php. Now I am loading the mysql database and see if it works as the last time I had a hard time trying to get them working. I have loaded the php-mysql and hope this time it will run.

Regards
Edward Han