• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

HowTo install SiteBuilder on linux WHM/Cpanel machine

M

mattp

Guest
I have just completed an installation of SiteBuilder on a CPanel machine, and kept a log of what I had to do so hopefully I'll be able to help out some others who are attempting the same thing...

My server contained the following -
  • CentOS 3.5 i686
  • WHM 10.6.0
  • cPanel 10.6.0-R55
  • Apache 1.3.33
  • PHP 4.3.11
  • MySQL 4.0.25
Here is what I did -
  1. Install all the necessary PHP extensions -
    - Open WHM (logged in as root), and go to Apache Update.
    - Click the "Load Previous Config" button (If it exists)
    - Under "Php Module", also tick these -
    * Curl
    * Dom XSLT
    * GD
    * Iconv
    * Sablot XSLT
    * XML RPC
    * Freetype Support
    * Zip
    - Click "Start Build"
  2. Install SiteBuilder -
    - SSH to the server and login as root
    - Execute the following
    Code:
    wget http://download1.sw-soft.com/SiteBuilder/2.0/Sitebuilder-2.0.0-rhel3.build050606.17.tgz
    tar –xzvf Sitebuilder-2.0.0-rhel3.build050606.17.tgz
    cd Sitebuilder
    rpm -Uhv js-1.5rc5a-1.i386.rpm
    rpm -Uhv sablotron-1.0.1-2.i386.rpm
    rpm -Uhv php-xslt-1.0-0.i386.rpm
    rpm -Uhv Sitebuilder-2.0.0-rhel3.build050606.17.i386.rpm
    The final command above will fail because it thinks that php & php-mysql are not installed, manually ensure that both are installed. Also if there are any other dependancies other than these two, install them. Then run -
    Code:
    rpm -Uhv Sitebuilder-2.0.0-rhel3.build050606.17.i386.rpm --nodeps
  3. Configure your DNS
    - Open WHM and go to "Edit a DNS Zone"
    - Select your_domain.com and click edit
    - enter a new entry DOMAIN=sitebuilder, RECORD_TYPE=CNAME, VALUE=your_domain.com
  4. Check that it works
    - Open a browser and go to http://sitebuilder.your_domain.com
  5. If you get the CPanel message "There is no website configured at this address."
    - SSH to the server and login as root
    - add this to the end of /usr/local/apache/conf/httpd.conf -
    Code:
    <VirtualHost ip.ip.ip.ip>
    ServerAlias sitebuilder.your_domain.com
    ServerAlias *.sitebuilder.your_domain.com
    ServerAdmin webmaster@your_domain.com
    DocumentRoot /usr/local/sitebuilder/htdocs
    Servername sitebuilder.your_domain.com
    </VirtualHost>
  6. If you get an error complaining about IonCube, do this, otherwise, go on to the next step
    - SSH to the server and login as root
    - Execute the following
    Code:
    wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    tar -xzvf ioncube_loaders_lin_x86.tar.gz
    mkdir /usr/local/ioncube
    cp ioncube/* /usr/local/ioncube
    vi /usr/local/lib/php.ini
    add this line to php.ini -
    Code:
    zend_extension="/usr/local/ioncube/ioncube_loader_lin_4.3.so"
    Then modify this line in php.ini
    Code:
    upload_max_filesize = 4M

  7. Configure SiteBuilder
    - Open a browser and go to http://sitebuilder.your_domain.com
    - Fill in the "DB Administrator Password" field
    - Click OK
  8. If you get "FAIL: I can not open a file install.log", do this, otherwise go on to the next step
    - SSH to the server and login as root
    - Execute the following to make the owner for the sitebuilder directory the apache user (in CPanel it's "nobody")
    Code:
    cd /usr/local/
    chown -R nobody sitebuilder
    chgrp -R nobody sitebuilder
    - Go back in your browser
    - Fill in the "DB Administrator Password" field **** Don't forget this because it gets cleared!!!
    - Click OK
  9. You're done:D, now continue on to the "Getting Started" section of sitebuilder-ig.pdf
    [/list=1]
 
Oh, and I got an error in "licensekey.php" when I first logged in, so I had to copy the attached version of "licensekey.php" into /usr/local/sitebuilder/include/kernel/

Hotfix
 
dang still can't get it to load it's just an error page can not be found.
 
Do you mean that you are getting an error when you go to http://sitebuilder.your_domain.com?

What is the error?

What do you get when you ping sitebuilder.your_domain.com? Is this address definitely resolving to your server's IP address?
 
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@ and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

I get this error and not sure why where can i see these logs at?
 
Okay I was Getting the above message with PHP suEXEC Support. Now I get a new error...

Fatal error: file config.php was not found. Please, reinstall SiteBuilder.

I also did reinstall it not sure what I am missing?
 
OK, here is what I did to upgrade from 2.0.0 to 2.1.3. Perhaps one of the steps is needed.

Updating from 2.0.0 to 2.1.3
  1. Install SiteBuilder -
    - SSH to the server and login as root
    - Execute the following
    Code:
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/Sitebuilder-2.1.3-centos36.build060322.17.tgz
    tar –xzvf Sitebuilder-2.1.3-centos36.build060322.17.tgz
    cd Sitebuilder
    rpm -Uhv php-ioncube-loader-1.0-rhel3.build060322.17.i386.rpm --nodeps
    rpm -Uhv sitebuilder-core-1.0-rhel3.build060322.17.i386.rpm --nodeps
    rpm -Uhv Sitebuilder-2.1.3-rhel3.build060322.17.i386.rpm --nodeps
  2. Change ownership to the user that cPanel uses to run apache (nobody)
    Code:
    chown -R nobody:nobody /usr/local/sitebuilder
  3. Add the sitebuilder extension to php
    Code:
    vi /usr/local/lib/php.ini
    add this line to php.ini -
    Code:
    extension=/usr/lib/php4/sitebuilder.so
  4. Restart Apache -
    Code:
    /usr/sbin/httpd restart
  5. Configure SiteBuilder
    - Open a browser and go to http://sitebuilder.your_domain.com
    - Fill in the "DB Administrator Password" field
    - Click OK
  6. Update the modules
    Code:
    mkdir sbmodules
    cd sbmodules
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-blogger-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-counter-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-feedback-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-forum-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-guestbook-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-photo-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-rssreader-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-script-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-sesubmission-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-shop-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-statistics-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/modules/centos36/sitebuilder_module-votes-2.1.3-rhel3.build060322.17.noarch.rpm
    wget http://download1.swsoft.com/SiteBuilder/2.1.3/remote_admin/sitebuilder_remote-admin-2.1.3-rhel3.build060322.17.i386.rpm
    rpm -Uhv *
    chown -R nobody:nobody /usr/local/sitebuilder
 
The error is

Fatal error: file config.php was not found. Please, reinstall SiteBuilder.
 
Originally posted by scapeweb
Fatal error: file config.php was not found. Please, reinstall SiteBuilder.

OK, go to /usr/local/sitebuilder/include. Is config.php in there?

On the above directory, run ls -al. Is the user & group nobody:nobody? What are the permissions? Mine are -rw-------.

Open /usr/local/apache/conf/httpd.conf. Check the user/group that is being used. Mine has the following two lines -
User nobody
Group nobody
 
-rw-r--r-- 1 nobody nobody 0 Mar 29 17:27 config.php
User nobody
Group nobody


Yea.. all thats there.. Thanks for continuing to help me with this.
 
Originally posted by scapeweb
Yea.. all thats there.. Thanks for continuing to help me with this.

No worries, but I think I'm stumped now. The file is there and it's permissions are right, so I'm not sure what could be wrong. Perhaps it is something to do with suEXEC. Send a support email and see if they have any ideas...
 
Hi Mattp Are you still around on these forums. I really need to pick your brains.

Regards.
 
i need help to install Sitebuilder on linux WHM/Cpanel machine

As title, i need help to install Sitebuilder on Linux...
is anyone can help me~~~
Thank you!:(
 
please help me to install sitebuilder on linux WHM/Cpenl machine

i saw your report on internet, but it's report last year! i need to
install the latest version of Sitebuilder~
as i know, the sitebuilder on swsoft website have many core.
i dont' know how to install Sitebuilder~
i enter the root of WHM, and i copy the "code" to SSH, and it can't work~ it can't be execute! it always appear the "error", i think the filename is change, and i can't rpm the file, cause i don't know the filename name~ please help me!
from taiwan~ peggy
Thank you!
 
When you see a file name, just change it to be the most recent version. Use my post above on upgrading from 2.0.0 to 2.1.3 as a guide.. 2.1.3 is still the most recent version.
 
Its OK, Thanks anyway. I have now fixed the problem, it was to do with an .htaccess file not being configured thus, sitebuilder was not getting installed. Thanks anyway.

kye.
 
Hello I downloaded
SiteBuilder 2.1.3 build 060322.17 for CentOS 4.2

Then had these files
Sitebuilder-2.1.3-rhel4.build060322.17.i386.rpm
php-ioncube-loader-1.0-rhel4.build060322.17.i386.rpm
sb_install*
sitebuilder-core-1.0-rhel4.build060322.17.i386.rpm

Go this error when I run it

rpm -Uhv Sitebuilder-2.1.3-rhel4.build060322.17.i386.rpm
error: Failed dependencies:
php >= 4.3 is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
php-domxml is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
php-gd is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
php-ioncube-loader is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
php-mysql is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
sitebuilder-core is needed by Sitebuilder-2.1.3-rhel4.build060322.17.i386
 
Originally posted by jacven

...
Go this error when I run it
...
error: Failed dependencies:
...

To check if you actually do have these things installed -

1. create a new file called phpinfo.php, and put the following code in it -

Code:
<? phpinfo(); ?>

2. Upload it to the root of your website

3. Open a browser and go to http://yourwebsite.com/phpinfo.php

You should then ensure that all of those failed dependencies exist. If they don't, install them using WHM as per my instructions above. If they do, run the rpm command with the nodeps argument as per my instructions above.

Matt
 
Back
Top