, and so on. The recommended filtering function is as follows. Disable_functions = Phpinfo,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status , ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_ Server If you don't understand a function, Google can search for the function, and then decide if your own
/usr/local/nginx/conf/nginx.conf6
7Index index.php index.html index.htm;#Increase index.php
8
9 #Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
Ten #
OneLocation ~\.php$ { A root html; -Fastcgi_pass 127.0.0.1:9000;
- Fastcgi_index index.php; the Fastcgi_param script_filename $document _root$fastcgi_script_name; - include Fastcgi_params; - }
-
+ #Uncomment the fastcgi Server sectio
All of the following are reproduced in http://blog.csdn.net/lane_l/article/details/20235909I followed this article tonight using the CentOS 6.7 64bit installation successfully, make a backup, and then turn around.---------------------------------------------------------------Reprint language:Reproduced in: http://www.osyunwei.com/archives/2353.htmlOriginal title: CentOS 6.2yum Installation Configuration Lnmp Serve
Label:CentOS 6.4 Installing the Configuration Lamp Server (apache+php5+mysql)This article mainly describes the CentOS 6.4 installation configuration Lamp server (Apache+php5+mysql) method, the need for friends can refer to the followingPrepare the article:1, configure the firewall, open 80 ports, 3306 portsVi/etc/sysco
We need to do some basic security when we have a VPS or server that has a Linux system open.
There are probably several areas:1. Prohibit root account ssh, use custom account ssh;This way, the hacker must first guess the account number, then can guess the password;2. Prohibit account login, use PubKey login;3. For IP ACLs, allow only a few specific IP access;4. SSH port Migration, change the default 22 port to other ports;5. Start as little service a
This article mainly describes the CentOS 6.4 configuration Lnmp Server detailed steps, the need for friends can refer to the followingPrepare the article1, configure the firewall, open 80 ports, 3306 portsVi/etc/sysconfig/iptables-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT #允许80端口通过防火墙-A input-m state--state new-m tcp-p TCP--dport 3306-j ACCEPT #允许3306端口通过防火墙Note: Many netizens add these two
Aliyun I asked a lot of webmaster said very good, whether it is faster or from performance than other hosts better, but Aliyun is expensive so little, the following small set to give you introduce Aliyun server configuration and performance optimization
Replace the Aliyun server for a while, compared to my previous virtual host is not a grade. For example, I was
Prepare the article:
RHEL 7.0 System installation Configuration Diagram Tutorial I'm not going to introduce you here.
Configuring a local Yum source with a system-mirrored file
1, using WinSCP.exe and other tools upload system image files Rhel-server-7.0-x86_64-dvd.iso to/usr/local/src directory
2. Connect to Rhel server remotely
Start #启动MySQLChkconfig mysqld on #设为开机启动CP/USR/SHARE/MYSQL/MY-MEDIUM.CNF/ETC/MY.CNF #拷贝配置文件 (Note: If the/etc directory has a my.cnf under the default, you can directly overwrite it) 2. Set the password for the root accountMysql_secure_installationEnter, follow the prompts for YEnter Password 2 times, enterEnter Y as promptedLast appearance: Thanks for using mysql!MySQL password setup is complete, restart MySQL:/etc/init.d/mysqld Restart #重启/etc/init.d/mysqld Stop #停止/etc/init.d/mysqld Start #
Configuration Chapter One, Apache configurationVi/etc/httpd/conf/httpd.conf #编辑文件Servertokens OS #在44行 modified to: Servertokens Prod (the name of the server operating system is not displayed when the error page appears)Serversignature on #在536行 modified to: Serversignature OFF (the Apache version is not shown in the error page)Options Indexes followsymlinks #在331行 modified to: Options includes execcgi fol
If you want to build a Linux server, and want to be able to maintain long-term, you need to consider security performance and speed, and many other factors. A proper Linux basic Security Configuration manual is particularly important. In my article I'll introduce you to the basic Security Configuration manual for Linux servers under Edhat/centos 4,5.
Installatio
program directory/data/ www.osyunwei.com/:/tmp/: wq! #保存退出Systemctl Restart Mariadb.service #重启MariaDBSystemctl Restart Httpd.service #重启apacheTest articleCd/var/www/htmlVI index.php #输入下面内容Phpinfo ();?>: wq! #保存退出In the client browser enter the server IP address, you can see the configuration information as shown in the relevant!NOTE: The Apache default program directory is/var/www/htmlPermission settings
/ETC/INIT.D/HTTPD Restart #重启Apche
Configuration Chapter
First, Apache configuration
Vi/etc/httpd/conf/httpd.conf #编辑文件
Servertokens OS #修改为: Servertokens Prod (does not display the name of the server's operating system when the error page appears)
Serversignature on #修改为: Serversignature off (version of Apache is not shown in the error page)
Optio
, Posix_getsid,posix_getuid,posix_isatty, Posix_kill,posix_mkfifo,posix_setegid, Posix_seteuid,posix_setgid, Posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname, Posix_uname#在386行 lists the functions that PHP can disable, and if some programs need to use this function, you can delete and cancel the disabled.expose_php = Off #在432行 Suppress the PHP version informationMAGIC_QUOTES_GPC = on #在745行 open MAGIC_QUOTES_GPC to prevent SQL injectionShort_open_tag = on #在229行支
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.