Results 1 to 5 of 5
I am in need of some guidance!
I have Slackware 10.1 which came installed with an older version of Apache. The PHP wasn't recent enough for what I needed so ...
- 08-18-2005 #1
My Apache server is in a real mess
I am in need of some guidance!
I have Slackware 10.1 which came installed with an older version of Apache. The PHP wasn't recent enough for what I needed so I downloaded and installed the most recent version from php.net. Then, the website I had created stopped working. Oh well, I thought ... it wasn't too much work so I figured I may as well upgrade my Apache and start afresh. I removed Apache with pkgtool and downloaded and installed Apache2, and compiled and installed from source. Now, I can view my default site from http://localhost, but I can't through my router! The I tried to instal using the Apache Slackware package (downloaded from slackware.com and installed using pkgtool), which made an even bigger mess as now I have more than one /www folder and I don't know which one my Apache install is refering to!
In fact now I seem to have 3 installs of Apache on my computer:
/opt/www
/var/www
usr/local/apache2/www
At this stage what I want to do it remove all of these and start again. How can I clean all of these off my computer - including all the Apache configuration files as well?Registered Linux user #389109
My Semi-Linux Blog
- 08-18-2005 #2
Well, if the removepkg command doesn't work for you (which I would try first), you can always check the install log and look at where it installed everything and manually delete the stuff you don't want (pretty time consuming, but it should work).
Especially that stuff you installed from source, you may have to go back to the make file and read through all that stuff to find out where it was all installed...then go through it and remove things...
For apache, there should only be a limited amount of things you have to delete: the log files, the bin files, the config files and then the web files...after you have done that, it should be gone...Join the Open Source Revolution. Support GNU/Linux.
Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
- 08-18-2005 #3
Well, if the removepkg command doesn't work for you (which I would try first), you can always check the install log and look at where it installed everything and manually delete the stuff you don't want (pretty time consuming, but it should work).
Especially that stuff you installed from source, you may have to go back to the make file and read through all that stuff to find out where it was all installed...then go through it and remove things...
For apache, there should only be a limited amount of things you have to delete: the log files, the bin files, the config files and then the web files...after you have done that, it should be gone...Join the Open Source Revolution. Support GNU/Linux.
Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
- 08-19-2005 #4
If you want to know which directory is your 'live' web page source look in httpd.conf. I dont know where slackware puts it, but it'll be in /etc somewhere. My FC2 server has it here:
/etc/httpd/conf/httpd.conf
Look for a line that begins:
DocumentRoot ...
that'll tell you where the files are.
As far as accessing externally, I think there are two potential problems here, either your firewall settings are preventing access to port 80 from your lan card or apache itself is blocking connections based on IP address.
If apache is doing it, look for a directory definition in the httpd.conf for the document root, see if it says something like this:
If nothing in the httpd.conf file denies access like this, take a good long look at your firewall settings.Code:<Directory [document_root_path]> Options Indexes FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from local </Directory>
Linux user #126863 - see http://linuxcounter.net/
- 08-19-2005 #5
I deleted all the apache related files I could find.
Then I reinstalled apache2 - I followed the instructions on linuxpackages.net specific for Slackware.
My httpd.conf is in /etc/apache2
Now I have a new problem when I try to start apache:
I looked inside the file /usr/sbin/apachectl but couldn't see any mention of that path anywhere.Code:# apachectl start httpd: could not open document config file /usr/local/apache2/conf/httpd.conf
Registered Linux user #389109
My Semi-Linux Blog


Reply With Quote