Categories
General

Running Nucleus On Yahoo! Webhosting

This one is under the heading of upgrade blues. I usually don’t upgrade until there is something I need and in this case, I’m hoping to improve the screening of comment and trackback spam, so I decided to upgrade. Here is what I found out.

====

After a lot of trial and error I discovered that
in order to run Nucleus CMS on Yahoo! Webhosting, you must replace the
variable $MYSQL_HOST with something else like $MYSQL_HOST_LOCAL. On
Yahoo! Webhosting (and probably some others), the variable $MYSQL_HOST
is already set and cannot be overidden if you want a working
installation because the system value is different from the value that
users must use to connect to the MySQL database.

Once I replaced $MYSQL_HOST with $MYSQL_HOST_LOCAL in

config.php

$MYSQL_HOST_LOCAL = ‘mysql’; //The host must be mysql on Yahoo! Webhosting

and

nucleus/libs/globalfunctions.php

My newly upgraded Nucleus 3.2 installation started working. Before
I made the change I kept getting the ‘Sorry and error has occurred’
message. This message is generated by checkVars in globalfunctions.php.

The replacement may be needed in other places, such as plugin files, but I haven’t checked that out yet.

I also posted this on the Nucleus Support Forum

http://forum.nucleuscms.org/viewtopic.php?t=6938

This one is under the heading of upgrade blues. I usually don’t upgrade until there is something I need and in this case, I’m hoping to improve the screening of comment and trackback spam, so I decided to upgrade. Here is what I found out.

====

After a lot of trial and error I discovered that
in order to run Nucleus CMS on Yahoo! Webhosting, you must replace the
variable $MYSQL_HOST with something else like $MYSQL_HOST_LOCAL. On
Yahoo! Webhosting (and probably some others), the variable $MYSQL_HOST
is already set and cannot be overidden if you want a working
installation because the system value is different from the value that
users must use to connect to the MySQL database.

Once I replaced $MYSQL_HOST with $MYSQL_HOST_LOCAL in

config.php

$MYSQL_HOST_LOCAL = ‘mysql’; //The host must be mysql on Yahoo! Webhosting

and

nucleus/libs/globalfunctions.php

My newly upgraded Nucleus 3.2 installation started working. Before
I made the change I kept getting the ‘Sorry and error has occurred’
message. This message is generated by checkVars in globalfunctions.php.

The replacement may be needed in other places, such as plugin files, but I haven’t checked that out yet.

I also posted this on the Nucleus Support Forum

http://forum.nucleuscms.org/viewtopic.php?t=6938

2 replies on “Running Nucleus On Yahoo! Webhosting”

Don’t you just hate when that happens? When things don’t work because of some small programing detail that was easily overlooked and misplaced and the whole dam application wont work because of a “;”.

Exactly! I often explain to my wife, who, btw, really hates the way that developers think, that you have to pay attention to small details in code work because one slip and the thing won’t work. Worse, the thing will still work, but in some unpredictable fashion or just waiting to blow up in your face!

Comments are closed.