apache2, mysql server and autostart(Ubuntu 10.04)


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Ubuntu 10.04
Put another LAMP on ubuntu 9.10, but when I updated to 10.04 Apache, the muscle disappeared from startup. For a while I wasn't paying attention and ran them with the command
sudo /etc/init.d/apache2 start
well mysql respectively.
Decided today to still play with them, and how to return the startup, googled but nothing came out about upstart do not understand
Then I decided to remove completely LAMP, and with them removed the apache2 and mysql scripts under /etc/init.d, do not know why I did it... Put the new on this HOWTO forum.ubuntu.ru/index.php?topic=25668.0 LAMP, but again, the startup did not write, and without those scripts that were in /etc/init.d even now I can run Apache can't( What to do? How to return the scripts and set Apache to muscle in AutoPlay. I hope you're not going to advise the whole thing to stick in the "Startup applications" :)
by | 5 views

3 Answers

0 like 0 dislike
sudo aptitude purge apache2
sudo aptitude install apache2
\r
appears you rc.d scripts and init.d script. probably was removed through the remove and not purge
by
0 like 0 dislike
1. You have Ubuntu, why do you need LAMP?
sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 mysql-server
and everything will be prescribed by itself, will work and be updated along with the OS
\r
2. If you important LAMP with samopisnye scripts — you can add scripts to the startup /etc/init.d
In the same folder copy the "sudo cp skeleton apache2", edit apache2 to start and stop Apache. The same for mysql. Then "update-rc.d apache2 defaults" to start the service at boot time. But this path is not for you.
by
0 like 0 dislike
man update-rc.d
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
7 answers
asked Apr 1, 2019 by gaaarfild
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 13, 2019 by vhardoff
110,608 questions
257,186 answers
0 comments
27,881 users