PDA

View Full Version : [SOLVED] LAMP Sever No AutoStart



antonvrg
January 16th, 2011, 06:07 AM
hi i want to run a LAMP server but dont want it to start when my computer starts. i want to start it via terminal. how do i do this?

James78
January 16th, 2011, 09:17 AM
I believe you can get the effect you want by editing the runlevel scripts startup.

sudo apt-get install sysv-rc-conf
sudo sysv-rc-conf
*Find apache2, deselect all running instances*
Alternatively you could also use chkconfig..

sudo apt-get install chkconfig
sudo chkconfig --del apache2
I haven't tested these out, but they should work.

sj1410
January 16th, 2011, 10:37 AM
hi i want to run a LAMP server but dont want it to start when my computer starts. i want to start it via terminal. how do i do this?


LAMP is Linux Apache Mysql Php

You know how to start Linux

Apache & Mysql starts automatically. If you think they are not starting you can start them manually


sudo /etc/init.d/apache2 start
sudo /etc/init.d/mysql start


apache listens by default on port 80 on all IPs
whereas mysql listens on 3306 only on 127.0.0.1 i.e. localhost

you can change it in /etc/mysql/my.cnf

more on

https://help.ubuntu.com/community/ApacheMySQLPHP

antonvrg
January 16th, 2011, 10:55 AM
i know what LAMP stands for. linux is the only one i want to start. and James78 it worked. thanks