Question:
apache server(in Lamp) execution problem in ubuntu 10.10?
arun
2010-11-15 11:05:28 UTC
i install lamp in ubuntu 10.10.. after that apache server is not execute. give me idea to execute the apache server.
Four answers:
2010-11-15 11:19:48 UTC
Ubuntu runs Apache as a system process. You most likely made an error.



Instead of going through the dread of trying to figure out where the error was made, let's uninstall Apache, then start over with the proper steps.



first, run this ->



sudo apt-get purge libapache2-mod-auth-mysql phpmyadmin



When prompted, hit "Yes", then "Enter"



Another window will appear, once again, Select "Yes", then hit "Enter"



The next screen will ask for your phpmyadmin password. Enter the password, select "OK", then hit "Enter".



Now phpMyAdmin is removed, let's remove MySQL now.



dpkg -l | grep ^ii | grep mysql-server | awk -F' ' '{ print $2 }'



This will give you a list of all files associated with mysql.



Most likely you will see a list like, ->



mysql-server-5.1

mysql-server-core-5.1

php5-mysql



So let's get rid of these, not that difficult, simply ->



sudo apt-get purge mysql-server mysql-server-5.1 mysql-server-core-5.1 (note that I'm not removing php5-mysql, we'll take care of that later).



If you have other files that are listed here, such as mysql-session-server, or, mysql-pkgs-5.1, remove those too.



After you have successfully ran the sudo, mysql will be gone.



now let's remove Apache.



Once again, find all apache related files on the system, by typing ->



dpkg -l | grep ^ii | grep apache2 | awk -F' ' '{ print $2 }'



you should now see a list of apache related files, such as ->



apache2

apache2-mpm-prefork

apache2-utils

apache2.2-bin

apache2.2-common

libapache2-mod-php5



so let's do this just like MySQL, and remove all these



sudo apt-get purge apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5



(notice we're removing the php associated files now)



Now, I'm sure that we left behind useless information, documents, and php files, so let's clean that up.



sudo apt-get autoremove



I assume that you don't want to re-install Linux (Ubuntu) from your LAMP installation, so now we'll do a clean install of it, the RIGHT way.



First, please execute this ->



sudo apt-get install lamp-server^



Now hit 'Enter' to install.



Now you will be prompted with the MySQL window, simply enter your password and press enter.



once prompted for a second time, re enter the password and then hit enter.



Now we've installed apache, and created our MySQL Database.



let's go ahead and see if the Apache installation worked, please go to ->



http://localhost in your browser window, if it says "it works!", move on, if not, you've done something worng, repeat the steps outlined to uninstall apache and mysql, and start again.



test for PHP, see if it's working, simply copy this line into your terminal window ->



gksudo gedit /var/www/testing.php



in the new document that opens, type this ->







Save the document as testing.php.



now let's restart our apache server, then test our php



sudo /etc/init.d/apache2 restart



now re-open your browser window, type in ->



http://localhost/testing.php



If you have to download the file - php isn't installed correctly. if you see a bunch of information, yuo're good to go.



type ->



cat /etc/hosts | grep localhost



to verify that your localhost is indeed, 127.0.0.1



run ->



cat /etc/mysql/my.cnf | grep bind-address



make sure that it also, says bind = 127.0.0.1



now let's install phpmyadmin, PLEASE FOLLOW THESE STEPS OR YOU COULD FUBAR IT ALL NOW!



open terminal, type in ->



sudo apt-get install libapache2-mod-auth-mysql phpmyadmin



AT THIS WINDOW, PLEASE USE YOUR ARROW KEYS TO HOVER OVER APACHE2!



THEN



PRESS YOUR "SPACE BAR" TO MARK APACHE2 WITH AN ASTERIK!



Another screen will come up asking if you want to configure a new database called dbconfig-common. Since this is a fresh installation, use the key to select Yes and hit .



You'll be prompted next to enter the MySQL root password. Enter the MySQL root password that you created earlier, hit to select Ok and hit .



You'll then be prompted to enter a MySQL application password forPHPMYADMIN. You can hit and a random password will be generated. I chose to use the same password that I used for the root MySQL password. If you enter your own password, a password confirmation screen will come up. Confirm your password.



Open your web browser and enter the address http://localhost/phpmyadmin/. You should see a page like this.



You can now login with the username 'root' and the password that you just created for your PHPMYADMIN account (which hopefully is the same as your MySQL password, to make things easy for you)



You acn now utilize your /var/www folder to place your documents in. right now you should see index.php, index.asp and index.htm inside of it. It's currently using the .php file, so if you want to use an .asp, or a .html file, yuo'll need to modify your httpd.conf file.
Linux Mint 11
2010-11-17 03:02:44 UTC
Installing LAMP on Ubuntu 10.04 and 10.10 (Lucid Lynx, Maverick Meerkat)

http://tuxtweaks.com/2010/04/installing-lamp-on-ubuntu-10-04-lucid-lynx/



Ubuntu 10.10 (Maverick Meerkat) User Guide

http://ubuntuguide.org/wiki/Ubuntu:Maverick





LUg.
BigE
2010-11-15 11:12:26 UTC
Look at the log files, I am not sure in Ubuntu but probably:

/var/log/apache*

or

/etc/httpd/log* or /etc/apach*/log



Either http or errorlog should have the answer.



To restart apache, probably

/etc/init.d/apache* restart
brunkhorst
2016-10-22 08:02:56 UTC
yer mine does that too, i think of its jsut that as quickly as the lava is cooling down the air on the precise gets trapped interior the lava blob and it floats. in case you %. up the lava lamp and gently swirl it around the lava will come down


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...