LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-21-2003, 11:04 AM   #1
herc
Member
 
Registered: Jul 2003
Posts: 90

Rep: Reputation: 15
Question Updating Apache & PHP (RH9)


So, I have RedHat 9.0 in my server and no previous experience on installing Apache or PHP and I'd like to update Apache 2.0.40 to .47 and PHP to 4.3.2.

Where should I start, detailed instructions?
 
Old 08-21-2003, 11:27 AM   #2
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
Download Apache from apache.org, and php from php.net
Read the INSTALL and/or README files for instructions on how to compile the sources
I haven't built the php module for apache yet, but I think that basically when you do ./configure for apache, you need to add

--enable-module=php

or whatever the name of the php module is.
 
Old 08-21-2003, 12:23 PM   #3
herc
Member
 
Registered: Jul 2003
Posts: 90

Original Poster
Rep: Reputation: 15
Do I have to remove the previous installation? If yes, how?
 
Old 08-21-2003, 01:10 PM   #4
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
You don't need to touch the old installation (i assume it came with RH9) Your new apache 2 would install, by default, in /usr/local/apache2. But to start it, you have to manually execute apachectl from /usr/local/apache2/bin, since the $PATH variable, which defines where to search for the command apachectl, points to the directory /usr/sbin, or something similar.

And if you want the new apache to be started at bootup, you need to edit a bootup script, /etc/rc.d/init.d/httpd

There are two definitions there:

apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}

you simply have to change that to the new installation, and it'll work. Have fun
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 07:41 AM
Updating Php & mysql dutchkillers Red Hat 1 07-12-2004 12:37 AM
Updating PHP on apache Daredevil Programming 3 05-25-2004 08:40 AM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM
upgrading apache & php on RH9 FunkFlex Linux - Software 0 04-28-2003 07:49 AM

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

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