Linux Getting Started installation configuration lampp PHP environment detailed

Source: Internet
Author: User
Tags iptables phpmyadmin

This configuration applies to a new Linux machine all configuration, installed the following configuration, the basic can be assured to play.
1.lampp

2.ulimit modification

#ulimit-N Look at the 1024
Change it into 8192.

#ulimit-N 8192
Simple change is only currently valid, want to continue to effectively modify Etc/profile
Finally add Ulimit-n 8192
#source/etc/profile

3. Modify the file location of MySQL

4. Set Iptables
Open Port 80

Centos
/sbin/iptables-i input-p tcp–dport 80-j ACCEPT

5. Configure phpMyAdmin
Change the name of phpMyAdmin
Turn off phpMyAdmin Root and set the password for root

Modify login mode, for cookies or HTTP

6. Configure FTP

/sbin/iptables-i input-p TCP--dport 21-j ACCEPT
/etc/rc.d/init.d/iptables Save
Save the two rules just now

Turn off anonymous logins, set user names and passwords

7.php rewrite configuration to take effect config file http-vhost.conf need to be increased

<Directory/backup/www/>
Options FollowSymLinks
AllowOverride All
#XAMPP
#Order Deny,allow
#Deny from all
</Directory>

8. Join Apache Auto Start
Etc/profile

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.