PHP/Apache/Debian
I installed apache and php on my debian server. But php does not work with apache. I added LoadModule php4_module /usr/local/src/php-4.3.7/libs/libphp4.so and LoadModule php4_module libexec/libphp4.so to the httpd.conf. Then I restarted apache.
php4.so files: Quote:
EDIT: I could also not find a php.ini. Quote:
|
Re: PHP/Apache/Debian
Quote:
Or if you want to continue with you using your source compiled version I believe you will have to edit the file /etc/ld.so.conf and add /usr/local/src/php-4.3.7/libs to the file and then run /sbin/ldconfig to have the ld.so.cache updated so the system would find the new libraries. |
Thanks for the help so far. I am using Woody. I would like to continue using my source compiled because I am unsure of how to remove it to use apt-get. I did apt-get once but it didn't work either. The guy who was helping me told me to remove it and use a source compiled version. I editedthe file /etc/ld.so.conf and added /usr/local/src/php-4.3.7/libs to the file. Then I ran /sbin/ldconfig. Still no change. The guy who was helping me to set it up used a different file structure then the ones in the tutorial.
|
Quote:
The Thread: http://www.linuxquestions.org/questi...hreadid=212674 |
Ugg. I got more errors.
Quote:
Quote:
Quote:
|
Should
Code:
deb http://debian/moolfreet.com ./ Code:
deb http://debian.moolfreet.com ./ |
Quote:
|
Ugg. You are correct. It was a typo. I installed php4. I went into the httpd.conf and updated it with the new paths to php4.so.
Code:
LoadModule php4_module /usr/local/apache/libexec/libphp4.so I still get nothing on my php test page. |
I installed on debian woody from source. Had the same problem with php not working. Ended up moving the php directory into apache2/htdocs/ and that solved the problem. I imagine there is a better way, or a symlink that could be made, but as it was working, I never bothered to explore it further.
|
I am having a similiar issue. I am running Debian Sarge using the 2.6.7 kernel with Apache 1.3.31 installed.
Apache runs fine all by itself but when I do an apt-get install php4 and then try to open a php file it wants me to download it. I have restarted apache countless times, I have verified that the LoadModule line is in there and the AddType lines are uncommented. I have matched it up with my Desktop's httpd.conf and modules.conf files and they are identical. The only difference is my Desktop PCs had Apache 1.3.21 installed and then were upgraded to 1.3.31 (in my opinion this is the reason, but I have nothing to back it up). Does anyone have any success stories on clean installs with Apache 1.3.31? I have tried both compiling the sources or using the binaries provided by Apache and PHP, plus the precompiled deb packages from Debian using apt-get. None of them worked. Oh, and I am trying to use PHP 4.3.8 (sorry I forgot to mention that). Matt |
Quote:
|
Okay, I think I solved the issue, but it took me forever to do.
First you need to run the following: apt-get remove apache apache-common apache-utils php4 php4-mysql mysql-server mysql-common libmysqlclient10 libdbd-mysql-perl --purge Pretty much remove everything related to apache, php, and mysql. Even the configuration files. Then run: apt-get install apache apache-common php4 php4-mysql mysql-server mysql-common libmysqlclient10 libdbd-mysql-perl Hopefully when it finishes the install it will not say any errors regarding "invoke-rc.d: unknown initscript, /etc/init.d/{packagename} not found". If you receive that message, remove all packages associated with the package it whines about. I did this after screwing around with my laptop for nearly 5 hours and so I do not recall every step I took, but these were the ones that just worked in the last 10 minutes. Matt |
Well I would rather not remove apache just to reinstall it. I'm sure I'm just missing some line for php somewhere.
|
Well then try running this then:
apt-get install apache apache-common php4 php4-mysql mysql-server mysql-common libmysqlclient10 libdbd-mysql-perl --reinstall |
Doesn't that still just reinstall it?
|
All times are GMT -5. The time now is 06:23 AM. |