Click to See Complete Forum and Search --> : php loading problem
Hello,
I installed apache 1.3.14 and then tried to install php4.0.4, and having some problems on linux redhat 6.1. What happens when i try to run phpinfo i get a prompt to save the file and it wont show anything, this is my first time installing it so i dont know too much about it. How i configured apache was
./configure --prefix=pathto/apache \
--enable-module=all \\
--enalbe-shared=max
make
make install
then with php
./configure --with-mysql=pathto/mysql \\
--with-apxs=pathto/apache/bin/apxs \\
--with-other-options
make
make install
then cp php.ini-dist php.ini
i edit the httpd.conf file and take out the two addhandlers so php4 can be used, and created a file with <? phpinfo() ?> and <? phpinfo(); ?> in it but two separate files though.
if someone can lend some help thanks
Have you restarted Apache? (apachectl restart)
Do you have this line (uncommented!) in httpd.conf:
LoadModule php4_module libexec/libphp4.so
And also this:
AddType application/x-httpd-php .php
Make sure that the file has the same extension as the one in the AddType config line.
-jani
yep did all that, and same problem
i've been having my share of grief with a PHP 4.0.4 installation as well.
other random thoughts:
1 - did you try using the longer tags, (eg
<?php )? I believe that the default allows the short tags on, but one of your 'other options' may have turned them off in php.ini
2 - do you have other modules linked statically into httpd (i.e. are you sure that you enabled DSO support in your HTTPD install) - i did the same damn thing once.
3 - i've finally realized that I need to recompile MySQL from scratch without pthreads support (which i assume will mean a performance hit), as my httpd kept coring every time i loaded libphp4.so in.
4 - did you copy php.ini-dist to your config path (either /usr/lib or whatever you specified in the configure step).
good luck,
pat
Hi Pat,
I have been having all sorts of problem since I started to install mysql, apache, and php4.0.4 on my Solaris sparc 2.6 box. I was able to install mysql, apache, and configured php, but when I tried to do the "make" step I have the following errors:
=> ...
(file ext/bcmath/.libs/libbcmath.al(number.lo) and file ext/bcmath/.libs/libbcmath.al(sqrt.lo));
ld: fatal: symbol `bc_raise' is multiply defined:
(file ext/bcmath/.libs/libbcmath.al(number.lo) and file ext/bcmath/.libs/libbcmath.al(raise.lo));
ld: fatal: File processing errors. No output written to .libs/libphp4.so
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /home/php-4.0.4
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
-------------------------------------
Are you familia with the error? I am wondering if you can give me some advise.
many thanks
jonathan
hi friend,
I have the same problem which u faced on loading a php file, when i tried to load a .php file saveas dialog box pops up.
I have installed apache1.3.1 and and i have taken all the step suggested by the replies given to ur query.
Still i have the same problem. can u pls help me in solving this problem.
-- prasad.
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.