This question about Installation of Foswiki: Answered

GoDaddy Installation issues: Nearly working but unstyled etc.


I've followed the guide to installation on GoDaddy shared hosting and I've been through the configuration script. I can launch the site to register but the page is unstyled ie just black text on a white background and below the registration input boxes there is a lot of raw code.

If I go through the registration I get to a page that warns me "Foswiki has received a suspicious change request from your browser." but there is no button or anything on this page to confirm.

I'm sure I'm nearly there but I must have a setting wrong somewhere.

My apache logs just state:

[Wed Nov 17 23:20:32 2010] [error] [client] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/chroot/home/content/w/i/l/wildscot/html/jed/foswiki/pub/System/DocumentGraphics/index.png
[Wed Nov 17 23:20:32 2010] [error] [client] File does not exist: /var/chroot/home/content/w/i/l/wildscot/html/jed/missing.html

I was receiving errors that:

[Wed Nov 17 23:03:14 2010] [alert] [client] /var/chroot/home/content/w/i/l/wildscot/html/jed/foswiki/pub/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

So I commented out the last line of the following code - just a stab in the dark!

# If you have PHP4 or PHP5 installed as Apache module make sure the directive below is enabled
# If you do not have PHP installed you will need to comment out the directory below
# to avoid errors.
# If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
# php_flag engine off

I've been at this all night and I'm thoroughly stuck now. Any help would be appreciated, I can supply any further information that's necessary.

[Wed Nov 17 23:03:14 2010] [alert] [client] /var/chroot/home/content/w/i/l/wildscot/html/jed/foswiki/pub/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

-- JamesDonaldson - 18 Nov 2010

It may be worth pointing out that my 'configure' page is styled.

-- JamesDonaldson - 19 Nov 2010

I have exactly the same problem as James. Please help foswiki Gurus!

-- SimonHardyFrancis - 02 Mar 2011

In James's case, it looks like you need a FollowSymLinks on or SymLinksIfOwnerMatch on in your .htaccess file (assuming you have permission to enable it), otherwise apache is unable to process rewrite rules

-- PaulHarvey - 02 Mar 2011

I had the same symptoms as James and solved it the following way: I had to comment out this setting in pub/.htaccess and then the registration page showed correctly:

# If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
php_flag engine off

For some reason unless this setting is commented out then GoDaddy returns 500 errors for all the page components on the registration page, e.g. .css, .js files etc.

Sources of confusion: What is confusing is that the foswiki configure page renders wonderfully with all the icons etc. Apparently this is because it is completely separated from all the regular pages. Another source of confusion is why the registration page doesn't work even if the icons etc aren't loading. The reason for this is that vital processing happens in the .js files which don't get loaded.

How did I figure out which line to comment out? I searched the folder structure for one of the items getting a 500 response. Then I deleted all the .htaccess files and discovered that the 500 response went away. I then started putting the .htaccess files back until it was obvious which .htaccess file caused the 500 error. Then I did trial and error commenting out setting in the .htaccess file and bingo... smile

-- SimonHardyFrancis - 03 Mar 2011

After this problem was solved then registration still didn't work. This is because I had set the {SMTP}{MAILHOST} setting to which caused the error "Thank you for registering ... Warning: Could not send confirmation email: ERROR: Can't send mail using Net::SMTP. Sorry, that domain isn't in my list of allowed rcpthosts. Too many failures sending mail". After contacting GoDaddy support it turns out that there is a special SMTP host for this sort of thing so I set {SMTP}{MAILHOST} setting to and everything worked. The only caveat is that only handles relaying 1000 messages per day. But that's more than enough for my purposes.

-- SimonHardyFrancis - 03 Mar 2011

I had another problem with step 6 of Sven's instructions here: InstallingOnGoDaddyDeluxPlan

After following the instructions then when trying to navigate to the configure page, instead of being asked for a password, I only got a 404 error. The GoDaddy error log showed the error "... client denied by server configuration: /var/chroot/home/content/...".

After a lot of debugging then I discovered that if I keep the line 'Deny from all' commented out (Sven suggested uncommenting it) then everything works as expected.

-- SimonHardyFrancis - 03 Mar 2011

QuestionForm edit

Subject Installation of Foswiki
Version Foswiki 1.1.2
Status Answered
Related Topics SharedHosting
Topic revision: r7 - 15 Mar 2012, PaulHarvey - This page was cached on 06 Aug 2020 - 05:48.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy