ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Captchas not displaying on MSM and EE 1.6.8 site

March 22, 2011 7:24pm

Subscribe [4]
  • #1 / Mar 22, 2011 7:24pm

    vacationmouse

    34 posts

    Hello,

    I have scoured the boards and tried every suggestion, but no matter what I do, I cannot get Captchas to display on site2 of a 2-site MSM setup.  In fact, when I try to set the path to the Captchas image folder on site2, I get the dreaded “The following path you submitted is not valid:” error message.

    The captcha setting for site2 should be:  /home/site2/public_html/images/captchas

    Instead, CP wants it to be:  /home/site1/public_html/images/captchas

    Directory permissions are set to 777 for both captchas folders

    Full URL to captchas folder seems to be fine - when I try to visit it, I get ‘directory listing not allowed’

    URL site1:  http://www.site1.com/images/captchas
    URL site2:  http://www.site2.com/images/captchas

    One curious thing I can’t seem to get working which may be related. Site themes folders.

    On both sites, I have to point this setting to: /home/site1/public_html/themes

    If not, the entire admin theme goes kaput and shows as plain text.  I assume this is because the control panel home page is set to: http://www.site1.com/admin/index.php on both sites.

    I have not tried changing this to point to site2’s admin as I thought both sites were supposed to be admin’d from the one control panel.

    So, what I am I doing wrong?

  • #2 / Mar 23, 2011 12:20pm

    Sue Crocker

    26054 posts

    What’s your reasoning behind wanting captchas on separate sites? If you set it to: /home/site1/public_html/images/captchas what happens?

  • #3 / Apr 13, 2011 1:07am

    vacationmouse

    34 posts

    It is currently setup so site 1 and 2 both have the same settings

    Server path:  /home/site1/public_html/images/captchas/
    url:      http://www.site.com/images/captchas/

    Captchas show up on site1 but not site 2

    My thinking was that site2 needed to point to its own captcha folder.

    On site2 I just get the following html

    
    
    

    The image is missing altogether.
    On site1, I get what I am expecting, which is:

    
    
    

    The weird thing is that this worked fine before the site was moved to a new host…

    So, what am I missing here?

  • #4 / Apr 13, 2011 12:44pm

    Brandon Jones

    5500 posts

    Hi vacationmouse,

    The “The following path you submitted is not valid” error, along with the theme folder issue, is an indication that a security measure is in place on the host. Check with them to determine if there’s an open_basedir restriction in place, or something else like mod_security running.

  • #5 / Apr 18, 2011 2:04pm

    vacationmouse

    34 posts

    Checked open_basedir Tweak - site1 and site2 are excluded from open_basedir as site1.com and site2.com

    open_basedir tweak mentions that this isn’t enough if PHP is running as CGI, SuPHP or FastCGI and that open_basedir needs to be set in php.ini - looks like PHP is running as SuPHP…

    Default PHP Version (.php files)    5
    PHP 5 Handler   suphp
    PHP 4 Handler   suphp
       
    Apache suEXEC   on

    I’ll check with the host to see if php.ini is set up correctly since I can’t SSH in right now…

  • #6 / Apr 18, 2011 3:55pm

    vacationmouse

    34 posts

    OK, host will make the change but what is the recommended setting for open_basedir. I came across a few web hosting sites that suggested:

    open_basedir = /home/:/usr/lib/php:/usr/local/lib/php:/tmp

    Or is it better to specify the specific settings for each specific EE upload/writeable directory?

  • #7 / Apr 19, 2011 8:41am

    vacationmouse

    34 posts

    open_basedir is set and included home and all directories under it but the captchas still aren’t working… I’ve asked the client if he would consider moving to HostEngine since I’m pretty sure you guys would know how to properly configure the Apache server for EE…

  • #8 / Apr 19, 2011 1:17pm

    Brandon Jones

    5500 posts

    It depends on the environment, but the lest restrictive open_basedir setting is none at all or one that simply points to your user folder. The example you gave looks OK to me. Keep us posted on this!

  • #9 / Apr 20, 2011 4:42pm

    vacationmouse

    34 posts

    set open_basedir none in php.ini and restarted apache - still no captcha images on site2…  any other ideas?,

    Oh, also can’t set captchas preferences to site2s folders

  • #10 / Apr 20, 2011 4:47pm

    Sue Crocker

    26054 posts

    Hi, VacationMouse… what happens if you try?

  • #11 / Apr 20, 2011 10:15pm

    vacationmouse

    34 posts

    Try what Sue? I’m anxious for something else to try…

  • #12 / Apr 20, 2011 10:24pm

    vacationmouse

    34 posts

    Another oddity.  If I understand MSM and the difference between site specific preferences and installation wide assets, themes should be able to be different on each site.  Correct?  Here is the behavior I experience on this site…

    Choose site 2 from Sites tab.
    Choose Admin -> System Preferences -> General Configuration
    Change theme folder path to /home/site2/public_html/themes/

    And my admin theme goes caput - the whole page goes to plain HTML, no stylesheet.

    Should that happen?

    Then when I switch to site 1 from the sites tab - the theme folder path is pointing to the same folder I set for site2.

    Shouldn’t the theme folder remain what it was set to for site1?  Why would changing the theme folder for site2 effect site1’s settings?

  • #13 / Apr 21, 2011 2:29am

    John Henry Donovan

    12339 posts

    vacationmouse,

    The theme folder should remain pointing at the original path and URL.
    Your General Configuration is the same for all your MSM sites.
    Changing the theme path or URL per site is not supported.

    Users can certainly change their own control panel theme to whatever they wish but paths and URLs remain the same.

    Now you have restarted Apache do you still have 2 different folder settings for Captcha or just one?
    Can you change it to just one folder as a test please and double check your folder permissions are set to 777

  • #14 / Apr 21, 2011 8:59am

    vacationmouse

    34 posts

    Same Captcha settings for site1 and site2
    Permissions are set to 777
    in php.ini open_basedir =
    (tried none, =none and finally just =  )

  • #15 / Apr 21, 2011 4:44pm

    Brandon Jones

    5500 posts

    Hi vacationmouse, two more recommendations before we go in and take a look:

    1. Confirm that those settings in php.ini are actually taking effect. Double check your PHP Info output and look for “open_basedir” to make sure.
    2. Upgrade to 1.7.1 to ensure we’re on the same page.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases