加拿大华人论坛 美国华人新闻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. 代码:
·加拿大新闻 收到这条短信别删!加拿大Rogers/Fido/Chatr用户有望领到一笔钱!
·加拿大新闻 别克GL8焕新登场,配炫酷大屏与舒适座椅,动力强劲
·加拿大新闻 胡锡进:美国最铁杆的盟友,现在却被美国百般羞辱
·加拿大新闻 TD预测:加拿大房市明年迎拐点房价全线看涨
·加拿大新闻 又一家电集团造车,打造移动客厅,夏普首款车有没有看头?
·中文新闻 旋风“阿尔弗雷德”过后,数千名昆士兰人在黑暗中度过了一周
·中文新闻 足球明星因对阵萨摩亚的疯狂尝试而走红








