Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Auto Start services?



Threaded Mode | Print  

 Auto Start services? (3 Replies, Read 2664 times)
nezbit
Group: Member
Post Group: Newbie
Posts: 4
Status:
I'm a total linux noob i'm afraid, but am trying to setup a CentOS server with Ampps.
All installed ok but I can't work out how to set Apache and MySQL to startup automatically on a reboot.
Can anyone help?
IP: --   

Auto Start services?
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Open Terminal and run following commands:

ln -s /usr/local/ampps/apache/bin/apachectl /etc/init.d/httpd

ln -s /usr/local/ampps/mysql/bin/mysqlctl /etc/init.d/mysqld

chkconfig --add httpd
chkconfig --add mysqld

chkconfig httpd on
chkconfig mysqld on

You have install Apache and MySQL as a service and added it in startup.
Now restart CentOS machine.

You can also start Apache and mysql service from terminal.

service httpd start
servce httpd stop

same for mysql

Edited by Rishi_P : July 4, 2016, 11:09 am
IP: --   

Auto Start services?
nezbit
Group: Member
Post Group: Newbie
Posts: 4
Status:
Cheers Rishi.

I'd worked out the chtcinfig but had missed the symbolic links.  Makes sense now.
I wasn't sure if apache and mysql would normally be in a different install directory, but with the sym links it's irrelevant.

Thanks
IP: --   

Auto Start services?
nezbit
Group: Member
Post Group: Newbie
Posts: 4
Status:
So I'm now struggling to work out how to get PureFTPd to start as a service.

At the moment i've ran the line in the config as below to allow PureFTPd to use the Ampps based config file

/usr/local/ampps/PureFTPd//sbin/pure-config.pl /usr/local/ampps/PureFTPd//etc/pure-ftpd.conf

Now I can connect to the FTP server when started via the Ampps gui, but the "Install FTP as a service" is greyed out.

Any ideas how I can get the apps based PureFTPd to start as a service?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 30, 2024, 7:11 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.038