Jump to content

Installing Moblog


andypeat

Recommended Posts

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

Link to comment
Share on other sites

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 =)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. =)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...