1. Install the Apache2sudoapt-getinstallapache2 under Ubuntu10.10 and then open: http: // localhost/in Firefox prompt success & lt ;? Xml: namespaceprefix = ons = "urn: schemas-microsoft-com: office"/& gt; after the installation is complete, start Apache.
1. Install Ubuntu 10.10Apache2
Sudo apt-get install apache2
ThenFirefoxOpen:
Http: // localhost/
Prompt successful
After installation, startApacheNow
To enhance security for local development only, set as follows:
Xiaozhihu @ xiaozhihu :~ $ Gksudo "gedit/etc/apache2/ports. conf"
ChangePorts. conf
Listen 127.0.0.1: 80
Save the file and restart it.Apache.
StartApache
$ Sudo/usr/sbin/apache2ctl start
StopApache
$ Sudo/usr/sbin/apache2ctl stop
RestartApache
$ Sudo/etc/init. d/apache2 restart
EnterHttp: // localhostOrHttp: // 127.0.0.1If you see"It works! ", It meansApacheThe installation is successful,ApacheBy default/VarCreateWwwDirectory, this isWebDirectory, www.linuxidc.com allWebAll files must be placed in this directory.