For PHP developers, once a product is put into use, the display_errors option should be turned off immediately to avoid hackers being hacked by the path, database connection, data table, and other information that these errors reveal. However, when any product is put into use, there will inevitably be errors, so how to record some useful error reports to developers? We can use the error report as a log in a
use this function, you can delete, cancel disable.expose_php = Off #禁止显示php版本的信息Short_open_tag = on #支持php短标签Open_basedir =.:/ tmp/#设置表示允许访问当前目录 (that is, the PHP script files in the directory) and/tmp/directory, you can prevent the PHP Trojan cross-site, if you change the installation program after the problem (for e
Use Note:
To modify the absolute path of the IIS log in the iis.php file
For example: $folder = "c:/windows/system32/logfiles/site log directory/"; Be sure to bring a slash (/) in the back.
(with virtual space do not understand the absolute path of your site to see?) Upload a probe!
Direct Check view: http://site domain name/iis.php
Local view: To download the log
Welcome to Mac OS X of XAMPPXAMPP for Mac OS x is the simplest, most practical, and most complete network server solution on Mac OS X. This release includes Apache 2 servers integrated with the latest MySQL, PHP, and Perl. It is released in the form of Mac OS X installation package, including all necessary files, without the need to download anything else.If you are an experienced network developer or a Mac
Error_log (' You want to output information ', 3, ' E:\work\jiajiayue\Application\Api\Controller\1.txt ');d ie;How to use and configure PHP error_log loggingFor PHP developers, once a product is put into use, the display_errors option should be turned off immediately to avoid hackers being hacked by the path, database connection, data table, and other information that these errors reveal. However, when any
Download the latest official version of the official website (the version number in parentheses is the one I used to build the platform):
Apache (2.2.4):
http://httpd.apache.org/download.cgi
PHP (5.2.3,zip package):
http://www.php.net/downloads.php
MySQL (5.0.45):
http://dev.mysql.com/downloads/mysql/5.0.html
phpMyAdmin (2.10.3):
http://www.phpmyadmin.net/home_page/downloads.php
In order to reinstall the sy
Note:
Modify the absolute path of IIS logs in the IIS. php file
For example, $ folder = "C:/Windows/system32/logfiles/site log directory/"; // remember to include a slash (/).
(If you use a virtual space, do you not know how to view the absolute path of your site? Upload probes for viewing!
Direct query: http: // site domain name/IIS. php
Local view method: Downl
Rpm-qa httpd* See if Apache is availableRpm-e httpd-2.2.22.2 Uninstall the file, if not let unload, then add parameter:--nodeps do not do the dependency check in software./configure--prefix=/application/apache/--enable-deflate--enable-expires--enable-headers--enable-modules=most- -enable-so--with-mpm=worker--enable-rewriteMake make installConfigure http.confModify ServerNameOpen vhosts CD extra/Configure V
Article Title: Upgrade and installation of apache, php, and mysql in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Because the linux version of the server is too low, the apache +
-rewrite--enable-cgid--enable-cgiMakeMake install/usr/local/apache/bin/apachectl Start OpenModify port Number Listen 81ServerName localhost:81Three PHP1:wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gzTAR-ZXVF libiconv-1.13.1.tar.gz cd libiconv-1.13.1./configure--prefix=/usr/local/libiconvMakeMake installConfigure error Xml2-config not found. Please check your LIBXML2 installationYum Install LIBXML2Yum Install Libxml2-devel-y[[email pro
I will write more about this article, mainly because it is time to finish. Recently, I have been busy with my work. I have to deal with a big mess in the company. First, I have to show off and eat it. Second, I can write something when I am idle. When there is little gossip, the book is connected back:
LApache Lifecycle
This section describes the loading process of the PHP module. For details, refer to Apache
30Minspareservers 30Maxspareservers 30Maxrequestsperchild 1000
Follow some security issue, we don't display too much information about our server. as we don't need the reverse lookup on the Client IP, we keep the default value of hostnamelookups to off and by this way we save some network traffic and server load.
ServerTokens ProdServersignature offHostnamelookups off
PHP 5.1.4
For perform our page generation and save some CPU we use the
loginsGrant all privileges on * * to ' root ' @ '% ' identified by ' haoabc2016! ' with GRANT option;flush privileges;-----------------------------------------------------------------------------------------------------------------------How to solve ERROR 1819 (HY000): Your password does not satisfy the current policy requirements it?Two global parameters must be modified:First, modify the value of the Validate_password_policy parameterset global validate_password_policy=0; Change the length of
Note:Modify the absolute path of iis logs in the iis. php fileFor example, $ folder = "c:/windows/system32/logfiles/site log directory/"; // remember to include a slash (/).(If you use a virtual space, do you not know how to view the absolute path of your site? Upload probes for viewing!Direct query: http: // site domain name/iis. phpLocal view method: Download the log
restarting Apache. (2) Create a directory: sudo mkdir -p/var/www/html/example.com/public_html
sudomkdir /var/www/html/ Example.com/logs (3) Link your web hosting file from the Sites-available directory to the sites-enable directory: sudo a2ensite example.com.conf Note: If you later need to remove this site, run: sudo a2dissite example.com.conf (4) Reload Apache sudo service apache2 Reload3. Create a MySQL
-5.3.10 \ extNote: it must be a system environment variable, not the current user environment variable.ApacheAfter successful installation, open the file D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf \ httpd. conf and make the following changes:Add the following statement directly at the end of the fileLoadmodule php5_module D:/php-5.3.10/php5apache2_2.dllPhpinidir D:/
implied setting:Configuration file in/etc/httpd/conf/, the root of the document is recorded as/var/www/html/, tool files in the/etc/rc.d/init.d/, the journal documents in the/var/log/httpd/of the catalogue.PHP's setup file for/etc/php.iniCreate a new PHP foot book:Phpinfo ();?>Install Apache expansionYum-y Install httpd-manual mod_ssl mod_perl mod_auth_mysqlExpa
can see that there are two apache processes, one of which is jumping out from time to occupy a large amount of CPU resources, and there is no way to force stop them. we thought it was a conflict between apache2.0 and the XP system, and we downloaded AppServ 2.4.3 again.
# PHP 4.3.10
# Apache 1.3.33
# MySQL 4.1.8
# Zend Optimizer 2.5.7
# PhpMyAdmin 2.6.1-rc2
Afte
Directories
/Usr/local/Apache as the base DirectoryBin/some commandsCgi-bin/cgi FileHtdocs/Webpage filesConf/httpd. conf configuration fileLogs/log file
7. Start and Stop
/Usr/local/Apache/bin/apachectl start/stop/restart
8. Automatic Start
VI/etc/rc. d/rc. Local
Join
/Usr/local/Apache/bin/apachectl start
Ii. insta
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.