This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Using Custom Vhost Entries for Webmail, MySQL, Etc.
#22
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(03-17-2015, 07:39 PM)Me.B Wrote: as it lacks too suhosing support.
you need to add:



Code:
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"
M B

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/"
   
#php_admin_value
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/"
   
#php_admin_value
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 DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by: inkoop@topmatica.nl


Messages In This Thread
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - by Ron-e - 03-28-2015, 02:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
SSL and Custom Vhost Entries for Webmail etienne7702 5 15 ,830 03-08-2018, 09:54 PM
Last Post: etienne7702
How to overwrite default admin. vhost? NIicK 1 7 ,036 03-27-2016, 01:16 AM
Last Post: Me.B
Roundcube Webmail https path pthalmann 0 4 ,892 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 14 Guest(s)