加拿大华人论坛 美国华人新闻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. 代码:
·加拿大新闻 "她是华人,开保时捷,有钱"!多伦多华人女子惨
·加拿大新闻 奔驰GLC EV慕尼黑秀,能否与国产新能源一较高下
·加拿大新闻 卑诗省长罕见站队博励治:终结临时外劳计划!年轻人失业率爆
·加拿大新闻 BC高速公路竟然逆行 严重车祸2人死亡
·加拿大新闻 对抗关税加拿大开始撒钱:预计魁北克铝业将获“数亿元”关税
·中文新闻 英国母亲恳求伴侣跌倒并在去土耳其旅行中撞到他的头后支付
·中文新闻 影响1中1的健康问题可能会大大增加痴呆症的风险,专家发现