加拿大华人论坛 美国华人新闻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. 代码:
·汽车 请推荐一款适合女生开的车(汽油款)
·汽车 我在路边停车时被刮伤了,如何申请保险?