Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-30-2002, 04:47 AM   #1
LQ Newbie
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Rep: Reputation: 0
Unhappy php and apache on Mandrake 8.2


I have sucessfully installed apache and mysql from the rpms using the software manager. I have now tried the same with php4, that comes on the disks, but I can't get it to work.

According to the software manager mod_php4 is installed.

I have followed several other posts and edited hhtpd.conf by adding :

AddType application/x-httpd-php .php
AddType apllication/x-httpd-php-source .phps

and :

LoadModule php4_module libexec/
AddModule mod_php4.c

In the other posts it says I should also copy a file php.ini-dist to the apache/conf folder, thing is, I can't find that file so I am stuck

I have tried> find -name php.ini*
and >locate php.ini*

and all variations in between....

Where to go from here.

What is making things a bit harder is the fact that
1) I am a newbie
2) The other posts and help files etc all install from scratch, so my directories are all named differently and it's confusing.
3) I've only got a small brain ;-)
Old 05-30-2002, 08:17 PM   #2
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
hmmmmmmmmm try installing apache and php with the tutor @
Old 05-31-2002, 03:58 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,557

Rep: Reputation: 140Reputation: 140
i guess youŽll find the php.ini named php-ini.dist or php-ini-recommended or similar in the php directory. this is probably in /usr/local/php-4.2.0/. but probably this is not the reason why it doesnt work yet. php runs without reading the ini too.
you have to set the DocumentRoot in apache/etc/httpd.conf to the directory where you place your php scripts.
good luck
Old 05-31-2002, 04:38 AM   #4
LQ Newbie
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the advice.

I'll give that a go when I escape from day prison (work) tonight.


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
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
Help with apache, mysql, and PHP in mandrake 10 official ada601 Linux - Software 3 06-06-2004 07:27 PM
About Mandrake 9.2, PHP, MySql and Apache poeta_boy Linux - Newbie 7 04-12-2004 10:28 PM
How do I use Mandrake Distro CDs for Apache, MySQL & PHP? robroto88 Mandriva 17 01-26-2004 11:40 PM
problems with the apache & Php server of mandrake linux 9.1 krotaz Linux - Networking 6 11-21-2003 08:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 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