/etc/apache2/apache2.conf <Directory /var/www/>/etc/apache2/sites-available/000-default.conf "DocumentRoot /var/www/html"apt-get install mysql-server mysql-clientapt-get install php5 libapache2-mod-php5apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl测试 /etc/init.d/apache2 restart ln -s /home/ks /var/www/htmlrm -rf /var/www/html/ksln -s /home/ks/ /var/www/html/f在html下建立了F对应ks目录下的链接
更改端口 /etc/apache2/ports.conf /etc/apache2/sites-enabled/000-default80改为8081
posted on 2016-01-22 15:55 AlanTop 阅读(205) 评论(0) 编辑 收藏 引用 所属分类: ubuntu
Powered by: C++博客 Copyright © AlanTop