![]() |
|
Using Custom Vhost Entries for Webmail, MySQL, Etc. - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: Community Guides & How-To's v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=33) +---- Thread: Using Custom Vhost Entries for Webmail, MySQL, Etc. (/showthread.php?tid=495) |
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - HogensHero - 03-27-2015 I am also having trouble setting this up using Ubuntu 12.04. I followed the directions at the first post and I am getting a error 500 page and once I set up the override none of my subdomains worked. RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 03-28-2015 (03-17-2015, 07:39 PM)Me.B Wrote: as it lacks too suhosing support. 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>RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Me.B - 03-28-2015 yep better but we still can improve more... RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 03-28-2015 i have to disable the Code: php_admin_value open_basedir "/etc/sentora/panel/etc/apps/phpmyadmin/:/var/sentora/temp/"Code: php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/"And change the: Code: Order Allow,Deny
Allow from allto: Code: Require all grantedTo get it working in CentOs7 RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - akong - 04-01-2015 Hello, I use centos 6.6.But I got 500 error.I have set custom apache config. I want use webmail.minsubnb.com.tw Quote:</VirtualHost> Could I setup error? RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - akong - 04-01-2015 I have restart apache and I can see roundcube webmail. But I got error message on web. Quote:CONFIGURATION ERRORAnd I found error log. Quote:[Tue Mar 31 23:30:05 2015] [error] [client 219.85.218.78] PHP Warning: realpath(): open_basedir restriction in effect. File(/etc/sentora/configs/roundcube/roundcube_config.inc.php) is not within the allowed path(s): (/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/) in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube_config.php on line 250, referer: http://webmail.minsubnb.com.tw/ How to fix it? RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 04-01-2015 I think you have to remove this line and restart httpd. Code: php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/"And also make sure you replace the [at] with @, the the forum replaces this automaticly so i don't know if you did this already.
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - akong - 04-01-2015 (04-01-2015, 01:40 AM)Ron-e Wrote: I think you have to remove this line and restart httpd. Thanks a lot.It's can use it. Could add this function to default sentora settings?I think most users like use webmail.domain.tld this format. Thanks a lot. RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - marcilioqsj - 07-11-2015 Hi guys, i'm so confused with that messages. I'm a beginner using Linux and I just could not apply what you guys said here. Can you make a step-by-step tutorial for Linux? Appreciate RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - sknd - 07-17-2015 Getting in Internal Server Error.Pls help |