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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-11-2005, 12:38 AM
|
#1
|
Member
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68
Rep:
|
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..
|
|
|
02-11-2005, 01:01 AM
|
#2
|
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552
Rep:
|
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.
|
|
|
02-11-2005, 01:04 AM
|
#3
|
Member
Registered: Jan 2005
Location: Australia
Distribution: LFS 6.0 #15056
Posts: 50
Rep:
|
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.
|
|
|
02-11-2005, 08:19 AM
|
#4
|
Member
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68
Original Poster
Rep:
|
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..
|
|
|
All times are GMT -5. The time now is 10:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|