View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-31-2003, 07:28 PM   #1
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
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 in libexec foder under the apache dir... anone got any ideas what i ahve done wrong?
Old 05-31-2003, 09:05 PM   #2
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
hey maybe works this Link

Hope works
Linux: Fast, Stable, Flexible

Old 05-31-2003, 09:34 PM   #3
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
'httpd -l' to confirm you have built in php support _or_
Check your httpd.conf for LoadModule php4_module /path/to/

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
Old 06-01-2003, 11:54 AM   #4
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
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
Old 07-10-2003, 01:44 PM   #5
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache with PHP in Slackware 9.0 traveldanimal Slackware 3 09-28-2004 01:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-04-2004 12:49 AM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 11:04 PM
slackware-current apache/php problem hjles Slackware 3 03-10-2003 01:34 PM

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration