LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-30-2002, 05:47 AM   #1
scatcat
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


Hi,

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/libphp4.so
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, 09:17 PM   #2
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
hmmmmmmmmm try installing apache and php with the tutor @ http://www.delouw.ch/linux/Apache-Co...O/html/t1.html
 
Old 05-31-2002, 04:58 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
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
jens
 
Old 05-31-2002, 05:38 AM   #4
scatcat
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration