How to use PHP to develop secure exploitation programs
Source: Internet
Author: User
PHP is an embedded scripting language for cross-platform servers. It borrowed a large number of C, Java, and Perl syntax, coupled with PHP's own features, so that WEB developers can quickly write dynamic pages. The latest version of PHP5.01 currently supports the majority of PHP plug-ins. It borrowed a large number of C, Java, and Perl syntax, coupled with PHP's own features, so that WEB developers can quickly write dynamic pages. The latest version of PHP5.01 supports most databases (Mysql, PostgreSQL, Oracle, DB2, Sybase, and so on ). Another point is that PHP is free of charge. you can download it from the official site of PHP (http: // www.php.net. PHP expands the efficacy of the WEB Server and implements the backend extension interface of the best Web service, as shown in-1.
Figure-1 PHP expands the efficacy of WEB Server
PHP is short for Professional HyperText PreProcessor. Taking the latest PHP5.01 as an example, the following WEB servers are supported: Apache, Microsoft Internet information Sereve, Microsoft Personal web Server, AOL server, and Netscape Enterprise.
PHP is a powerful language and interpreter, whether installed on a web server as a module or as a separate CGI program, can access files, execute commands, or open links on the server. These features bring security titles during PHP runtime.
Although ph p is specially designed to be a safer language than CGI programs written in Perl or C language, however, accurate application of some configuration options during compilation and running, as well as proper utilization of encoding, will ensure its running security. Since PHP can be used in many different ways, it has many configuration options to control its actions.
A set of ambitious optional parameters can ensure that you can use PHP for many different purposes, but it also means that the combination of these parameters and server configuration will bring some security titles. PHP configuration has the same mobility as its code. PHP can be used to establish a complete server utilization program with permissions of all Shell users. It can also be used as a simple server inclusion in a strictly controlled environment, with only a small risk. How you establish the environment and how secure it is depends largely on PHP developers. Note: all operations in this article are completed under Red Hat Linux 9.0.
I. security from the beginning
Before compiling PHP, make sure that the version of the control system is up-to-date and necessary patches must be installed. The following four headers should be noted during PHP installation and compilation:
1. integrate Apache, PHP, and Mysql with apachpoliclbox. Currently, the best combination of web site construction is Linux Apache Mysql PHP. However, during actual work, you need to distinguish download, install, and configure apache, php and mysql, and apache httpd needs to be modified according to the actual situation. conf, php. ini also has the mysql configuration file. if you still need to provide ssl functions, you have to download the accurate ssl apache module and customize it. INI files, and the title of any step will make the website unable to run accurately.
If you want to complete the configuration successfully at a time, even if you are an experienced Linux network administrator, it is more difficult. Apache Toolbox is written in shell scripts. Apache Toolbox makes it easy for you to customize your apache according to your request and select among the 52 third-party software packages supported by Apache and 36 modules.
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