我是WordPress的新手,我想在localhost
我有我的WordPress网站,我不必去localhost/wordpress
. 这是因为我与BuddyPress合作,而BuddyPress与installations where you give WordPress its own directory.
我正在尝试:
# /etc/apache2/sites-enabled/000-default.conf
DocumentRoot /var/www/html/wordpress
# /var/www/html/wordpress/wp-config.php
if ( !defined(\'ABSPATH\') )
define(\'ABSPATH\', \'/\');
# /var/www/html/wordpress/wp-load.php
if ( !defined(\'ABSPATH\') )
define(\'ABSPATH\', \'/\');
当我只尝试前两个文件时,它部分起作用:localhost
呈现了WordPress站点,但没有样式。通常的设置方法是什么?我是否做了正确的事情:将WordPress移动到root?还是BuddyPress指的是其他东西?
更新
apachectl -M | grep -i write
AH00558: apache2: Could not reliably determine the server\'s fully qualified domain name, using 127.0.1.1. Set the \'ServerName\' directive globally to suppress this message
rewrite_module (shared)
链接指向http://localhost/wordpress/activity/
我应该让他们指出http://localhost/activity/
? 怎样