<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>I think you may need to do chkconfig mysqld on as well do MySql auto starts on boot.<br><br>------------------------<br>
Keith Smith<br><br>--- On <b>Wed, 7/3/13, Matt Graham <i><danceswithcrows@usa.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Matt Graham <danceswithcrows@usa.net><br>Subject: Re: How to run php programs on local computer?<br>To: "Main PLUG discussion list" <plug-discuss@lists.phxlinux.org><br>Date: Wednesday, July 3, 2013, 12:18 PM<br><br><div class="plainMail">> From: kitepilot<br>>> Install Apache in your box and run from <a href="http://localhost/" target="_blank">http://localhost/</a> <br>>> If they are 'shell', make sure that the first line is:<br>>> #!/bin/php (whatever 'which php' resolves to...)<br>From: keith smith <br>> If you are doing any data stuff, you will have to pull in MySql as<br>> well.<br><br>The exact steps to take to get apache+PHP running vary depending on which<br>distro you're using. On
CentOS/RHEL, you'd do:<br><br>yum install httpd php53 php53-mysql<br>/etc/init.d/httpd start<br># optional, but makes it so apache always starts on boot<br>chkconfig httpd on<br><br>...once these things are done, you can put PHP code within .php files in some<br>dir under /var/www/localhost/ . Then going to <a href="http://localhost/myfile.php" target="_blank">http://localhost/myfile.php</a> in<br>a browser should execute that PHP code and display the results in that<br>browser.<br><br>The process is conceptually similar on all distros, but the details will be<br>different. The first thing I'd do is search the Net for "$DISTRO apache php<br>setup" since many people have had the same wants/needs. There are (usually)<br>default configurations in the distro packages that make running a simple setup<br>easy. apache configs can get large and complex if you're doing complicated<br>things (like hundreds of RewriteRules and hundreds of
different vhosts) but<br>you probably don't need those things just yet.<br><br>-- <br>Matt G / Dances With Crows<br>The Crow202 Blog: <a href="http://crow202.org/wordpress/" target="_blank">http://crow202.org/wordpress/</a><br>There is no Darkness in Eternity/But only Light too dim for us to see<br><br>---------------------------------------------------<br>PLUG-discuss mailing list - <a ymailto="mailto:PLUG-discuss@lists.phxlinux.org" href="/mc/compose?to=PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>To subscribe, unsubscribe, or to change your mail settings:<br><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></div></blockquote></td></tr></table>