Configure the PHP development environment in CentOS 6.4

Source: Internet
Author: User
Tags download zend php development environment

Configure the PHP development environment in CentOS 6.4

I. Environment Description

Operating System: CentOS 6.4 x86_64

Java: jdk-1.7.0_51

Ii. install PHP

Run the following command in Shell:

Yum install-y php httpd
Note: On CentOS 6.4, the PHP version installed through yum is 5.3.3.

3. Install Zend Debugger

Download Zend Debugger:

Cd/root/Downloads
Wget http://downloads.zend.com/studio_debugger/2011_04_10/ZendDebugger-20110410-linux-glibc23-x86_64.tar.gz
Note: The latest Zend Debugger only supports PHP 5.4 and 5.5, but does not support PHP 5.3.3. Therefore, you need to download the earlier version of Zend Debugger.

Pressurize and install Zend Debugger:

Tar-xvzf ZendDebugger-20110410-linux-glibc23-x86_64.tar.gz
Cp-a/root/Downloads/ZendDebugger-20110410-linux-glibc23-x86_64/5_3_x_comp/ZendDebugger. so/usr/lib64/php/modules/

Configure Zend Debugger:

Gedit/etc/php. ini
Add the following lines under the [PHP] Line of the above file:
Zend_extension =/usr/lib64/php/modules/ZendDebugger. so
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = always

Since libssl and libcrypto of CentOS 6.4 have been upgraded to 1.0.0, and Zend Debugger of the above version needs to use version 0.9.8, you also need to perform the following Configuration:

Ln-s/usr/lib64/libssl. so.10/usr/lib64/libssl. so.0.9.8
Ln-s/usr/lib64/libcrypto. so/usr/lib64/libcrypto. so.0.9.8

SELinux needs to be set to permissive mode, otherwise PHP will not be able to load Zend Debugger:

Gedit/etc/selinux/config
Change SELINUX = enforcing in the above file to SELINUX = permissive
Save the configuration file and restart the system.

4. Install Eclipse

Download Eclipse For PHP:

Cd/root/Downloads
Wget http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/luna/R/eclipse-php-luna-R-linux-gtk-x86_64.tar.gz

Decompress and install Eclipse For PHP:

Tar-xvzf eclipse-php-luna-R-linux-gtk-x86_64.tar.gz
Mv/root/Downloads/eclipse/usr/local/Eclipse4PHP

Create a Launcher for Eclipse on the desktop, run Eclipse, and set its Workspace to/var/www/html

5. Verification Test

Start Apache:

Service httpd start

Test whether PHP loads the Zend Debugger module:

Php-m
If the preceding command does not return an error and the following information is displayed, the module is successfully loaded:
[Zend Modules]
Zend Debugger

Create a PHP test project in Eclipse and use the phpinfo () function for verification. If the following information is displayed on the page, the installation is successful:

Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)

Nginx startup failure occurs during LNMP deployment.

Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)

Detailed php hd scanning PDF + CD source code + full set of teaching videos

Configure the php lnmp development environment in CentOS 6

PHP details: click here
PHP: click here

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.