Lefu Posted July 22, 2007 Share Posted July 22, 2007 I have installed Apache2,php5 and mysql here /usr/local/ because the build-in one is not so flexible for my needs, I need to have apache and my sql working when the pc have just reboot, I am new on SUSE 10.2, ??? I need help now while I am logged on the system. thanx in advance. Quote Link to comment https://forums.phpfreaks.com/topic/61283-solved-start-apache-permanently/ Share on other sites More sharing options...
trq Posted July 22, 2007 Share Posted July 22, 2007 Im not sure how SUSE handles this but you basically need to make a symlink from the apache init script located in /etc/init.d into the appropriate run level directory, usually /etc/rc.3. Most distro's have specific tools designed to automate this task for you. I'de google for SUSE startup scripts or something simlular before I'de attempt to do it manually, but something like... ln -s /etc/init.d/apache /etc/rc.$(cat /etc/inittab | grep ^id | awk -F: '{print $3}') would probably go close. Quote Link to comment https://forums.phpfreaks.com/topic/61283-solved-start-apache-permanently/#findComment-304970 Share on other sites More sharing options...
Lefu Posted July 22, 2007 Author Share Posted July 22, 2007 A big thanx, I have solved my problem this way, after being asked to make a simbolic link. well I am not so clear on the above attempt but I made a copy of my apachectl like this: # cp /usr/local/apache2/bin/apachectl /etc/init.d # chmod 755 /etc/init.d/apachectl # chkconfig --add apachectl # chkconfig --level 35 apachectl on and stated my apache via /etc/init.d then I reboot my pc, it worked without resistance. thanx to the person who pointed me to the right path.goes by the name Thorpe. Quote Link to comment https://forums.phpfreaks.com/topic/61283-solved-start-apache-permanently/#findComment-304985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.