安装问题, 注册 404
安装完成了, 注册 404,
看了这个站的安装问题, 都说是 rewrite 没有开启, 但是我的已经开启了, 不知道哪里出了问题,
系统:ubuntu, 搬瓦工 虚拟主机
scola2@default:/etc/apache2$ sudo a2enmod rewrite
Module rewrite already enabled
scola2@default:/etc/apache2/mods-enabled$ ls
access_compat.load auth_basic.load authz_core.load autoindex.conf deflate.load env.load mime.conf mpm_prefork.load php5.conf setenvif.conf status.load
alias.conf authn_core.load authz_host.load autoindex.load dir.conf filter.load mime.load negotiation.conf php5.load setenvif.load
alias.load authn_file.load authz_user.load deflate.conf dir.load headers.load mpm_prefork.conf negotiation.load rewrite.load status.conf
scola2@default:/etc/apache2$ cat sites-enabled/000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/Carbon-Forum-5.6.1
RewriteEngine On
RewriteOptions Inherit
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
<Directory /var/www/Carbon-Forum-5.6.1>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@lincanbin 帮忙看下, 麻烦了, 多谢
回复#7 @lincanbin :
头像无法修改, log 有异常
[Mon Jan 16 02:16:55.165504 2017] [:error] [pid 4137] [client 104.160.38.77:51520] PHP Warning: include(/var/www/Carbon-Forum-5.6.1/config.php): failed to open stream: No such file or directory in /var/www/Carbon-Forum-5.6.1/common.php on line 24
[Mon Jan 16 02:16:55.165545 2017] [:error] [pid 4137] [client 104.160.38.77:51520] PHP Warning: include(): Failed opening '/var/www/Carbon-Forum-5.6.1/config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/Carbon-Forum-5.6.1/common.php on line 24
[Mon Jan 16 02:17:15.694201 2017] [:error] [pid 4137] [client 104.160.38.77:52835] PHP Warning: touch(): Unable to create file install.lock because Permission denied in /var/www/Carbon-Forum-5.6.1/install/index.php on line 92, referer: http://104.224.170.122/install/
[Mon Jan 16 02:17:15.694976 2017] [:error] [pid 4137] [client 104.160.38.77:52835] PHP Warning: touch(): Unable to create file ../update/update.lock because Permission denied in /var/www/Carbon-Forum-5.6.1/install/index.php on line 95, referer: http://104.224.170.122/install/
[Mon Jan 16 02:19:15.055111 2017] [:error] [pid 4137] [client 104.160.38.77:60205] PHP Fatal error: Call to undefined function imagecreatefrompng() in /var/www/Carbon-Forum-5.6.1/includes/ImageResize.class.php on line 77, referer: http://104.224.170.122/settings
登录后方可回帖
另外,目前没有域名, http://server-ip/register
这样的