ArticleDirectory
- Set Apache httpd
- Install Zend server CE
- Install Zend eclipse PDT
Because some php development is required, Zend server ce and Zend eclipse PDT are usually used at this time.
Set Apache httpd
Httpd is installed with centos by default. The configuration directory is/etc/httpd, and the website directory is/var/www. We can configure it to boot.
# Chkconfig httpd on # service httpd restart
Install Zend server CE
1. Configure the Zend software source. Create the/etc/yum. Repos. d/Zend. Repo file. The content is as follows:
[Zend] Name = Zend serverbaseurl = Http: // Repos.zend.com/zend-server/rpm/?basearch Enabled =1 Gpgcheck = 1 Gpgkey = Http: // Repos.zend.com/zend.key [Zend_noarch] Name = Zend server- Noarchbaseurl = Http: // Repos.zend.com/zend-server/rpm/noarch Enabled = 1 Gpgcheck = 1 Gpgkey = Http:// Repos.zend.com/zend.key
2. Set the SELinux permission before installation. Otherwise, a permission error is prompted when the HTTPd service is started.
# Setenforce permissive
3. Install Zend server ce. You can first query the version provided by the software source:
# Yum list -- disablerepo = * -- enablerepo = Zend * |GrepZend-server-Cezend-Server-Ce-PHP-5.2. Noarchzend-Server-Ce-PHP-5.3. Noarch
Select the desired version and install it:
# YumInstallZend-server-Ce-PHP-5.3
4. Start the Zend-server daemon.
# Chkconfig Zend-Server on # service Zend-Server restart
5. Test Zend server.
#Cat>/Var/www/html/Index. php<?Phpphpinfo ();?>
View the page in a browser:
6. Add the Zend server ce installation path to the system environment variable.
#Echo 'Export Path = $ path:/usr/local/Zend/bin'>/Etc/ProfileEcho 'Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/Zend/lib'>/Etc/profile
For more information about Zend Server Installation, see RPM installation (RHEL, centos, fedora and OEL).
Install Zend eclipse PDT
Zend eclipse PDT works with Zend server ce to greatly simplify the php development environment configuration process.
The installation is very simple: Download the Zend eclipse PDT package, uncompress it, and execute the eclipse-PHP package.
#TarXvf ~ /Eclipse-PHP-3.0.2. V20120611144-x86_64.Tar. GZ #Chown-R root: Root eclipse-PHP # cd eclipse-PHP #./Eclipse-PHP
To facilitate startup, you can add a startup item on the top panel. You can download an eclipse icon from easyicon.cn, which is in PNG format and can be in both 32 and 48 sizes.
For more information about lamp environment settings, see:
Install the Basic Environment of Apache + MySQL + PHP
Use phpMyAdmin to manage MySQL
Remote connection to MySQL