• 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

hello... problem with Installation

A

avansit

Guest
Hello,

We have tried configuring sitebuilder and for some reason, php is not detected by sitebuilder config. We have tried reconfiguring sb_config but still same.

#######################

root@vps [~]# sb_config --sb_db_user_passwd sitebuilder
[FATAL] No suitable PHP found
There were some configuration errors, check logs
Logs saved to /usr/local/sitebuilder/tmp/sb_config-0808101734.log
root@vps [~]# cat /usr/local/sitebuilder/tmp/sb_config-0808101734.log
[2008 Aug 10 17:34:36] [FATAL] No suitable PHP found
Fatal error encountered at /usr/local/sitebuilder/utils/SB/Logging.pm line 121
SB::Logging::Log('SB::Logging=HASH(0x9d0352c)', 5, 'No suitable PHP found') called at /usr/local/sitebuilder/utils/SB/Utils.pm line 109
SB::Utils::checkParameters() called at configure line 303
main::main() called at configure line 377
root@vps [~]#

#######################

Php is already loaded with sitebuilder module. Details given below.

##########################
root@vps [~]# sb_config
Usage:
--phpcli_path PHP CLI executable [/usr/local/bin/php]
--phpcgi_path PHP CGI executable [/usr/bin/php]
--update_locales Update locales [no]
--update_templates Update templates [no]
--update_modules Update modules [no]
--update_skins Update skins [no]
--migrate_all Migrate all sites [no]
--help Show this help [no]
--verbose Be verbose [no]
--[no]use_rewrite Enable/disable mod_rewrite usage [yes]
--sb_admin_passwd Password for admin user [not changed by default]
--db_host MySQL database remote host [localhost]
--db_port MySQL database remote port [3306]
--db_admin_name MySQL administrator username [root]

root@vps [~]# /usr/local/bin/php -m |grep site
sitebuilder3
root@vps [~]# /usr/local/bin/php -v
PHP 5.2.6 (cli) (built: Aug 10 2008 10:08:10)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.

root@vps [~]# /usr/bin/php -v
PHP 5.2.6 (cgi) (built: Aug 10 2008 10:22:21)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.

root@vps [~]# /usr/bin/php -m |grep site
sitebuilder3
root@vps [~]#
##########################

help me please...

But still sb_config show as not suitable PHP found. We couldnt see any details in forum or kb. Can you please contact sitebuilder support with the above details and let us know if any settings need to be changed.
 
Hello,

We have tried configuring sitebuilder and for some reason, php is not detected by sitebuilder config. We have tried reconfiguring sb_config but still same.

#######################

root@vps [~]# sb_config --sb_db_user_passwd sitebuilder
[FATAL] No suitable PHP found
There were some configuration errors, check logs
Logs saved to /usr/local/sitebuilder/tmp/sb_config-0808101734.log
root@vps [~]# cat /usr/local/sitebuilder/tmp/sb_config-0808101734.log
[2008 Aug 10 17:34:36] [FATAL] No suitable PHP found
Fatal error encountered at /usr/local/sitebuilder/utils/SB/Logging.pm line 121
SB::Logging::Log('SB::Logging=HASH(0x9d0352c)', 5, 'No suitable PHP found') called at /usr/local/sitebuilder/utils/SB/Utils.pm line 109
SB::Utils::checkParameters() called at configure line 303
main::main() called at configure line 377
root@vps [~]#

#######################

The error means that Sitebuilder installation was not completed or was finished with --force and --nodeps rpm options.
I may assume that you have CentOS 4.x and mysql 5.x, while Sitebuilder for CentOS 4.x was built for mysql 4.x and requires it.

On CentOS 4.x you should downgrade mysql to version 4.x and install Sitebuilder packages in usual way.

Php is already loaded with sitebuilder module. Details given below.

##########################
root@vps [~]# sb_config
Usage:
--phpcli_path PHP CLI executable [/usr/local/bin/php]
--phpcgi_path PHP CGI executable [/usr/bin/php]
--update_locales Update locales [no]
--update_templates Update templates [no]
--update_modules Update modules [no]
--update_skins Update skins [no]
--migrate_all Migrate all sites [no]
--help Show this help [no]
--verbose Be verbose [no]
--[no]use_rewrite Enable/disable mod_rewrite usage [yes]
--sb_admin_passwd Password for admin user [not changed by default]
--db_host MySQL database remote host [localhost]
--db_port MySQL database remote port [3306]
--db_admin_name MySQL administrator username [root]

Plesk Sitebuilder is distributed with its own PHP binary and configuration located under directory /opt/php52, it cannot work with regular PHP.

~# sb_config --help | grep php
--phpcli_path PHP CLI executable [/opt/php52/bin/php5]
--phpcgi_path PHP CGI executable [/opt/php52/cgi-bin/php5]
~#

Most likely the configuration you provided was created manually using /usr/local/sitebuilder/config.
 
