WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Domain mapped via DocumentRoot; CSS and JS files are not found (7 posts)

  1. NWTD
    Member
    Posted 6 months ago #

    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!

  2. Before you mapped the domain, did Multisite work correctly?

    Which domain mapping plugin did you use?

  3. NWTD
    Member
    Posted 6 months ago #

    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.

  4. NWTD
    Member
    Posted 6 months ago #

    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.

  5. Pothi
    Member
    Posted 6 months ago #

    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!

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

    http://codex.wordpress.org/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.

  7. 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.

Reply

You must log in to post.

About this Topic