加拿大华人论坛 美国华人新闻Install Apache (httpd) and PHP 5.3.6 on CentOS 5.6/6
在加拿大
This guide shows howto install Apache HTTP Server (httpd) with PHP 5.3.6 and following modules:PEARPDOMySQLPostgreSQLMemcacheGDXMLMBStringMCryptInstall Apache HTTP Server (httpd) and PHP 5.3.61. Change root user 代码: su -## OR ##sudo -i 2. Install Remi repositoryCentOS and Red Hat (RHEL) 代码: ## Remi Dependency on CentOS and Red Hat (RHEL)rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm ## Red Hat (RHEL) 6 ##rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ## CentOS 5 and Red Hat (RHEL) 5 ##rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm 3. Install Apache (httpd) Web server and PHP 5.3.6 代码: yum --enablerepo=remi install httpd php php-common Install MySQL Server 代码: yum --enablerepo=remi install mysql.x86_64 代码: yum --enablerepo=remi install mysql-server 代码: yum --enablerepo=remi install mysql-devel.x86_64 4. Install PHP 5.3.6 modulesSelect what you need: PEAR, PDO, MySQL, PostgreSQL, Memcache, GD, MBString, MCrypt, XML 代码: yum --enablerepo=remi install php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml 5. Start Apache HTTP server (httpd) and autostart Apache HTTP server (httpd) on boot 代码: /etc/init.d/httpd start ## use restart after update## OR ##service httpd start ## use restart after update chkconfig --levels 235 httpd on6. Create test PHP page to check that Apache, PHP and PHP modules are workingAdd following content to /var/www/html/test.php file. 代码:
·加拿大新闻 崩盘进行时?房源堆积如山!成交量暴跌,买家持币观望:还能
·加拿大新闻 新蒙迪欧实测:6秒破百+8155芯片,B级车新标杆?
·加拿大新闻 发布与特鲁多贴脸照!“水果姐”终于官宣了
·加拿大新闻 多伦多冬日最酷活动去最美图书馆蹦迪去
·加拿大新闻 多伦多警方抓获一名“扎胎党”,车主被扎后开上高速路后失控
·中文新闻 肾结石:女性越来越容易患上这种令人痛苦的疾病
·中文新闻 墨尔本西部特鲁加尼纳发生恐怖多车相撞事故,造成一人死亡,








