403 error on installing SuiteCRM

1.8k views Asked by At

I've got 403 Forbidden error while installing SuiteCRM on shared hosting in the phase where you need to enter database credentials.

On a console, there's a report 403 (Forbidden) on file /cache/include/javascript/sugar_grp1_yui.js which leads to YAHOO is not defined error and makes installation unable continue.

Full error when accessing the file directly by url

Forbidden
You don't have permission to access /n/sfck/SuiteCRM-7.10.4/cache/include/javascript/sugar_field_grp.js on this server.
Server unable to read htaccess file, denying access to be safe

I have tried

  • Set permission of SuiteCRM-7.10.4 folder to 755
  • Disable all .htaccess file (Including the WordPress one)
  • Create blank .htaccess file to /cache/include/javascript

Notes

  • I have tried to move the conflicted file to the upper folder and it can be accessed normally (This problem only occurs in some folder).
  • There's a WordPress installed on my site (not sure if this affected the installation).
  • My site uses DirectAdmin.
1

There are 1 answers

8
Alejandro On BEST ANSWER

Your cache folder seems to be not writable by webserver (as it should), make sure you've done:

sudo chown -R www-data:www-data .   #or whoever else user your server use
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null

according to SuiteCRM installation steps.