I am new to WordPress, I want that when I go to
localhost I get my WordPress site, and I don't have to go to
localhost/wordpress. This is because I am working with BuddyPress which does not work with
installations where you give WordPress its own directory.
I am trying:
# /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', '/');
When I tried the first two files only, it worked partially:
localhost rendered WordPress site but without style.
What is the usual approach to set this up? Am I doing the right thing: to move WordPress to root? or does BuddyPress is referring to other thing?
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)
Links are pointing to
http://localhost/wordpress/activity/ should I make them to point to