Results 1 to 3 of 3

Thread: Help me put the AMP back in LAMP

  1. #1
    Join Date
    Dec 2005
    Beans
    32

    Help me put the AMP back in LAMP

    Hi,

    I've just rolled out an 8.04 server at a remote location that I connect to via SSH. When originally installing it I selected the LAMP and SSH packages. To cut a long story short I've basically screwed up the Apache2MySQLPHP component by trying to invent my own shortcuts when trying to migrate a few websites and their virtual hosts. I am a moron.

    I've spent the evening uninstalling and reinstalling various components but none of them want to play nicely with each other anymore. As I see it I have two options:

    1. Reinstall the server from scratch
    2. Cleanly uninstall and reinstall Apache2 MySQL and PHP

    I really don't want to do option 1 as the server is a couple of hundred miles away but I don't know how to do option 2. Any help much appreciated.

  2. #2
    Join Date
    Aug 2006
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help me put the AMP back in LAMP

    try removing the selections from the following command

    Code:
    sudo tasksel
    let it run to completion then run it again and add the stuff you want back in

  3. #3
    Join Date
    Dec 2005
    Beans
    32

    Re: Help me put the AMP back in LAMP

    Many thanks. That sort of worked but left a lot of the bad configuration files. I eventually fixed the problem with

    Code:
    sudo aptitude purge apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
    
    sudo rm -rf /etc/apache2
    
    sudo aptitude install apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
    Everything now seems to be working.

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
  •