加拿大华人论坛 美国华人新闻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. 代码:
·加拿大新闻 宝马出新款手动M2,向经典致敬
·加拿大新闻 惊爆!加拿大一年15.3万次医疗事故!这6种伤害最常见,要多住
·加拿大新闻 温哥华中国电影周开幕光影交流对话中国
·加拿大新闻 奥迪首款电动轿跑E5Sportback,闪耀登陆津门
·加拿大新闻 震惊:加拿大参议员做手术,未经同意竟被切除子宫
·中文新闻 Yungblud 将把 IDOLS 世界巡回演唱会带到澳大利亚
·中文新闻 凯蒂·佩里 (Katy Perry) 打破了对与贾斯汀·特鲁多 (Justin Trudeau) 的