Need help installing siteZen on new server

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
I have an owned siteZen license and downloaded the final version before they shut down.

I am now trying to install siteZen on a new server and running into some errors I am not sure how to get past. This has worked properly on two other servers. The only difference I can find is that this server is running php 5.10.1, whereas the others run 5.8.8 - I'm not sure if that is the cause of the issue.

When I execute ./install_master, I get through some of the pre-checks and then get the following errors -

Code:
checking for required unix commands...
ps is /bin/ps
install is /usr/bin/install
uname is /bin/uname
ldd is /usr/bin/ldd
sed is /bin/sed
grep is hashed (/bin/grep)
awk is /bin/awk
/bin/hostname is /bin/hostname

Getting system information, if any of these tests fails it is likely
this script and the product will not run correctly.  We recommend
fixing all problems reported here before running the product.

checking the operating system and architecture... found Linux using architecture x86_64, distribution is redhat on host xxx.yyy.com
querying the apache server /usr/local/apache/bin/httpd for information...
checking if server supports suexec ...
not enabled
found apache configuration file /usr/local/apache/conf/httpd.conf
checking if /usr/local/apache/conf/httpd.conf is available... ok
check for MySQL Server... ok
logging variables
logged variables

Can't load '/usr/local/sitezen/install/sitezen-2.61.34/mysql.so' for module DBD::mysql: libz.so.1: cannot open shared object file: No such file or directory at PERL2EXE_STORAGE/DynaLoader.pm line 230.
 at PERL2EXE_STORAGE/utl_setup.pm line 16
Compilation failed in require at PERL2EXE_STORAGE/utl_setup.pm line 16.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/utl_setup.pm line 16.
Compilation failed in require at /usr/local/sitezen/install/sitezen-2.61.34/zenconfig line 32.
BEGIN failed--compilation aborted at /usr/local/sitezen/install/sitezen-2.61.34/zenconfig line 32.

Install is NOT COMPLETE; siteZen is NOT ready for operation.
You must run install completely and successfully before
operating siteZen.
Can anybody offer any help? Thanks!
 

sneader

Well-Known Member
Aug 21, 2003
1,191
60
178
La Crosse, WI
cPanel Access Level
Root Administrator
Sadly, I have the same problem. Since SiteZen is Perl based, I doubt the difference in PHP versions is the cause. Let me know if you figure out the issue, and I will do the same.

- Scott
 

magixman

Member
Sep 28, 2002
16
0
151
We got this working on Scott's server by copying cPanel's 32 bit libz.so.1 into /usr/lib

So first confirm that libz.so.1 is indeed missing with ....

ldd /usr/local/sitezen/install/sitezen-2.61.34/mysql.so

it should report something like


linux-gate.so.1 => (0x00c56000)
libz.so.1 => not found
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d42000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00843000)
libm.so.6 => /lib/libm.so.6 (0x003bf000)
libc.so.6 => /lib/libc.so.6 (0x0057d000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x00462000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x00863000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00da1000)
libfreebl3.so => /usr/lib/libfreebl3.so (0x009bc000)
/lib/ld-linux.so.2 (0x00442000)
libdl.so.2 => /lib/libdl.so.2 (0x0021b000)

And ls /usr/lib/libz.so.1 (which should report that it is not found)

Then you can copy /usr/local/cpanel/lib/libz.so.1 -> /usr/lib

I am sure that the proper way would be to install the 32 bit version of libz but this seems to work unless we hear further from Scott.
 

sneader

Well-Known Member
Aug 21, 2003
1,191
60
178
La Crosse, WI
cPanel Access Level
Root Administrator
Thanks a million, Sam... indeed, it all seems to be working fine. I noticed everything else in /usr/lib had 755 permissions, so I also did this:

chmod 755 /usr/lib/libz.so.1

So far, so good!

- Scott
 
Last edited:

sneader

Well-Known Member
Aug 21, 2003
1,191
60
178
La Crosse, WI
cPanel Access Level
Root Administrator
Mike, one other problem I ran into was some errors being thrown up when someone submitted a form. Turns out that the script uses a deprecated function (ereg). Here is a sample of the error that users were getting after attempting to submit a form:

Code:
Deprecated: Function ereg_replace() is deprecated in /home/someuser/public_html/_mgxroot/zenfmail_1149740114_10779_14429.php on line 21

Deprecated: Function ereg_replace() is deprecated in /home/someuser/public_html/_mgxroot/zenfmail_1149740114_10779_14429.php on line 23

Deprecated: Function ereg_replace() is deprecated in /home/someuser/public_html/_mgxroot/zenfmail_1149740114_10779_14429.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home/someuser/public_html/_mgxroot/zenfmail_1149740114_10779_14429.php:21) in /home/someuser/public_html/_mgxroot/zenfmail_1149740114_10779_14429.php on line 37
The "easy" solution was to change php.ini on the server:

It was:
error_reporting = E_ALL & ~E_NOTICE

Changed it to:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

Your mileage may vary... but this solved the errors from appearing and the form works, and the user is properly directed to the "thank you" page. Of course this change affects all customers on the server (unless they are overriding with their own php.ini -- if you allow them to) but I think this is fairly standard to suppress these errors from displaying.

- Scott
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
Thanks a lot for that tip Scott. I'm not sure how much milage we will get out of that change, because I'm not sure if future php updates will result in different behavior than the simple deprecated error - but thanks - I'll definitely seek to suppress those errors.
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
Does anybody know how to resolve this issue - ?

When I go to a template and do "Create Site", I get the following error -

"Cannot connect to to template database - please contact your administrator" - this seems to suggest that one of the database passwords must not be correct, but I'm not sure which one.

Thanks.
 

sneader

Well-Known Member
Aug 21, 2003
1,191
60
178
La Crosse, WI
cPanel Access Level
Root Administrator
I have another small problem with installing siteZen on a new server. When a customer clicks on the link "Videos" at the top of the page, the list of videos do not appear. Looking at the code, it is trying to fetch "http://www.sitemagix.com/Video/genvideo.js " and it fails. Oddly, this problem does not occur on my older servers, so it must be a problem with the new installer? Any thoughts?

UPDATE: I went out on a limb and did what lbeachmike mentioned... I scheduled an update. It solved the video problem! Prior to doing the update, the version numbers for both the videos and the templates were missing. After the update, they are now filled in, and users can see the list of help videos. I won't pretend to understand how this worked, but it did!

- Scott
 
Last edited: