Important virtual machine-based knowledge of Linux Apache Tomcat MySQL PHP

Source: Internet
Author: User

1: Installation Process omitted

2: After integrating Apache and tomcat, You need to modify httpd. conf 1> servername localhost: 80.

2> Add index. jsp after directoryindex 3> namevirtualhost Server IP

4> loadmodule jk_module/modules? Mod_jk.so

3: Disable the Linux Firewall

4: when installing PHP, the following problems may occur: "can not load/usr/local/Apache/modulse/libphp5.so

Into server:/usr/local/Apache/modules/libphp5.so: Can not resotre segment prot after

Reloc: Permission denied"

-- The cause of the change error is: caused by Linux SELinux.

Solution: 1> change SELinux = enforcing to SELinux = disabled in VI/etc/SELinux/config and restart

2> do not disable SELinux:

Setenforce 0

Chcon-C-v-r-u system_u-r object_r-T textrel_shlib_t/usr/local/Apache/modulse/libphp5.so

/Usr/local/Apach/bin/apachectrl start

Setenfore 1

5: Add the following in httpd. conf:

Addtype application/X-httpd-p-PHP. php

Addtype application/X-httpd-PHP-source. php

 

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.