LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-31-2003, 06:28 PM   #1
joel112
Member
 
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 libphp4.so in libexec foder under the apache dir... anone got any ideas what i ahve done wrong?
 
Old 05-31-2003, 08:05 PM   #2
Gerardoj
Member
 
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
http://logidac.com/apache/apache-install-rpm.phtml

Hope works
Linux: Fast, Stable, Flexible

---------Gerardo
 
Old 05-31-2003, 08:34 PM   #3
mcleodnine
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/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
 
Old 06-01-2003, 10:54 AM   #4
joel112
Member
 
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, 12:44 PM   #5
joel112
Member
 
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
 
  


Reply


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 12:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-03-2004 11:49 PM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 10:04 PM
slackware-current apache/php problem hjles Slackware 3 03-10-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 PM.

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