Centos tutorial 12: Install Zend server and Zend eclipse PDT and install Apache + MySQL + PHP in the basic environment. Use phpMyAdmin to manage MySQL remote connection

Source: Internet
Author: User
Tags php development environment zend server
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.