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
|