PHP not working with Apache, nor mysql
I am using RH8 and I am trying to get apache to work with php4 and mysql. MySQL is working fine, but PHP4 won't work when I visit a page with php on it. I have added "load module modules/libphp4.so to apache's httpd.conf and added the application line towards the bottom ( I forgot what it said). Does anyone have any suggestions on how to get php to work? Apache was installed by Tar.gz and php was installed by the initial instal of the system, so my files and folders are a little different.
serverRoot= /usr/local/apache2/ <if that even helps> Thanks in advance. |
If php was installed by the system from an RPM and you later installed Apache from source via a tarball then you'll need to reinstall a correct version of PHP from source for it to work. I wouldn't of thought that an RPM would do the job for you although I may be wrong. You can get the PHP source from http://www.php.net its pretty straight forward to install.
cheers Jamie... |
The people over at PHP Builder would probably be able to help you.
|
Thanks guys, would you happen to know how to compile php with apache? For some reason, the last time I tried, I kept getting very weird errors and by process of elimination I chose like 12 of the 15 things that i wanted to have compiled.
|
Quote:
|
You don't HAVE to if you install php as a module, but I like compiling it with php so that I have a single binary with everything in it.
Here's the compiling document I always look through whenever I have problems. |
Ok, i found out that apache2 does not like working ( nor do they suggest using) php4. So I am now using 1.3.27 and I am having some trouble with my httpd.conf in the "LoadModule" part where I add the php module. I get an error saying that I might have mispelled Loadmodule, even though in the httpd.conf it is exactly spelled right and I can tell because of the example right above it. Does anyone have any suggestions? My server is running now, but that is only cuz I commented out the load module for php.
thanks |
perhaps you could post the relevant section of httpd.conf for us....
|
Quote:
|
I have the load module for php4 uncommented when I try to have it running.
|
was that helpful?
|
Any help? I need some, and would appreciate it.
|
How did you install PHP from source or RPM? When you do the make install the installer should add the module for you. Mine looks like
Code:
# Example: Code:
AddType application/x-httpd-php .php cheers Jamie... |
Ok, I am having a fun hard time here. I have /usr/local/apache/modules ( had to add that dir) and /libexec. There is nothing in libexec, so I copied all of my modules from /usr/lib/httpd/modules/ to both libexec and modules. For some reason when I do that, they copy but turn into blank files.
what am I doing wrong? |
I am using this tutorial http://php.zakachalka.com/php_compile.htm
and the apxs is not working. I know for a fact that my directory location is correct but shit isn't working. Help me please |
All times are GMT -5. The time now is 08:57 AM. |