Removing apache 1.3.19 after upgrade
Now that I have upgraded to apache2, the conf files and httpd are in /usr/local/apache2. The old files, /etc/rc.d/init.d/httpd and /etc/httpd/conf/httpd.conf and all that good stuff still reside on my machine, but as far as I can tell are not being used. Linux, though still wants to start the old httpd. Should I delete all the the old files or is there a way to relink to the new ones?
|
You can edit the old script to run your new apache at boot. Or, if you have a new script written, you can delete all old ones.
|
So all I have to do is change the references to httpd in the old script to the new directory? Thanks for your help.
|
Exactly, you only need to change pathes inside script files.
|
In /etc/rc5.d/init.d/httpd, I changed all occurances of /usr/sbin/httpd to /usr/local/apache2/bin/httpd and when I tried to start it, I got the message:
Starting httpd: execvp: No such file or directory I didn't change the path to httpd-perl.conf because there was no new one. Could that cause the problem? |
Could you post your script? It's hard to say without seeing it.
|
Ok. Here is the script before I made any changes to it:
Code:
#!/bin/sh |
Did apache2 get rid of httpd-perl? I didn't see any new version to change the directory to in the script. I tried changing all occurances of /var/run/httpd.pid and /usr/sbin/httpd to the new directory but it gives me that execvp error.
|
It's enough to have much smaller script. In fact, all you need to have is
/usr/local/apache2/bin/apachectl start to start your Apache and /usr/local/apache2/bin/apachectl stop to stop it. In my installation (I don't remember correctly, but I think so) there's no perl, o httpd-perl does not exist. I suppose it's similar with yours. |
Well thank you very much for your help.
|
All times are GMT -5. The time now is 02:36 PM. |