Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-07, 08:01
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default Installation of Apache2 and PHP5 on CentOS 5.0

Following is the installation process for Apache2 and PHP5 -

-----------------------------------------

yum install httpd php php-devel

-----------------------------------------

You will now require to create system startup link -

chkconfig --levels 235 httpd on
/etc/init.d/httpd start

After the installation of PHP5, if you need PHP5, then you can search for them by using the following -

-------------------------------------

yum search php

-------------------------------------

After the result, installation takes place as follows -

yum install php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc

/etc/init.d/httpd restart

-------------------------------------

Normally, the document root for the website is /var/www/html. Create a php info (info.php) in the directory. You can create it as follows -


vi /var/www/html/info.php
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 03:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.