Redhat5 + XAMPP1.7.1 + ZendOptimizer3.3.9 installation Configuration

Source: Internet
Author: User
1. install RedHat. If you do not need to install RedHat, you can install it on your own or buy a disk. install xampp1.7.1 Note: If zendOptimizer3.3.9 supports PHP5.2 at the maximum, you can only use xampp1.7.1 (PHP5.2.9) to renew the installation. 3. Security

1. Install RedHat. If you don't need to install RedHat, you can just install it on your own or buy a disk.

2. Install xampp1.7.1
NOTE: If zendOptimizer3.3.9 supports PHP5.2 at most, you can only use xampp1.7.1 (PHP5.2.9) for installation success)
Go to renewal.

3. Install ZendOptimizer
*. Download file: http://www.zend.com/en/products/guard/downloads

* Double-click "resize" to decompress ZendOptimizer. so in the 5_2_X folder. Copy the file to the/opt/lampp/lib folder.

*. Configure php. ini
Open php. ini in/opt/lampp/etc and append it at the end of the file (note that there is no space in front ):

[Zend]
Zend_optimizer.optimization_level = 15
Zend_extension =/opt/lampp/lib/ZendOptimizer. so
*. Restart Apache
Run the following command:

/Opt/lampp restart if you are lucky to have no errors during the restart process, the success will be successful. You can go to phpinfo () to see if:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
With Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies error handling
First of all, I am not so lucky. When I restart Apache, the error is as follows:

Stopping XAMPP for Linux 1.7.1...
XAMPP: Stopping Apache with SSL...
Failed loading/opt/lampp/lib/ZendOptimizer. so:/opt/lampp/lib/ZendOptimizer. so: cannot restore segment prot after reloc: Permission denied
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.7.1...
Failed loading/opt/lampp/lib/ZendOptimizer. so:/opt/lampp/lib/ZendOptimizer. so: cannot restore segment prot after reloc: Permission denied
XAMPP: Starting Apache with SSL (and PHP5 )...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started. solution:
Edit/etc/selinux/config and find the following link:

# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = enforcing comment out SELINUX = enforcing: # SELINUX = enforcing, and then add a new line:

SELINUX = disabled save, disable.
......

Edit/etc/sysconfig/selinux and find:

# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = enforcing if SELINUX is already set to SELINUX = disabled, you do not need to change it. Otherwise, you need to comment out SELINUX = enforcing and add a new line:

SELINUX = disabled: Save and exit.
-----------------------------
If the problem persists, run the following command after you make sure to execute the above operation.

Chcon-t texrel_shlib_t/opt/lampp/lib/ZendOptimizer. so can be solved.

Then try restarting the server and enter/opt/lampp restart. The above error should not be returned.

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.