Try to check apache and Sitebuilder error log files for any errors (on RPM based system generally /var/log/httpd/error_log and /var/log/httpd/sitebuilder_error.log).
Also, try to re-create web server configuration for Sitebuilder host:

# sb_config --sb_hostname=sitebuilder.programapyme.com --force_update_ws

Hope it helps.
 
problem persit

The installation is complete but we still sitebuilder is still having issues while redirecting. This is caused due to the Redirection configuration in /usr/local/apache/conf/httpd.conf. The following is the VirtualHost entry for sitebuilder:

====================================================================================================
<VirtualHost 64.22.69.98:80>

DocumentRoot /usr/local/sitebuilder/htdocs
ServerName sitebuilder.programapyme.com
ErrorLog /etc/httpd/domlogs/sitebuilder_error.log
DirectoryIndex index.php index.html
AddDefaultCharset UTF-8

<IfModule mod_suphp.c>
suPHP_UserGroup programa nobody
</IfModule>

AddHandler application/x-httpd-php5 .php
ScriptAlias /bin /opt/php52/cgi-bin
SetEnv PHPRC /usr/local/sitebuilder/etc

Action application/x-httpd-php5 /bin/php5



<Files *.js.gz>
AddType "text/javascript" .gz
AddEncoding gzip .gz
</Files>

<Files *.css.gz>
AddType "text/css" .gz
AddEncoding gzip .gz
</Files>

<Directory /usr/local/sitebuilder/htdocs>
Options +ExecCGI +FollowSymLinks
Options -Indexes
AllowOverride All
Allow from all
</Directory>

<Directory /usr/local/sitebuilder/htdocs/ServiceFacade>
AddHandler application/x-httpd-php5 .asmx
</Directory>

<Directory /usr/local/sitebuilder/htdocs/sites/*/*/attachments>
Options -ExecCGI
RemoveHandler .php
AllowOverride None
</Directory>

<Directory /usr/local/sitebuilder/htdocs/sites/*/*/__preview/attachments>
Options -ExecCGI
RemoveHandler .php
AllowOverride None
</Directory>

<Directory /usr/local/sitebuilder/htdocs/sites/*/*/__edit/attachments>
Options -ExecCGI
RemoveHandler .php
AllowOverride None
</Directory>

<Directory /opt/php52/cgi-bin>
Options +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
AllowOverride None
</Directory>

<IfModule mod_rewrite.c>
<Directory /usr/local/sitebuilder/htdocs>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/server-status$ [OR]
RewriteCond %{REQUEST_URI} ^/server-info$ [OR]
RewriteCond %{REQUEST_URI} ^/whm-server-status$
RewriteRule (.*) - [L]
RewriteRule ^$ index.php [L]
RewriteRule ^sso_endpoint.php/ui$ index.php/SSO/UI [L]
RewriteRule ^sso_endpoint.php/SAML$ index.php/SSO/Proxy [L]
RewriteRule ^sso_endpoint.php/signout$ index.php/SSO/Proxy [L]
RewriteCond %{REQUEST_URI} ^/[a-z]+/.*$
RewriteCond %{REQUEST_URI} [^/]$
RewriteRule (.*) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 [QSA,L]
</Directory>
</IfModule>

</VirtualHost>
====================================================================================================

You regenerate the error by accessing the link http://sitebuilder.programapyme.com

Please help me
 
Did you check Sitebuilder and apache error log files? Did you modify Sitebuilder configuraton file manually? Where did you get following strings:

<IfModule mod_suphp.c>
suPHP_UserGroup programa nobody
</IfModule>

and why do you need them? By the way, which PHP is used for Sitebuilder?
 
error log files

==================
sitebuilder_error.log
==================

[Sun Aug 17 00:17:02 2008] [error] [client 217.79.34.242] File does not exist: /usr/local/sitebuilder/htdocs/applications
[Sun Aug 17 00:17:03 2008] [error] [client 217.79.34.242] File does not exist: /usr/local/sitebuilder/htdocs/asterisk
[Sun Aug 17 00:17:04 2008] [error] [client 217.79.34.242] File does not exist: /usr/local/sitebuilder/htdocs/admin
[Sun Aug 17 00:17:04 2008] [error] [client 217.79.34.242] File does not exist: /usr/local/sitebuilder/htdocs/freepbx
[Sun Aug 17 05:24:11 2008] [error] [client 69.30.193.226] File does not exist: /usr/local/sitebuilder/htdocs/user
 
Is rewrite module loaded into apache configuration? For example, on my server it loaded in httpd.conf file:
# grep rewrite -r /etc/httpd/conf/*
/etc/httpd/conf/httpd.conf:LoadModule rewrite_module modules/mod_rewrite.so

If everything is fine with module, I can suggest you to contact with Sitebuilder support team (http://www.parallels.com/en/support/sitebuilder/) to speed up resolution process of this case. It is hard to say what could be wrong and need to investigation on the server. But I'm pretty sure that there is something wrong with server configuration but not Sitebuilder itself.
 
Back
Top