Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274

    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

  2. #2
    Linux Newbie deek's Avatar
    Join Date
    Mar 2005
    Location
    Fort Wayne, IN
    Posts
    248
    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

  3. #3
    Linux Newbie deek's Avatar
    Join Date
    Mar 2005
    Location
    Fort Wayne, IN
    Posts
    248
    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

  4. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,885
    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:

    Code:
    <Directory &#91;document_root_path&#93;>
      Options Indexes FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from local
    </Directory>
    If nothing in the httpd.conf file denies access like this, take a good long look at your firewall settings.
    Linux user #126863 - see http://linuxcounter.net/

  5. #5
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    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:

    Code:
    # apachectl start
    httpd&#58; could not open document config file /usr/local/apache2/conf/httpd.conf
    I looked inside the file /usr/sbin/apachectl but couldn't see any mention of that path anywhere.
    Registered Linux user #389109
    My Semi-Linux Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •