GASALA
V2EX  ›  问与答

一个关于LAMP的问题。

  •  
  •   GASALA · May 10, 2013 · 2812 views
    This topic created in 4781 days ago, the information mentioned may be changed or developed.
    在ubuntu下搭建好了LAMP环境,假设网站目录是/var/www/abc,在sites-available中设置好虚拟主机,并启用:
    <VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName www.abc.com
    DocumentRoot /var/www/abc
    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>
    <Directory /var/www/abc/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    </VirtualHost>

    问题是,网站目录下所有的php文件都读不出来,只能读取静态文件。现在连wordpress都安装不了。而在/var/www/目录中就可以读取。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5605 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 02:40 · PVG 10:40 · LAX 19:40 · JFK 22:40
    ♥ Do have faith in what you're doing.