Find the answer to your Linux question:
Results 1 to 6 of 6
I have apache2 installed, and it is working but when you go to the page: http://192.168.1.101 its automatically brings me to http://192.168.1.101/apache2-default I've deleted the apache2-default folder then it says ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    19

    Exclamation Apache2 Configuration

    I have apache2 installed, and it is working but when you go to the page:

    http://192.168.1.101 its automatically brings me to http://192.168.1.101/apache2-default

    I've deleted the apache2-default folder then it says that it can't locate apache2-default, which means that there is something pointing to the folder. Can you tell me where, or how to change the configuration to point at the www folder, (which is one up from the apache2-default)?

  2. #2
    Just Joined!
    Join Date
    Mar 2007
    Posts
    17

    Post

    Try deleting .htaccess from the directory. It might be redirecting.

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    59
    Quote Originally Posted by mastermosley
    I have apache2 installed, and it is working but when you go to the page:

    http://192.168.1.101 its automatically brings me to http://192.168.1.101/apache2-default

    I've deleted the apache2-default folder then it says that it can't locate apache2-default, which means that there is something pointing to the folder. Can you tell me where, or how to change the configuration to point at the www folder, (which is one up from the apache2-default)?
    Go to /etc/apache2/sites-available/ folder and edit the file called "default" you can change document root directory and you need to comment out the following line in this file to remove the default redirect

    RedirectMatch ^/$ /apache2-default/

    Hope this helps

  4. #4
    Just Joined!
    Join Date
    Mar 2007
    Posts
    19
    Changed the default configuration file, and restarted apache2 and got this

    The requested URL /apache2-default/ was not found on this server. So its still pointing at that, is there another file to change?

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    19
    Ok, I've got apache2 configured the way I want it. I have just downloaded and installed php4, using apt-get. Now how do I configure it with apache2 to work, when I link to a .php file it just asks if I want to download it, so its still not installed correctly.

  6. #6
    Just Joined!
    Join Date
    Mar 2007
    Posts
    17
    You may use XAMPP(LAMPP). This will get everything done for you.

    XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl.

    Homepage: http://www.apachefriends.org/en/index.html
    Download: http://www.apachefriends.org/downloa...nux-1.6.tar.gz

Posting Permissions

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