![]() |
|
Setup Website for vmware - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197) +---- Forum: Webmasters Help & Talk (https://lckb.dev/forum/forumdisplay.php?fid=142) +---- Thread: Setup Website for vmware (/showthread.php?tid=1368) |
- lata - 02-19-2015 Ho to setup website for vmware(centos6.4) - ☣ WARFACE ☣ - 02-19-2015 yum install httpd* php* mysql* - lata - 02-19-2015 Thank - SibaN - 02-19-2015 Installing Apache2 yum install httpd Now configure your system to start Apache at boot time... chkconfig --levels 235 httpd on ... and start Apache: /etc/init.d/httpd start Installing PHP5 We can install PHP5 and the Apache PHP5 module as follows: yum install php We must restart Apache afterwards: /etc/init.d/httpd restart _________________________________________________________________ Testing PHP5 / Getting Details About Your PHP5 Installation The document root of the default web site is /var/www/html. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version. vi /var/www/html/info.php <?php phpinfo(); ?> _________________________________________________________________________________________________ Getting MySQL Support In PHP5 To get MySQL support in PHP, we can install the php-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this: yum search php Pick the ones you need and install them like this: yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc APC can be installed as follows: yum install php-pecl-apc Now restart Apache2: /etc/init.d/httpd restart - lata - 02-20-2015 wow thank |