[CentOS] Are PHP and MySQL running on my CentOS installation?
mailing-lists at hughesjr.com
Fri Sep 16 12:01:15 UTC 2005
On Fri, 2005-09-16 at 12:11 +0100, ABOKHALAF, Nassri Abdellatif wrote:
> What you need is php, msql & apache.
> You can install all the packages via using yum
> First execute
> yum install php php-mysql httpd mysqlclient10 mysql-server
> yum will resolve all dependences for you and probably will install some
> additional packages that you may need.
> If you have some packages already installed yum will tell you !
> After installation, you will have to start several services:
> service httpd start
> service mysqld start
> to test that your webserver is running you can use your local browser
> the best way to test php is to put a phpinfo.php file in your webserver
> document root usually in /var/www/html/.
> Do the following:
> vi /var/www/html/phpinfo.php
> insert in the first line:
> <? phpinfo(); ?>
> To test php do the following:
> it will show you your php configuration.
Also, make sure you are not running selinux
> > -----Original Message-----
> > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> > Behalf Of Dave Gutteridge
> > Sent: sexta-feira, 16 de Setembro de 2005 11:52
> > To: centos at centos.org
> > Subject: [CentOS] Are PHP and MySQL running on my CentOS installation?
> > When I was installing CentOS, I noticed among the list of components
> > that PHP and MySQL were available. I made sure they were selected
> > because I develop a lot of web sites in PHP/MySQL, but I always do my
> > testing on the server side. I thought it would be kind of cool if I
> > could do the testing and development on my home machine.
> > Which is a long way of saying that I think I have PHP/MySQL on my
> > machine, but have no idea what the heck to do with them. I mean, I can
> > script PHP and write queries for MySQL, but don't know anything about
> > their set up and installation.
> > I wrote a small test HTML page with basic head and body information,
> > simply this PHP in the body:
> > <?php
> > echo 'hello world':
> > ?>
> > And then opened it in FireFox. As expected, it didn't display
> > So I went to my trusty friend, Google, and asked about it. But it's
> > of those cases where people seem to assume that it's already
> > and if it's installed, it's already working. The PHP site itself says
> > "We do not distribute UNIX/Linux binaries. Most Linux distributions
> > with PHP these days" and then not much else about running it.
> > Am I going to find myself in a whole new world of confusing settings
> > configurations if I try to get PHP working on my home machine?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20050916/adc459db/attachment.bin
More information about the CentOS