RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
03-28-2015, 02:57 AM
(This post was last modified: 04-01-2015, 04:19 AM by Ron-e.
Edit Reason: Edited custom Vhost script or it will break installs from whom don't read further!
)
(03-17-2015, 07:39 PM)Me.B Wrote: as it lacks too suhosing support.
you need to add:
M BCode:php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
Like this, so it is secure?
Code:
</VirtualHost>
# Configuration for phpMyAdmin
<VirtualHost *:80>
ServerAdmin mail[at]domain.com
DocumentRoot "/etc/sentora/panel/etc/apps/phpmyadmin/"
open_basedir "/etc/sentora/panel/etc/apps/phpmyadmin/:/var/sentora/temp/" ## This is commented out because this will break your install!
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ServerName sql.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAdmin mail[at]domain.com
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/" ## This is commented out because this will break your install!
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ServerName webmail.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
●
● My Sentora Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.
● My Sentora Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.