LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2002, 01:25 PM   #16
CyberDrake
Member
 
Registered: Feb 2002
Location: Tora Bora
Distribution: RH 7.2
Posts: 38

Original Poster
Rep: Reputation: 15

Quote:
Originally posted by bladewalker
Yep I had this problem too - it is because the php module is not installed or it cant be found - did you edit the http.conf file to add the PHP module as well?

Well I did edit the Httpd.conf and added this line aswell, but the problem still persists

LoadModule php4_module /usr/local/apache2/modules/libphp4.so
 
Old 11-25-2002, 01:28 PM   #17
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
You test php by passing a simle php file to apache - try shutting down apache and restarting it - it could be it just missed the update...
 
Old 11-25-2002, 02:08 PM   #18
CyberDrake
Member
 
Registered: Feb 2002
Location: Tora Bora
Distribution: RH 7.2
Posts: 38

Original Poster
Rep: Reputation: 15
Oh well, I just reinstalled PHP and voila it works now! Here's how i did it:

tar -xzvf php4.tar.gz

./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs

make
make install
make clean

Edit Httpd.conf and add the following 2 lines:
AddType application/x-httpd-php .php
LoadModule php4_module /usr/local/apache2/modules/libphp4.so

cp php.ini-dist /usr/local/lib/php.ini

apachectl restart






P.s: I guess it had to do with copying the php.ini after modifying the httpd.conf and not before.
 
Old 11-25-2002, 02:57 PM   #19
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
Guess so - see its all good in the end - why do you need apache and php?
 
Old 11-25-2002, 11:19 PM   #20
CyberDrake
Member
 
Registered: Feb 2002
Location: Tora Bora
Distribution: RH 7.2
Posts: 38

Original Poster
Rep: Reputation: 15
Well I'm doing a unix course at Uni, and I've taken this as a project. Hmmf! now that the installation is complete, time to develop some application using these 2 softwares
 
Old 11-25-2002, 11:31 PM   #21
ChineseElite
Member
 
Registered: Jun 2002
Posts: 31

Rep: Reputation: 15
I have the problem with browser displaying as text... Getting apachetoolbox as I type, will give it a shot..
 
Old 11-26-2002, 06:44 AM   #22
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
OK - now apachetoolbox is something I can help with

Remember to install the mod_php module under the php menu - or php wont be installed! and if you want mySQL you have to go into the mySQL menu and select your database - you also have to activate it...

Using the above I had to install from the toolbox twice because it had a problem checking if mySQL was installed - logged in with wrong user, after the second install it skipped over the complete mySQL install and finished the rest...

To check if mySQL is installed use the standard commands:

>cd to/mysql/dir
?./mysql -u root -p

This will log you in as root - also note there may not be a password so you will have to set one...
 
Old 11-26-2002, 06:54 AM   #23
Nefarious
Member
 
Registered: Nov 2002
Location: NY, USA
Distribution: Slackware / College Linux / WinXP
Posts: 198

Rep: Reputation: 30
Ok... Bladewalker I want to Install Apache + PHP also. Which file should i d/l from http://www.apachetoolbox.com/? And how would I go about Installing it and Setting it up? I am Using Red Hat 8.0 incase that will help.

Thanks in Advance
 
Old 11-26-2002, 07:01 AM   #24
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
OK I need the following from you:

What connection are you on?
Do you have anything installed at the moment? - mySQL php apache - or have you tried to install these before?
What do you want to install?
How is it going to be used? - production development home etc?
 
Old 11-26-2002, 07:04 AM   #25
Nefarious
Member
 
Registered: Nov 2002
Location: NY, USA
Distribution: Slackware / College Linux / WinXP
Posts: 198

Rep: Reputation: 30
Im Cable... but i get T1 Speeds (1500+/900) ^^
Not sure if I have anything installed as of yet.
I have not tried to install those before
Apache & PHP
I will be using this for home use.
 
Old 11-26-2002, 07:25 AM   #26
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
Ok download the complete file - I think its third one down?

The options you need are:

apache - installed by default!
php - select mod_php in the php menu
 
Old 11-26-2002, 07:26 AM   #27
bladewalker
Member
 
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
I will be on here for the next few hours if you have a problem...
 
Old 11-26-2002, 02:14 PM   #28
Nefarious
Member
 
Registered: Nov 2002
Location: NY, USA
Distribution: Slackware / College Linux / WinXP
Posts: 198

Rep: Reputation: 30
ok... sorry for the wait i just got home heh
 
Old 11-26-2002, 02:20 PM   #29
ChineseElite
Member
 
Registered: Jun 2002
Posts: 31

Rep: Reputation: 15
*sigh* 30 compiles, recompiles and 4 reinstalls later, still nothing doing... in the midst of yet another, if this doesnt work I am going to post every command I enter that bash here if its the last thing I do...
 
Old 11-26-2002, 02:39 PM   #30
Nefarious
Member
 
Registered: Nov 2002
Location: NY, USA
Distribution: Slackware / College Linux / WinXP
Posts: 198

Rep: Reputation: 30
chinese this is a little off topic but do u nko how to change themes in redhat 8? (Gnome)
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 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
Open Source Consulting | Domain Registration