Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cronjob error 403
- I have a problem to configure my cronjob.
- ++++++++++++++
- If You want to buy cheap web hosting then visit http://Listfreetop.pw and select the cheapest hosting. it can be suitable for all your needs.
- Top 200 best traffic exchange sites http://Listfreetop.pw/surf
- list of top gpt sites
- list of top ptc sites
- list of top ptp sites
- list of top crypto currency Wallets sites
- Listfreetop.pw
- Listfreetop.pw
- Listfreetop.pw
- +++++++++++++++
- I have an error 403 result. I can not access the file despite giving permission: 644, 711, 755 to the file PHP
- I can not afford to give the 777 permission to the file PHP. It's too dangerous.
- I called my provider and asked the software producer.
- The only way to configure the cron is by php access.
- I can not get the usual cronjob codes.
- Thanks a lot for your help.
- Hi,
- So did setting 777 work? Not clear from your question.
- Try checking error logs.
- This may be an owner issue, this may trigger 403s.
- HostInsider - web in simple words
- A 403 is a http error code, so are you running the cron as: wget / curl http://example.com/file.php? Permissions would come in to play here but 644 for example should be enough. If you are doing: php path_to_file, then permissions of the file and folder will dictate access but if you are running the cron as the user and files are owned by that user then again standard permissions should work.
- If you are doing a wget / curl method, make sure mod security or other filter isn't filtering the user agent for wget / curl and if it is you will have to change the user agent via --user-agent=agent-string for wget or --user-agent "agent" for curl.
- Beyond that, we would need an error log entry to help further.
- -Steven | u2-web@Cooini, LLC - Business Shared Hosting | Isolate sites with Webspaces | Site Builder | PHP-FPM | MariaDB
- WHMCS Modules: Staff Knowledgebase | Custom Modules and Hooks
- "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle
- Hello, thank you for your answer. it helps me a lot.
- I am a little desperate.
- I'm not sure where that comes from. I asked cloudflare and they say the problem is the provider. The provider says it comes from cloudflare.
- Last edited by Aldebaron; 12-29-2018 at 05:09 PM.
- Hi,
- So did setting 777 work? Not clear from your question.
- Try checking error logs.
- This may be an owner issue, this may trigger 403s.
- i'm going test 777 next time.
- But it's dangerous?
- Thanks
- A 403 is a http error code, so are you running the cron as: wget / curl http://example.com/file.php? Permissions would come in to play here but 644 for example should be enough. If you are doing: php path_to_file, then permissions of the file and folder will dictate access but if you are running the cron as the user and files are owned by that user then again standard permissions should work.
- If you are doing a wget / curl method, make sure mod security or other filter isn't filtering the user agent for wget / curl and if it is you will have to change the user agent via --user-agent=agent-string for wget or --user-agent "agent" for curl.
- Beyond that, we would need an error log entry to help further.
- Hello, thank you for your answer. it helps me a lot. Yes I think the mistake must be http. As for the configuration. I am at a provider who has a custom panel. So I can not know if it's by wget or crul ...
- I can only give the address of the file and the timing.
- I called the provider and they are used to problems like wordpress and drupal. So they do not know how to help me
- I forgot to prescise. I have a cdn that is install. Cloudflare style.
- Maybe cloudflare, maybe permission, maybe http/https?
- how's know?
- i'm going test 777 next time.
- But it's dangerous?
- Thanks
- Nothing will happen if you set it temporary for testing purposes. Just don't leave 777.
- HostInsider - web in simple words
- I am at a provider who has a custom panel. So I can not know if it's by wget or crul ...
- I can only give the address of the file and the timing.
- Can you show the interface (screen capture) where you're adding this? Generally for PHP files you need to define what to use, like PERL or PHP at the start of the command, like: php /home/location/file.php
- If it was cURL or wget (both are generally external calls) it would need to say that.
- Move over, coffee, this is a job for alcohol!
- Can you show the interface (screen capture) where you're adding this? Generally for PHP files you need to define what to use, like PERL or PHP at the start of the command, like: php /home/location/file.php
- If it was cURL or wget (both are generally external calls) it would need to say that.
- Commentaire from provider faq:
- "Cron jobs do not know the absolute path. Calling up PHP without specifying the full paths to the executable therefore makes it impossible to execute the job"
- Yes, I understand. It may want something like /usr/bin/php, but since I don't know your environment, I didn't specify. Did you do that; specify the full path to both the executable and the file you asked it to run?
- Move over, coffee, this is a job for alcohol!
- Yes, I understand. It may want something like /usr/bin/php, but since I don't know your environment, I didn't specify. Did you do that; specify the full path to both the executable and the file you asked it to run?
- thank for your answer.
- No i can't use this instructions.
- That star only with "https/https: mywebsite/path/file"
- and i select the frequence.(time).
- Best regards
- Here is a copy of the htaccess file that protects the file
- "<IfModule authz_core_module>
- Require all denied
- </IfModule>
- <IfModule !authz_core_module>
- Deny from all
- </IfModule>"
- Is there a way to give permission to a single file?
- Well, there's the problem.
- https://httpd.apache.org/docs/2.4/mo...uthz_core.html
- Require all denied
- Access is denied unconditionally.
- Move over, coffee, this is a job for alcohol!
- Well, there's the problem.
- https://httpd.apache.org/docs/2.4/mo...uthz_core.html
- Thanks for the answer, finally a track for a solution.
- Is it possible to solve the problem by authorizing a specific file.
- Could I add a line of code to access file authorization only?
- mywebsite.com/path/cronfile
- In order to keep the folder protect and allow the file only?
- Thank you
- Hello,
- I have a problem to configure my cronjob.
- I have an error 403 result. I can not access the file despite giving permission: 644, 711, 755 to the file PHP
- I can not afford to give the 777 permission to the file PHP. It's too dangerous.
- I called my provider and asked the software producer.
- The only way to configure the cron is by php access.
- I can not get the usual cronjob codes.
- Thanks a lot for your help.
- Certainly there is a ".htaccess" file under the same folder where you cron file runs from. No need to setup 777 on the file. Just ensure you exclude your cron file in .htaccess file. Just search for it an you will fine the "allow, deny" entry in .htaccess file that can help you out.
- <Files CRONFILE.php>
- Order Allow,Deny
- Allow from all
- </Files>
- Or simply rename your .htaccess file for testing.
- That should to the trick. If nothing works, like almost everyone said, checking the logs is the ultimate way to investigate further.
- Just a thought..
- Warm regards
- L3Web Hosting - Web hosting services at your fingertips
- L3Tech Support - Support round the clock
- Certainly there is a ".htaccess" file under the same folder where you cron file runs from. No need to setup 777 on the file. Just ensure you exclude your cron file in .htaccess file. Just search for it an you will fine the "allow, deny" entry in .htaccess file that can help you out.
- <Files CRONFILE.php>
- Order Allow,Deny
- Allow from all
- </Files>
- Or simply rename your .htaccess file for testing.
- That should to the trick. If nothing works, like almost everyone said, checking the logs is the ultimate way to investigate further.
- Just a thought..
- Thanks a lot for your help. It's really great. I will test your solutions as soon as possible.
- This is the best answer I have had for the moment.
- thank you so much.
- To understand well.
- I have to write how the code, there must be no space?
- I have to write before or after the code, it's good sintax?:
- <IfModule authz_core_module>
- Require all denied
- </IfModule>
- <IfModule !authz_core_module>
- Deny from all
- </IfModule>
- <Files CRONFILE.php>
- Order Allow,Deny
- Allow from all
- </Files>
- I was also sent another code tonight. What do you think about?
- # BEGIN Allow CRON
- <Files "wp-cron.php">
- Allow from All
- Satisfy Any
- </Files>
- # END Allow CRON
- thank you so much
- Thanks a lot for your help. It's really great. I will test your solutions as soon as possible.
- This is the best answer I have had for the moment.
- thank you so much.
- To understand well.
- I have to write how the code, there must be no space?
- I have to write before or after the code, it's good sintax?:
- <IfModule authz_core_module>
- Require all denied
- </IfModule>
- <IfModule !authz_core_module>
- Deny from all
- </IfModule>
- <Files CRONFILE.php>
- Order Allow,Deny
- Allow from all
- </Files>
- I was also sent another code tonight. What do you think about?
- # BEGIN Allow CRON
- <Files "wp-cron.php">
- Allow from All
- Satisfy Any
- </Files>
- # END Allow CRON
- thank you so much
- Yes, all good but just remember to add the CRONFILE.php code above all other codes.
- That should help.
- Warm regards
- L3Web Hosting - Web hosting services at your fingertips
- L3Tech Support - Support round the clock
- Reply With Quote Reply With Quote 0 Not allowed!
- Quick Navigation Web Hosting Top
- ? Previous Thread | Next Thread ?
- Similar Threads
- Error 403 on some virtual hosts and not on others
- By talismanp4 in forum Hosting Security and Technology
- cba hosting forum
- hitmart.com
- secure.buxinside.com
- 4 domains of learning
- gta v make money
- m&b warband make money
- aiopsplashbuilder.com
- hosting kit
- free hosting and domain
- pokemon x make money
- genxwhosting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement