Announcement

Collapse
No announcement yet.

403: Access Denied

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 403: Access Denied

    Hi,
    I am new to this forum and also ro EspoCRM, I have installed EspoCRM on VPS and it is live and available, Now, I am facing following issues.

    1. When changing any like update UI or anything in adminsitration or in Preference it gives my 403: Access Denied.
    2. Cron.php is running but in log it gives me error
    "[2019-01-30 13:39:33] Espo.ERROR: CronManager (ScheduledJob [5c518f89b8cc3baa9]): Scheduling string error - Invalid CRON field value cd as position 5. [] []"


    For Making things more clear I am mentioning what things I have done.

    1. cd <PATH-TO-ESPOCRM-DIRECTORY>
    find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +; find data custom -type d -exec chmod 775 {} + && find data custom -type f -exec chmod 664 {} +; 2. RewriteBase path, open a file api/v1/.htaccess and replace RewriteBase /api/v1/ 3. a2enmod rewrite
    service apache2 restart

    4. in root directory there is .htaccess file I also add patch in it i.e.

    <Limit GET POST PUT DELETE HEAD OPTIONS PATCH>
    Order allow,deny
    Allow from all
    </Limit>


    my ftp user is ali and group is www-data same as apache and this EspoCRM directory also part of www-data group and owner is my ftp user.


    After all these stuff there is still no luck . I would appriciate any help in this regard.




  • #2
    Originally posted by shafqatali89 View Post
    Hi,
    I am new to this forum and also ro EspoCRM, I have installed EspoCRM on VPS and it is live and available, Now, I am facing following issues.

    1. When changing any like update UI or anything in adminsitration or in Preference it gives my 403: Access Denied.
    2. Cron.php is running but in log it gives me error
    "[2019-01-30 13:39:33] Espo.ERROR: CronManager (ScheduledJob [5c518f89b8cc3baa9]): Scheduling string error - Invalid CRON field value cd as position 5. [] []"


    For Making things more clear I am mentioning what things I have done.

    1. cd <PATH-TO-ESPOCRM-DIRECTORY>
    find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +; find data custom -type d -exec chmod 775 {} + && find data custom -type f -exec chmod 664 {} +; 2. RewriteBase path, open a file api/v1/.htaccess and replace essay writer service RewriteBase /api/v1/ 3. a2enmod rewrite
    service apache2 restart
    4. in root directory there is .htaccess file I also add patch in it i.e.

    <Limit GET POST PUT DELETE HEAD OPTIONS PATCH>
    Order allow,deny
    Allow from all
    </Limit>


    my ftp user is ali and group is www-data same as apache and this EspoCRM directory also part of www-data group and owner is my ftp user.


    After all these stuff there is still no luck . I would appriciate any help in this regard.

    I've just installed EspoCRM. I was trying to import Leads from Administration>Import and the error occurred - 403 Access denied (a similar issue was reported on Stackoverflow, but there's no answer so far). I have checked - all permissions are valid for all directories. What could be the reason?

    Comment


    • #3
      Hello shafqatali89,
      you're right that you have to set all permissions according to the documentation: https://www.espocrm.com/documentatio...-based-systems . The owner of your Espo directory should be www-data, not your user. If you have already set up all permissions previously just try to change the owner. Maybe this is the main problem.
      To make ScheduledJob works it is not enough to have such job in the Scheduled Jobs. You need to set up the crontab file according to this https://www.espocrm.com/documentatio...etup-a-crontab

      Comment

      Working...
      X