Skip to main content

symbolic links between cPanel accounts

Comments

6 comments

  • cPanelMichael
    Hello, Could you let us know the PHP handler you are using? You can find this information with the following command:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    Thank you.
    0
  • internetbug256
    Hi Michael I managed to find the solution. It was about unchecking the SymLinksIfOwnerMatch option from WHM, in Apache Configuration / Global settings. That, added to the rule that "if one account need write permission to a symlink dir, then it must own that directory", made my solution. In my case, I need only one account with read/write permissions, while all the rest need only read permissions. Answering your specific question: [root@web ~]# /usr/local/cpanel/bin/rebuild_phpconf --current Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: not installed Thank you!
    0
  • cPanelMichael
    Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0
  • Don D.
    Hi Guys, This is exactly what I needed to do and I am having troubles, would you please walk me thru this as I don't have much experience with linux, WHM and cpanel. What I try to accomplish: I have two Magento stores sharing exactly everything from data bases to back admin (which run under Magento). The only different is their domain and their IP address for SSL purpose. I have 1 store is up and running right now under user1 account in my WHM, I am adding 2nd store under user 2 account in WHM. In user 2 public_html, I need to add a bunch of symlinks to public_html folder in user 1 account, along with 1 index.php and 1 .htaccess files. Visitor will visit 2nd store and see that index php, then follow the symlink to the first account and Magento handling the rest from there using resources from first account. What I have tried so far: I followed Internetbug256 down to each code: chmod a+x /home/user1/public_html chmod a+x /home/user2/public_html chmod g+w /home/user1/public_html usermod -a -G apache user1 usermod -a -G apache user2 chgrp apache /home/user1/public_html I unchecked SymLinksIfOwnerMatch option Restarted apache The problem: I created a symlink: ln -s /home/user1/public_html/app /home/user2/public_html/app The folder created but nothing inside it. I know it is a symbolic link, but when clicking on it, you suppose to see what in that folder from user1 account right? My set up: Dedicated server Centos 7/apache WHM/cpanel This server right now only have 2 above account and will not have anything else later, I read a lot about this option and many commented the security breach of this option. I am aware of it and really want to go on with it. Please help me! I am greatly appreciated! Don
    0
  • Don D.
    So far I managed to get exactly what I wanted above... with a few minor changes where the group name is different (after I figured out the original post used apache as example group name! :) ) My problem now is when loading store 1, it is fine but when loading store 2, I have that CORS problem! Because obviously the skin images/css are running from store 1 url, making it mismatching in the head! I have tried adding: Header set Access-Control-Allow-Origin "*" to the .htaccess files of both store, but still not working Would you please offer some help on this? Thanks so much in advance!
    0
  • cPanelMichael
    The only different is their domain and their IP address for SSL purpose.

    Hello, Have you considered simply making the second domain name an addon domain name with the same document root? This would ensure both domain names load the exact same content, and the AutoSSL feature would assign SSL certificates to both domain names: Addon Domains - Documentation - cPanel Documentation Manage AutoSSL - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.