rvsitebuilder with cloudlinux securelinks
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Hostking
  2. Sunday, 06 January 2013
  3.  Subscribe via email
Hi guys,

I have rvsitebuilder and the following in my cpanel,cloudlinux,cagefs,apache config on.

1. SymLinksIfOwnerMatch in apache configuration
2. Cloudlinux with securelinks on

When I created a tryout page everything seems to work fine. When published I noticed that no template thumbnail images were displayed on template sections.
I then decided to disable (1) and (2) after getting errors in apache error log:

mod_hostinglimits:Symlink owner mismatch, access denied due to SecureSymLink #31: /home/[domain]/public_html/tryout/www/template/pro_7-473-1_maroon_ferrisWheel_2/s_preview.jpg

and

Symbolic link not allowed or link target not accessible

Any ideas on how to fix this without having to disable these security features?

Thanks
Rate this post:
  1. 07.01.2013 08:01:06
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
What is the output of:
ls -l /home/[domain]/public_html/tryout/www/template/pro_7-473-1_maroon_ferrisWheel_2/s_preview.jpg 
and 
ls -lH /home/[domain]/public_html/tryout/www/template/pro_7-473-1_maroon_ferrisWheel_2/s_preview.jpg 
  1. 08.01.2013 12:01:21
  2. # 2
Hostking Accepted Answer
Posts: 38
Joined: 07.11.2012
0
Votes
Undo
-rwxr-xr-x 1 root root 39342 Sep 21 05:05 /home/[domain]/public_html/tryout/www/template/pro_7-473-1_maroon_ferrisWheel_2/s_preview.jpg*


and



-rwxr-xr-x 1 root root 39342 Sep 21 05:05 /home/[domain]/public_html/tryout/www/template/pro_7-473-1_maroon_ferrisWheel_2/s_preview.jpg*
  1. 10.01.2013 07:01:20
  2. # 3
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
are you sure you ran commands well? Is this file a link at all?
  1. 10.01.2013 14:01:58
  2. # 4
Hostking Accepted Answer
Posts: 38
Joined: 07.11.2012
0
Votes
Undo
If i do it on a folder "template" I get this:


lrwxrwxrwx 1 fastwebh fastwebh 47 Jan  4 00:00 /home/fastwebh/public_html/tryout/www/template -> /var/cpanel/rvglobalsoft/rvsitebuilder/template/


but the other command gives me this:

drwxr-xr-x    3 root root   4096 Aug 27 05:29 18-926-4_darkgreen_production_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:19 18-926-5_maroon_analysis_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:40 18-926-6_maroon_production_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:29 1-921-1_pink_Camera_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:40 1-921-2_pink_Cassette_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:24 1-921-3_red_Camera_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:23 1-921-4_red_Cassette_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:25 1-921-5_blue_Camera_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:36 1-921-6_blue_Cassette_02/
drwxr-xr-x    3 root root   4096 Aug 27 05:25 1-929-1_lightblue_colorpencil_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:38 1-929-3_pink_colorrize_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:32 1-929-4_lightblue_colorrize_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:39 1-929-5_gold_colorpencil_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:25 1-929-6_gold_colorrize_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:41 1-929-6_pink_colorpencil_1/
drwxr-xr-x    3 root root   4096 Aug 27 05:39 1-930-1_gold_PosterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:30 1-930-2_gold_WaterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:28 1-930-3_pink_PosterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:37 1-930-4_pink_WaterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:42 1-930-5_red_PosterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:39 1-930-6_red_WaterColor_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:35 1-968-1_pink_OrangeButterfly_2/
drwxr-xr-x    3 root root   4096 Aug 27 05:33 1-968-2_pink_GreenB

So I see the problem now due to ownership but if I change it to fastwebh will it not break things?
  1. 10.01.2013 14:01:05
  2. # 5
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
ah, that is the problem:

lrwxrwxrwx 1 fastwebh fastwebh 47 Jan  4 00:00 /home/fastwebh/public_html/tryout/www/template -> /var/cpanel/rvglobalsoft/rvsitebuilder/template/ 

this link should be owned by root for it to work.
What SecureLinks prevent, is such links where link by user1 is pointed to file by user2.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.
By submitting the response, you agree with Cloudlinux Privacy Policy