Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Lamp-Server: can't get localhost to work properly

  1. #1
    Join Date
    Dec 2010
    Beans
    6

    Exclamation Lamp-Server: can't get localhost to work properly

    Hello everybody, I'm new to this forum!
    To the problem...

    I have Ubuntu 10.10 and i installed the lamp-server by typing:
    Code:
    sudo apt-get install lamp-server^
    everything seemed to work fine.
    I created /home/user/public_html/
    i did some stupid things to the apache2 files (/etc/apache2/) to try to change the location of localhost.
    then i went to: http://localhost/
    it said:
    403 forbidden
    You don't have permission to access / on this server.
    Apache/2.2.16 (Ubuntu) Server at localhost Port 80

    I need help so this will work...
    Yes there is something under /home/user/public_html/
    it is index.html, and phpinfo.php

    then i checked back again later and the folder (/etc/apache2/) is completely GONE!
    what do I do?!?!!!?!?!?

  2. #2
    Join Date
    Oct 2009
    Beans
    51

    Re: Lamp-Server: can't get localhost to work properly

    How about
    Code:
    sudo apt-get purge lamp-server
    and then reinstall it how you already did.
    Not sure though if it works, since lamp-server is a meta-package.
    Last edited by slooow; December 24th, 2010 at 04:17 AM. Reason: grammar

  3. #3
    Join Date
    Dec 2010
    Beans
    6

    Re: Lamp-Server: can't get localhost to work properly

    i'll try tommorow and let you know what happens

    i'm sorta sleepy...

  4. #4
    Join Date
    Dec 2010
    Beans
    6

    Re: Lamp-Server: can't get localhost to work properly

    ok,

    so I tried:

    Code:
    sudo apt-get purge lamp-server^
    this is what I got:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'libwrap0' for task 'lamp-server'
    Note, selecting 'mysql-server-core-5.1' for task 'lamp-server'
    Note, selecting 'mysql-client-core-5.1' for task 'lamp-server'
    Note, selecting 'libmysqlclient16' for task 'lamp-server'
    Note, selecting 'libdbi-perl' for task 'lamp-server'
    Note, selecting 'apache2' for task 'lamp-server'
    Note, selecting 'apache2-mpm-prefork' for task 'lamp-server'
    Note, selecting 'apache2.2-common' for task 'lamp-server'
    Note, selecting 'apache2.2-bin' for task 'lamp-server'
    Note, selecting 'apache2-utils' for task 'lamp-server'
    Note, selecting 'libapr1' for task 'lamp-server'
    Note, selecting 'libaprutil1' for task 'lamp-server'
    Note, selecting 'libaprutil1-dbd-sqlite3' for task 'lamp-server'
    Note, selecting 'libaprutil1-ldap' for task 'lamp-server'
    Note, selecting 'ssl-cert' for task 'lamp-server'
    Note, selecting 'mysql-server' for task 'lamp-server'
    Note, selecting 'libapache2-mod-php5' for task 'lamp-server'
    Note, selecting 'php5-common' for task 'lamp-server'
    Note, selecting 'php5-cli' for task 'lamp-server'
    Note, selecting 'libdbd-mysql-perl' for task 'lamp-server'
    Note, selecting 'libplrpc-perl' for task 'lamp-server'
    Note, selecting 'libhtml-template-perl' for task 'lamp-server'
    Note, selecting 'mysql-common' for task 'lamp-server'
    Note, selecting 'libnet-daemon-perl' for task 'lamp-server'
    Note, selecting 'tcpd' for task 'lamp-server'
    Note, selecting 'mysql-client-5.1' for task 'lamp-server'
    Note, selecting 'mysql-server-5.1' for task 'lamp-server'
    Note, selecting 'php5-mysql' for task 'lamp-server'
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     apache2-mpm-prefork : Depends: apache2.2-bin (= 2.2.16-1ubuntu3.1) but it is not going to be installed
     apache2.2-common : Depends: apache2.2-bin (= 2.2.16-1ubuntu3.1) but it is not going to be installed
                        Depends: apache2-utils but it is not going to be installed
                        Recommends: ssl-cert but it is not going to be installed
    E: Broken packages
    some ubuntu geek could help me...

    /etc/apache2/ still doesn't exist...

    i have no idea what to do...

  5. #5
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Lamp-Server: can't get localhost to work properly

    to uninstall and purge lamp-server do this;

    sudo apt-get remove --purge lamp-server

    Your last command was missing "remove --purge"

  6. #6
    Join Date
    Dec 2010
    Beans
    6

    Red face Re: Lamp-Server: can't get localhost to work properly

    ok,

    So i tried:
    Code:
    sudo apt-get remove --purge lamp-server^
    but again the same thing happened:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'libwrap0' for task 'lamp-server'
    Note, selecting 'mysql-server-core-5.1' for task 'lamp-server'
    Note, selecting 'mysql-client-core-5.1' for task 'lamp-server'
    Note, selecting 'libmysqlclient16' for task 'lamp-server'
    Note, selecting 'libdbi-perl' for task 'lamp-server'
    Note, selecting 'apache2' for task 'lamp-server'
    Note, selecting 'apache2-mpm-prefork' for task 'lamp-server'
    Note, selecting 'apache2.2-common' for task 'lamp-server'
    Note, selecting 'apache2.2-bin' for task 'lamp-server'
    Note, selecting 'apache2-utils' for task 'lamp-server'
    Note, selecting 'libapr1' for task 'lamp-server'
    Note, selecting 'libaprutil1' for task 'lamp-server'
    Note, selecting 'libaprutil1-dbd-sqlite3' for task 'lamp-server'
    Note, selecting 'libaprutil1-ldap' for task 'lamp-server'
    Note, selecting 'ssl-cert' for task 'lamp-server'
    Note, selecting 'mysql-server' for task 'lamp-server'
    Note, selecting 'libapache2-mod-php5' for task 'lamp-server'
    Note, selecting 'php5-common' for task 'lamp-server'
    Note, selecting 'php5-cli' for task 'lamp-server'
    Note, selecting 'libdbd-mysql-perl' for task 'lamp-server'
    Note, selecting 'libplrpc-perl' for task 'lamp-server'
    Note, selecting 'libhtml-template-perl' for task 'lamp-server'
    Note, selecting 'mysql-common' for task 'lamp-server'
    Note, selecting 'libnet-daemon-perl' for task 'lamp-server'
    Note, selecting 'tcpd' for task 'lamp-server'
    Note, selecting 'mysql-client-5.1' for task 'lamp-server'
    Note, selecting 'mysql-server-5.1' for task 'lamp-server'
    Note, selecting 'php5-mysql' for task 'lamp-server'
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     apache2-mpm-prefork : Depends: apache2.2-bin (= 2.2.16-1ubuntu3.1) but it is not going to be installed
     apache2.2-common : Depends: apache2.2-bin (= 2.2.16-1ubuntu3.1) but it is not going to be installed
                        Depends: apache2-utils but it is not going to be installed
                        Recommends: ssl-cert but it is not going to be installed
    E: Broken packages
    still don't know what to do...

  7. #7
    Join Date
    Apr 2010
    Beans
    92

    Re: Lamp-Server: can't get localhost to work properly

    Not to add confusion to the situation. /etc/apache2 is gone completely? Before you purged it? Where did it go? Did you accidentally rename it? Anyway, can you reinstall lamp successfully? What is the "^" at the end of your command line?

  8. #8
    Join Date
    Dec 2010
    Beans
    6

    Re: Lamp-Server: can't get localhost to work properly

    yes, /etc/apache2/ is completely gone

    not renamed or anything...

    i don't know where it went

    i can't reinstall lamp-server succesfully...

    adding the "^" at the end was the only way i could install it in the first place (before it got jacked up)
    Last edited by kukac67; December 24th, 2010 at 08:26 PM. Reason: clarification

  9. #9
    Join Date
    Dec 2010
    Beans
    1

    Re: Lamp-Server: can't get localhost to work properly

    Hi,

    why don't you get the latest version of apachefriends xampp?
    Download it from http://www.apachefriends.org/en/xampp-linux.html, extract it and just start it.

  10. #10
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,741

    Re: Lamp-Server: can't get localhost to work properly

    If you want to use a LAMP stack, go download the server edition and use that.

    Then you can install a desktop over that once you have the web appliances up.

    You can also manage a server with a browser so a desktop is optional.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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