myvesta cp SitePad Website Builder error 500

Post Reply
tarhelyozd
Posts: 5
Joined: Thu Aug 13, 2020 7:55 pm

Greeting,
The next problem, when installing SitePad Website Builder under a domain in a user account, we experience the following problem. we tried all php versions and proxy config.
The error is the following error 500

error log:
AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

php 7.3 public
php 7.4 public
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at email address to inform them of the time this error occurred, and the actions you performed just before this 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.

error log:
AH01071: Got error 'PHP message: PHP Warning: include_once (): open_basedir restriction in effect. The file (/home/user/sitepad-editor/site-inc/bootstrap.php) is not within the allowed path (s): (/ home / user / web / domain / public_html: / home / user / tmp: / bin / usr / bin: / usr / local / bin: / var / www / html: / tmp:
php 5.6
php 7.0
php 7.1
php 7.2
php 7.4
Could not include the bootstrap.php. One of the reasons could be open_basedir restriction!
opp system
Debian 10.5
vesta Version: 0.9.8 (amd64)
vesta-php Version: 0.9.8 (amd64)
vesta-nginx Version: 0.9.8 (amd64)
vesta-softaculous app installer Version: 0.9.8 (amd64)
Thanks for the help in advance too.
Sorry bad english, google translate
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

tarhelyozd wrote: Thu Aug 13, 2020 8:11 pm Greeting,
The next problem, when installing SitePad Website Builder under a domain in a user account, we experience the following problem. we tried all php versions and proxy config.
The error is the following error 500

error log:
AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
This is clearly error in .htaccess file.
Your .htaccess makes redirection-loop.
tarhelyozd wrote: Thu Aug 13, 2020 8:11 pm AH01071: Got error 'PHP message: PHP Warning: include_once (): open_basedir restriction in effect. The file (/home/user/sitepad-editor/site-inc/bootstrap.php) is not within the allowed path
Somewhere in config file youh have /home/user/sitepad-editor/, which is wrong path.
Correct path should be /home/user/web/your-domain.com/public_html/
tarhelyozd
Posts: 5
Joined: Thu Aug 13, 2020 7:55 pm

Thank you for your answer,
unfortunately i can't solve it
maybe you could give more help because unfortunately I can't solve it.
sorry and thank you.

.htaccess

# BEGIN Sitepad
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END Sitepad

/home/user/sitepad-editor/index.php

$sitepad['db_name'] = '******';
$sitepad['db_user'] = ******';
$sitepad['db_pass'] = '******';
$sitepad['db_host'] = 'localhost';
$sitepad['db_table_prefix'] = '******';
$sitepad['charset'] = 'utf8mb4';
$sitepad['collate'] = 'utf8mb4_unicode_ci';
$sitepad['serving_url'] = 'domain.com';// URL without protocol but with directory as well
$sitepad['url'] = 'https://domain.com';
$sitepad['relativeurl'] = '';
$sitepad['.sitepad'] = '/home/user';
$sitepad['sitepad_plugin_path'] = '/var/softaculous/sitepad';
$sitepad['editor_path'] = '/home/user/sitepad-editor';
$sitepad['path'] = dirname(__FILE__);
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Why you put site in folder /home/user/sitepad-editor/ ?
I think it should be in /home/user/web/your-domain.com/public_html/

Another thing, edit /etc/php/7.3/fpm/pool.d/yoursite.com.conf
Find line with open_basedir
add :/var/softaculous/sitepad at the end of that line.

Then restart php-fpm:

Code: Select all

service php7.3-fpm restart
tarhelyozd
Posts: 5
Joined: Thu Aug 13, 2020 7:55 pm

Welcome,
"Why do you put a site in the folder / home / user / sitepad-editor /?"
I don't put it here, the installation is done here, could it be a bug?
In Softaculous Settings I did not find any option to specify the installation path. (I searched)
I made the recommended settings, the result did not change.
the error still exists.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Well, I can't help you here, I don't know why it is installed there.
tarhelyozd
Posts: 5
Joined: Thu Aug 13, 2020 7:55 pm

No problem,
Thank you for your patience and help.
Regards,
Post Reply