All, we have a website built by third party company and they gave us the pack which includes cms, craft and MySQL database. But our hosting server is hardcoded to run the website from public_html folder (can't change this). Could you tell me how can change cms references to public_html? Tried to copy everything under cms folder to public_html only to see misconfiguration errors. Let me know if you need more info.

  • The craft directory should be above public_html if possible, otherwise it needs changing in the config. – Shane Hudson Aug 20 '14 at 11:35

The actual web root name doesn’t matter. Usually it’s “public_html” or something similar, and Craft’s “public” folder is only meant to represent that folder.

There are no references to the public/public_html folder within Craft itself; it’s the other way around: The index.php file within public/public_html is the one referencing Craft, via its $craftPath variable.

So here’s what you need to do:

  1. Upload the craft/ folder to your web server, ideally on the same level as your public_html/ folder rather than inside it, but if you don’t have permission to do that, inside public_html/ is OK.

  2. Upload the public/index.php file into your public_html/ folder

  3. Upload the public/htaccess file into your public_html/ folder and rename it to .htaccess

  4. Open up public_html/index.php and make sure the $craftPath variable is a valid path to the craft/ folder, wherever it is.

  • I did the first two steps and the website seems like this efcgroup-demo.co.uk but as soon as I copy .htaccess file it says "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log." – Jai Aug 20 '14 at 13:48
  • There must be something in your .htaccess file that is causing that error. The one that Craft ships with only has the code we’ve published here, which is pretty defensive. – Brandon Kelly Aug 20 '14 at 13:52
  • Thanks Brandon. It looks like it was a problem with .htaccess file and managed to sort it with this link github.com/h5bp/html5-boilerplate/issues/1012 – Jai Aug 20 '14 at 14:13
  • Glad you got it sorted! – Brandon Kelly Aug 20 '14 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.