LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't apache server after installation (https://www.linuxquestions.org/questions/linux-newbie-8/cant-apache-server-after-installation-288798/)

nevarlen 02-11-2005 12:38 AM

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..

rylan76 02-11-2005 01:01 AM

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).

devilkin 02-11-2005 01:04 AM

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.

nevarlen 02-11-2005 08:19 AM

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 07:48 AM.