First, the software
1, Putty
2, WinSCP
Second, commissioning
1, Linux under the Apache start, stop, restart command
Basic method of Operation:
This article assumes that your APAHCE installation directory is/usr/local/apache2 and that these methods are suitable for any situation
Apahce Start command:
Recommended/usr/local/apache2/bin/apachectl Start APACEH startup
Apache Stop Command
/usr/local/apache2/bin/apachectl Stop Stop
Apache Restart command:
/usr/local/apache2/bin/apachectl Restart Restart
To restart the Apache server without interrupting the current connection, you should run:
/usr/local/sbin/apachectl Graceful
If Apache is installed as a Linux service, you can do this with the following command:
Service httpd Start
Service httpd Restart Restart
Service httpd Stop Services
Linux System for Ubuntu
One, start Apache 2 Server/start Apache service
#/etc/init.d/apache2 Start
Or
$ sudo/etc/init.d/apache2 Start
Second, Restart Apache 2 Server/restart Apache service
#/etc/init.d/apache2 Restart
Or
$ sudo/etc/init.d/apache2 Restart
Third, stop Apache 2 Server/stop Apache Service
#/etc/init.d/apache2 Stop
Or
$ sudo/etc/init.d/apache2 Stop
2, Linux, PHP Web page content is not displayed
Generally the blank content of the PHP page should be PHP error. The default lamp configuration is more rigorous and does not show errors.
You can configure this:
1, modify the php.ini (such as:/etc/php5/apache2/php.ini) file:
error_reporting = E_all
Display_errors = On
2. Add in PHP page
Error_reporting (E_all);
Ini_set ("Display_errors", "on");
Both of these are start error prompts.
Linux Deployment Web Project