UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server and VPS Forum > Technical Support > cPanel Shared Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 28-11-2008, 21:14
Ninjabear's Avatar
Member
 
Join Date: Aug 2008
Location: Newcastle, United Kingdom.
Posts: 34
Send a message via MSN to Ninjabear Send a message via Skype™ to Ninjabear
Default Cron jobs - Permission denied or no such directory.

I've tried searching for the answer to this on the forums but couldn't so here goes. I've tried adding a Cron job to Cpanel (standard mode) and added this as my path:

/home/nibinear/public_html/mmf/cron.php

There are no htaccess files in here so it should be accessible. I also double checked the file manager for the dir and it popped up fine. When doing this test I received permission denied.

Secondly I tried http://www.managemyflats.co.uk/cron.php instead just to see if I could get a direct link to work (also tried no http://). Except here I got "no such file or directory".

Please could you tell me what I am doing wrong?

Ps. I added this to the very top of my php file, perhaps it's wrong:
#!/usr/local/lib/php -q
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 29-11-2008, 15:17
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,235
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hi Daniel,

I have added same cron from my side and it has worked. I'm not sure what went wrong when you were trying to add it, but it has worked now.

Please check from cpanel control panel to see how the cron has been set. I've set the cron to run at 1:01 AM daily.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-11-2008, 15:55
Ninjabear's Avatar
Member
 
Join Date: Aug 2008
Location: Newcastle, United Kingdom.
Posts: 34
Send a message via MSN to Ninjabear Send a message via Skype™ to Ninjabear
Default

Quote:
Originally Posted by eUKhost.com View Post
Hi Daniel,

I have added same cron from my side and it has worked. I'm not sure what went wrong when you were trying to add it, but it has worked now.

Please check from cpanel control panel to see how the cron has been set. I've set the cron to run at 1:01 AM daily.
Yes that works. I was putting this in my php:

#!/usr/local/lib/php -q which you put as
/usr/local/bin/php -q before the actual directory in cron form.

I don't know whether it has to be done this way but thanks anyway for getting it sorted out, will do some testing and post any further queries but that should be it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 29-11-2008, 20:54
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,235
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by Ninjabear View Post
Yes that works. I was putting this in my php:

#!/usr/local/lib/php -q which you put as
/usr/local/bin/php -q before the actual directory in cron form.

I don't know whether it has to be done this way but thanks anyway for getting it sorted out, will do some testing and post any further queries but that should be it.
Hi Daniel,

I didn't notice /lib/ in your original post.

I hope everything is perfect now.

You can use php -q /home/....... as well instead of full path to php binary.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 29-11-2008, 22:01
Ninjabear's Avatar
Member
 
Join Date: Aug 2008
Location: Newcastle, United Kingdom.
Posts: 34
Send a message via MSN to Ninjabear Send a message via Skype™ to Ninjabear
Default

Quote:
Originally Posted by eUKhost.com View Post
Hi Daniel,

I didn't notice /lib/ in your original post.

I hope everything is perfect now.

You can use php -q /home/....... as well instead of full path to php binary.
Cheers. Yes it is all working, I have cron jobs sorted out now. I'm going through the video tuts in Cpanel so that I won't have to keep bothering you!

Ps. This might be a stupid question but is there an easy way of learning where all these directories are? Most Linux servers seem to be set up in a similar way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 29-11-2008, 23:27
eUK-Ralf's Avatar
Linux Support Team(eUKhost.com)
 
Join Date: Apr 2008
Posts: 48
Cool

Hello Daniel,

You don't have permission to access the server side directories. As you are on shared server. Default path of php is /usr/bin/php Or /usr/local/bin/php on the server. If you want to access such directories, you need to upgrade your package to VPS or Semi-Dedicated one. Where you will get root access to the server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 30-11-2008, 20:06
Ninjabear's Avatar
Member
 
Join Date: Aug 2008
Location: Newcastle, United Kingdom.
Posts: 34
Send a message via MSN to Ninjabear Send a message via Skype™ to Ninjabear
Default

Quote:
Originally Posted by eUK-Ralf View Post
Hello Daniel,

You don't have permission to access the server side directories. As you are on shared server. Default path of php is /usr/bin/php Or /usr/local/bin/php on the server. If you want to access such directories, you need to upgrade your package to VPS or Semi-Dedicated one. Where you will get root access to the server.
You misunderstand me. I don't want to access such directories and just want to know where they are for tasks like this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 30-11-2008, 20:36
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,235
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by Ninjabear View Post
You misunderstand me. I don't want to access such directories and just want to know where they are for tasks like this.
Hi Daniel,

You will need to understand Architecture of Linux to learn more about Libraries and Binaries.

I'll try to include all that I know about Linux Architecture.

/etc is mainly used to store all configuration files. ( Ex. grub.conf, named.conf, exim.conf, shadow, groups, userdomains, localdomains, network configuration files and all other configuration files )
/usr/local/bin or /usr/bin mainly stores binaries which can be executed by root user as well as end-users.
/var/lib/ stores Libraries which are mainly used by system RPM's and packages only. end-users are not allowed to directly access this Libraries. This directly also contains /mysql/ which stores all databases. Databases run under ownership of mysql user only. end-users cannot access the databases directly.
/usr/local/apache/ is required by the Apache web server.
/usr/share/ssl/ is used to store private keys which are matched with the public keys. public key is on user end which comes through the browser and data is displayed on end-users computer or data is stored on the server only once both keys match.
/home/ is the home directory of users where user accounts are created and your web data as well as emails are stored in this directory.
/tmp/ stores sessions and temporary files.

There's so much which can be added to the list, but you need to understand what I have mentioned so far to proceed to the next step.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 30-11-2008, 20:53
Ninjabear's Avatar
Member
 
Join Date: Aug 2008
Location: Newcastle, United Kingdom.
Posts: 34
Send a message via MSN to Ninjabear Send a message via Skype™ to Ninjabear
Default

Quote:
Originally Posted by eUKhost.com View Post
Hi Daniel,
There's so much which can be added to the list, but you need to understand what I have mentioned so far to proceed to the next step.
That's a very generous reference, thanks a lot.

Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-12-2008, 11:37
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,235
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by Ninjabear View Post
That's a very generous reference, thanks a lot.

Dan
You are welcome

Let me know if you want me to add more info to what I have posted so far. There's so much in Linux which you can't post at a time.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 16:36.

 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service