Page 1 of 1

Annoying PHP, Linux, Apache install problem

Posted: Mon Oct 21, 2002 3:19 pm
by willduffay
I'm trying to install php4 on Mandrake 8.0 with apache 1.3.27 (and MySQL 3.23.51).
Apache works okay, although with 127.0.0.1 or localhost I get a welcome page for Apache Advanced ExtraNet or something - not what I have with Win 2K, but presumably correct.

The configure, make and make install bits of the php installation go okay. I edit the httpd.conf file with the appropriate AddType, the LoadModule php4_module bit is present, and AddModule mod_php4.c doesn't need to be added because I don't have a ClearModuleList line (so it says in the installation instructions). I have checked and rechecked my AddType line, and it is correct. I have put php.ini in /usr/local/lib/.

I have made a test php file and put it in the htdocs directory, as I did with Windows. Is that the correct place? The installation instructions just say 'in your web tree somewhere', which is really helpful. I have restarted apache, pointed to localhost, which is okay, and then tried to open my test file - and the file can't be found.

So what's going on? Any more of this and I'll give up on the idea of working with Linux, and stick to Windows...! I hope somebody can help me.

Posted: Mon Oct 21, 2002 4:53 pm
by volka
in you httpd.conf is an entry
DocumentRoot /path/to/documents
it points to the base path

Posted: Tue Oct 22, 2002 5:48 am
by willduffay
Thank you. I hadn't spotted that. It is pointing at /usr/local/apache/htdocs, which led me to test a simply html file and also one of the existing apache index html files. None of them can be found.

So I had a further look around the directories, and there is another httpd.conf file, in /etc/httpd/conf. Not only that, but the html files are being read from /home/httpd/html. So I am completely perplexed. I didn't install apache from my Mandrake disc, because I knew I could get a later version. Yet it still seems to have added this Advanced Extranet thing, which has hijacked my carefully-installed apache. Hooray for Bill Gates, I say!

Anyway, thanks for your help. Time to dive into a Mandrake forum, I think.

try

Posted: Tue Oct 22, 2002 9:46 pm
by AVATAr
try Apache Toolbox on http://www.freshmeat.net

Good luck