LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   php and apache and slackware 9 (http://www.linuxquestions.org/questions/linux-software-2/php-and-apache-and-slackware-9-a-62926/)

joel112 05-31-2003 06:28 PM

php and apache and slackware 9
 
installed like this
1. gunzip apache_1.3.14.tar.gz
2. tar xvf apache_1.3.14.tar
3. gunzip php-4.0.3pl1.tar.gz
4. tar xvf php-4.0.3pl1.tar
5. cd apache_1.3.14
6. ./configure --prefix=/usr/local/apache
7. cd ../php-4.0.3pl1
8. ./configure --with-mysql --with-apache=../apache_1.3.14 --enable-track-vars
9. make
10. make install
11. cp libs/libphp4.a ../apache_1.3.14/src/modules/php4/
12. cd ../apache_1.3.14
13. ./configure --activate-module=src/modules/php4/libphp4.a
14. make
15. make install

although it was php 4.3.2 and apache 1.3.27
but i still cant run php files, it tries to download them, i tried editing the httpd.conf but just kept flinging errors at me, i read a post on here that said about adding the php.conf to the httpd file, but there is no php.conf file, nore is there a libphp4.so in libexec foder under the apache dir... anone got any ideas what i ahve done wrong?

Gerardoj 05-31-2003 08:05 PM

hey maybe works this Link
http://logidac.com/apache/apache-install-rpm.phtml

Hope works
Linux: Fast, Stable, Flexible

---------Gerardo

mcleodnine 05-31-2003 08:34 PM

'httpd -l' to confirm you have built in php support _or_
Check your httpd.conf for LoadModule php4_module /path/to/libphp4.so

Ensure that you also have the mime types loaded for php files
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

<edit> ... make sure you restart the apache server

joel112 06-01-2003 10:54 AM

httpd -l reports mod_php4.c as being there but throws error suexec: diabled; invalid wrapper /usr/local/apache/bin/suexec

but adding

application/x-httpd-php .php
application/x-httpd-php .php4
application/x-httpd-php-source .phps

to mime.types

makes it work.... cheers

joel112 07-10-2003 12:44 PM

just reinstalled and now its all gone to poo...

added the right stuff to mime.types and the php module is compiled in, but it still wont work


All times are GMT -5. The time now is 04:35 PM.