Two sites one PC

after this problem I think that there is a problem if I have two wordpress installation on one pc. I’ve fallow this instruction and the only thing is that I’ve change the wp-contents folder like this

* Default value for some constants if they have not yet been set
   by the host-specific config files */
if (!defined('ABSPATH'))
    define('ABSPATH', '/var/www/aniabuchi/');
if (!defined('WP_CORE_UPDATE'))
    define('WP_CORE_UPDATE', false);
    define('DB_HOST', 'localhost');
if (!defined('WP_CONTENT_DIR') && !defined('DONT_SET_WP_CONTENT_DIR'))
    define('WP_CONTENT_DIR', '/var/www/aniabuchi/wp-content');

So the problem is that nothing I’ve install into the second wordpress is working correct or visible. I’ve upload Media, Install themes and plugins but I can’t see their resources such as images and etc.
I think that this is Alias problem – I have the same alias into every site.conf under /etc/apache2/site-available

first_site.conf -> Alias /wp-content /var/lib/wordpress/wp-content

second_site.conf -> Alias /wp-content /var/www/aniabuchi/wp-content

but how can I resolve it



  1. Vasil Ivanov
    1 Votes

    So I was right and the problem was the alias so no one tell me how to resolve it. I thinking about how can I rename the wp-content for the second wordpress installation. I found a simple tutorial here and after made everything from tutorial with the rename procedure now all resources are available.

  2. T.Todua
    -1 Votes

    I think you are doing everything wrong. You should just use 1 WP installation and ENABLE MULTI-SITE feature, and then you can open as many separate WP sites as you want!

    NO NEED TO INSTALL separate WORDPRESS installations.

Please signup or login to answer this question.

Signup for an account and start participating in our site today!

Social Signup

You can also login with your Facebook, Twitter or Linkedin account

Log in with Facebook