0

Thanks in advance for any help - I'm starting to feel like a fool for coming up against errors so often. But here goes.

I have confirmed with my hosting provider that Craft CMS is compatible.

I have put /craft/ folder and the contents of the /public/ folder next to each other in the htdocs directory on my hosting server.

I've updated the location of the /craft/ folder in index.php (to $craftPath = './craft';)

When I navigate to mysite.com/admin I get Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite/htdocs/index.php

I've checked that the root folder is performing correctly - I can successfuly navigate to an image at mysite.com/pic.jpg.

1

I have a similar set up for one particular installation and have the $craftPath set as follows:

$craftPath = 'craft';

Which works fine.

  • Thanks Stephen, but that still doesn't work unfortunately: Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite.com/htdocs/index.php – Chris Oct 17 '16 at 13:43
  • Hmm, well the only function run by index.php to see if the craft folder exists is is_file on craft/app/index.php. Reading up on that on PHP's documentation, it says that the function can return false if the +x permission is not set for that file for the user running PHP, so maybe worth checking the craft, craft/app and craft/app/index.php permissions? – Stephen Hamilton Oct 17 '16 at 14:28
  • @Chris In addition to permissions, another thing to check is if you have any open_basedir restrictions in place in your php.ini file. – Brad Bell Oct 17 '16 at 17:39
  • Thanks again Stephen - I've just checked and the permissions are set to 744 for all of those files. Although there isn't a craft/app/index.php - index.php is in the htdocs folder? – Chris Oct 17 '16 at 18:40
  • 1
    Thanks Stephen - I went for a full reset in the end. Removed everything, re-downloaded from Craft site, re-uploaded as per their installation instructions, and now it's working :) – Chris Oct 18 '16 at 11:55

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.