LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-11-2005, 12:38 AM   #1
nevarlen
Member
 
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68

Rep: Reputation: 15
Can't apache server after installation


Hi,
I am using Debian 3.x.
Wanted to upgrade apache 1.3 to 2.5.x. I followed the intructions, yet I still do not undersand what happened after the installation..
I could stop the old apache and start the new one, but all I see in the process list is httpd started, whereas I used to see apache earlier. I do not want to delete the old apache until I save the exisiting pages..
Also, when I start the new apache, it lists the directory instead of firing up the index.php file in htdocs.
What would you all suggest I do next?
Can I try the new apache without stopping the old one, if so how can I get the new one to work with phps and cgi without listing the directories?
Thanks..
 
Old 02-11-2005, 01:01 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
As far as I know the reasons for differences in behaviour is exactly because you upated. For example, the listing of the directory instead of the browsing to the index file for that directory is indicative that the configuration file is different.

Basically, almost all your problems seem to be summed up by the fact that the configuration file for Apache (httpd.conf in the /usr/local/apache2/conf directory on my Rh9 system) needs to be customised for your new installation.

As for running both simultaneously I think it is possible, but not easy. You will need to reconfigure listening ports, servernames (I think...) and maybe a few other things as well.

As for getting it to recognise PHPS files at least, this needs to be added in the "new" Apache's httpd.conf:

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

in the correct place in the httpd.conf (just search for AddType first, and add this just below the other AddType lines).

Last edited by rylan76; 02-11-2005 at 01:03 AM.
 
Old 02-11-2005, 01:04 AM   #3
devilkin
Member
 
Registered: Jan 2005
Location: Australia
Distribution: LFS 6.0 #15056
Posts: 50

Rep: Reputation: 15
I'm not 100% certain on this, but i believe that both servers will not run on the same machine at the same time (they will both fight for port 80. Also the apache 1.3 and apache 2 conf files are a different format. You will need to edit your new apache (v2) conf file and add index.php to the DirectoryIndex section. Also you will need to get the new php module (and whatever other apache modules you are using).

I hope this is some kind of help.
 
Old 02-11-2005, 08:19 AM   #4
nevarlen
Member
 
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks for your replies,
I figured out that each apaches can listen different ports, so iti is possible to run them simultaneously..
Php is added, but I am still working on unlisting the directories. It is combination of fancyindexing or what not in one of the conf files.
Will end this thread as soon as I find a solution, then surely I will come up with other problems..
Thanks..
 
  


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
apache server installation problem diptanshu Linux - Software 3 07-11-2005 11:25 PM
upgrading PHP on a RH9 server with default apache installation praefex Linux - General 4 06-29-2004 09:48 AM
Could someone direct me to a Newbie Friendly Apache Server installation page? Em3rald Linux - Software 2 03-25-2004 10:25 PM
differences between Apache 2.0.47 in comparison to Apache 1.3.28 installation? rohanrohanrohan Linux - Newbie 2 11-06-2003 01:22 AM
hepl planning apache server installation ScreeminChikin Linux - General 4 12-27-2002 01:57 PM

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

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