Apche & PHP
I installed apache, installed php, but it asks me to save the .php file everytime i try to go to a .php extension on my website, and when i put, LoadModule php4_module modules/libphp4.so , in to httpd.conf it gives me the error
Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot open shared object file: No such file or directory when i try to start/restart/stop apache, any ideas? |
Looks like you didn't build the support in for php. Have a look at http://lamps.efactory.de/e-lamps-2-0.shtml for more detailed info. You can probably ignore the openssl and mod_ssl if you don't want to build that.
Here's a part of the configs I used for my php and apache builds. *** php-4.3.2 *** ./configure \ --with-apache=../apache_1.3.27 \ --with-gettext \ --with-xml \ --with-mysql=/usr/local/mysql \ --enable-sockets \ --enable-track-vars *** apache-1.3.27 *** ./configure \ --prefix=/usr/local/apache \ --enable-module=so \ --sbindir=/usr/sbin \ --libexecdir=/usr/libexec Note that the path to the apache source is relative to the directories I was building in. You may want to use an absolute directory location if you've got your junk spread around. |
How would I do it with apache2? the same thing or what? Kinda new to this so sorry if im being a pest
|
nevermind, i just need to learn how to read websites
|
Hehheh. yeah. read first, ask questions later. :)
|
All times are GMT -5. The time now is 07:06 AM. |