• Resolved NWTD

    (@nwtechie)


    A little back story….

    I’m hosting my WordPress multi-site with MediaTemple on their (dv) VPS. The VPS has a Plesk control panel…not the greatest, but it works. I currently have my sub-sites setup without hosting, as #2 explains here. I’m attempting to get it setup with hosting, as #3 is explained here, for the primary reason of using multiple SSL certificates.

    Fast-forward through the tutorial on the second link, and that’s where I’m at.

    My main domain is nwtd.co, which is located here: /var/www/vhosts/nwtechanddesign.com/nwtd.co/.

    My sub-site is using pactems.orgm which is located here:
    /var/www/vhosts/pactems.org/.

    It appears that the document root has been set correctly, but permissions seem to be a bit of an issue. The CSS and JS files are “Not found”, as seen here

    My DocumentRoot for pactems.org is in /var/www/vhosts/pactems.org/conf/ and looks like:

    DocumentRoot /var/www/vhosts/nwtechanddesign.com/nwtd.co
        SuexecUserGroup nwtech psacln
        <Directory /var/www/vhosts/nwtechanddesign.com/nwtd.co>
                AllowOverride All
        </Directory>
        <Directory /var/www/vhosts/nwtechanddesign.com/nwtd.co>
        php_admin_value open_basedir none
        </Directory>
        <Directory /var/www/vhosts/nwtechanddesign.com/nwtd.co>
        <IfModule mod_fcgid.c>
        <Files ~ (\.fcgi)>
        SetHandler fcgid-script
        Options +FollowSymLinks +ExecCGI
        </Files>
        </IfModule>
        <IfModule mod_fcgid.c>
        <Files ~ (\.php)>
        SetHandler fcgid-script
        FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
        Options +ExecCGI
        allow from all
        </Files>
        </IfModule>
        Options -Includes -ExecCGI
        </Directory>

    The DocumentRoot has the user root and in the group root

    The permissions of the directory that the DocumentRoot is pointing to (/var/www/vhosts/nwtechanddesign.com/nwtd.co/) is 750 and the permissions for the directory css and js files live (/var/www/vhosts/nwtechanddesign.com/nwtd.co/wp-content/) is 777.

    Any ideas or suggestions would be greatly appreciated. I’m currently not using an SSL, but I will as soon as I can resolve the CSS/JS issue. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Before you mapped the domain, did Multisite work correctly?

    Which domain mapping plugin did you use?

    Thread Starter NWTD

    (@nwtechie)

    It appears this was an issue with nginx. I had to create a separate nginx.conf file for my vhost **pactems.org**

    In my nginx.conf, I just added:

    server {
    location / {
    root /var/www/vhosts/nwtechanddesign.com/nwtd.co/;
    }
    }

    Then from SSH, I ran /usr/local/psa/admin/bin/httpdmng --reconfigure-all & /etc/init.d/httpd graceful

    All seems to be working now.

    Thread Starter NWTD

    (@nwtechie)

    Can a mod please delete this post. I’m afraid my site has been hacked and has been since I made this post. thank you.

    Deleting a post happens on very rare occasions. Try adding a modlook tag. Additionally, since you posted in other place/s too, it is not necessarily that this WPORG post has anything to do with your site being hacked. If your site is hacked, there may be other reasons to it. Protecting a WordPress site against all such things is the site owner’s responsibility, even though security is everyone’s responsibility, such as a host.

    Btw, thanks for sharing what worked!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    modlook tag removed now that a moderator is looking at it.

    https://codex.www.ads-software.com/Forum_Welcome#Deleting_.2F_Editing_Posts

    It is not the general policy to edit or delete forum posts unless they are spam or outright abuse. Editing or deleting posts is only done in extreme cases.

    I’m sorry but this is not an extreme case.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Can a mod please delete this post. I’m afraid my site has been hacked and has been since I made this post. thank you.

    Unless you can prove that causality, the odds are against this being related in any way shape or form. Hackers scan for WP, not for people who post on WP with their domains.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Domain mapped via DocumentRoot; CSS and JS files are not found’ is closed to new replies.