andypeat Posted July 22, 2004 Share Posted July 22, 2004 I am trying to install easymoblog to try and am having trouble with some of the questions they need for setting up. Where can I find: mySQL host name (or IP address)? I keep getting the error Error connecting to mySQL server (check mySQL connection parameters) Error selecting database (check database name) Has anyone else tried this? thanks. Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 22, 2004 Share Posted July 22, 2004 the host will be localhost did you create the database AND add your user to the database? the database name will be something like cpanelname_dbname - and your username will be cpanelname_whateveryouchose =) with password being just the password you chose. sometimes people forget and leave off the cpanelname_ and that causes problems. Let me know if that helps =) Quote Link to comment Share on other sites More sharing options...
andypeat Posted July 23, 2004 Author Share Posted July 23, 2004 That worked great. but now I have another problem. I need to add a cron: /public_html/easymoblog/batch/easymoblog_batch.php to run every 5 mins (til it works, and then 30 mins once it is working) but I keep getting: error /bin/sh: /public_html/easymoblog/batch/easymoblog_batch.php: No such file or directory what am I doing wrong? thanks. Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 try /home/username/public_html/easymoblog/batch/easymoblog_batch.php let me know how that works. =) Quote Link to comment Share on other sites More sharing options...
andypeat Posted July 23, 2004 Author Share Posted July 23, 2004 I'm afraid I'm now getting: /home/busybea/public_html/easymoblog/batch/easymoblog_batch.php: ?php: No such file or directory /home/busybea/public_html/easymoblog/batch/easymoblog_batch.php: line 2: syntax error near unexpected token `@ignore_user_abort(true)' /home/busybea/public_html/easymoblog/batch/easymoblog_batch.php: line 2: ` @ignore_user_abort(true);' When I type the url for the php file something seems to work and the blog is updated. Do you think its some other setting I've gor wrong? thanks. Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 No, it's just not finding it there. Do you mind posting the url, or can you pm me with it? I'll have a look. =) Quote Link to comment Share on other sites More sharing options...
andypeat Posted July 23, 2004 Author Share Posted July 23, 2004 sorry, I only have an msn account I'll see if I can get one of yours. Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 You can pm me through this board, not a worry. Just click on PM under my post. =) Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 andy, What is the exact command that you're placing into cron? Are these errors the emailed results or something else? Thanks =) Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 andy and I have been in PM's, the path and command look right to me so I am at a loss. If anyone else has any ideas please post since this is still unresolved. =/ The problelm is that even with the full path it's not finding the file, it's definitely there and directories/cases etc. match. =) Quote Link to comment Share on other sites More sharing options...
andypeat Posted July 23, 2004 Author Share Posted July 23, 2004 Okay, so I've got a bit further now, the cron should have been: php /home/username/public_html/easymoblog/batch/easymoblog_batch.php but now I get this error --- error --- Content-type: text/html X-Powered-By: PHP/4.3.8 <br /> <b>Warning</b>: main(/home/busybea/public_html/easymoblog/include/param.inc.php): failed to open stream: Permission denied in <b>/home/busybea/public_html/easymoblog/include/config.inc.php</b> on line <b>3</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required '/home/busybea/public_html/easymoblog/include/param.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/busybea/public_html/easymoblog/include/config.inc.php</b> on line <b>3</b><br /> --- any ideas? anyone? thanks. Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 23, 2004 Share Posted July 23, 2004 andy, in your error log (through cpanel) are there any errors there? It may be a permissions problem, and you might want to make sure your php scripts are set to 755 (unless the scripts documentation actually specify something else). Just something to try. Quote Link to comment Share on other sites More sharing options...
andypeat Posted July 23, 2004 Author Share Posted July 23, 2004 okay, what do I say. Me and permissions just don't work. So the string should have been php /home/username/public_html/easymoblog/batch/easymoblog_batch.php but then I should have made sure the permissions were right. TCH staff... what can I say? A BIG thank you Andy Quote Link to comment Share on other sites More sharing options...
LisaJill Posted July 24, 2004 Share Posted July 24, 2004 Happy you got it working finally. =) Quote Link to comment Share on other sites More sharing options...
kellybellydotnet Posted July 29, 2004 Share Posted July 29, 2004 I am also getting this error on the cron job: <br /><b>Warning</b>: main(/home/busybea/public_html/easymoblog/include/param.inc.php): failed to open stream: Permission denied in <b>/home/busybea/public_html/easymoblog/include/config.inc.php</b> on line <b>3</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required '/home/busybea/public_html/easymoblog/include/param.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/busybea/public_html/easymoblog/include/config.inc.php</b> on line <b>3</b><br /> I understand that it is a permissions issue, but I cannot chmod the param.inc.php file. I keep getting "Permission Denied." It's currently set at 600. Any idea what I can do? Open a ticket and have the permissions changed? Quote Link to comment Share on other sites More sharing options...
TCH-Rick Posted July 30, 2004 Share Posted July 30, 2004 There may be a problem with the MySQL database set up. IM me and I can take a look. Quote Link to comment Share on other sites More sharing options...
kellybellydotnet Posted July 30, 2004 Share Posted July 30, 2004 There may be a problem with the MySQL database set up. IM me and I can take a look. I don't understand how it might be a database issue. The script I'm trying to run works if I call it directly in a browser window, and it also works when I activate it to be called when a visitor views my site. It just won't run via a cron job, giving me permission errors. I would IM you but I'm currently at work and am not allowed. Quote Link to comment Share on other sites More sharing options...
TCH-Rick Posted July 30, 2004 Share Posted July 30, 2004 No problem. Send me a PM with the account log in and domain and I can have a look and change the permissions if needed. The file you mentioned was created by the script so it is not under your ownership. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.