Posts: 47
Threads: 4
Joined: Mar 2015
Reputation:
0
Sex: Undisclosed
Thanks: 2
Given 1 thank(s) in 1 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
03-27-2015, 12:45 PM
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.
Russ
Co-Owner
KTMGaming.net
Posts: 683
Threads: 40
Joined: Jul 2014
Reputation:
29
Sex: Male
Thanks: 96
Given 205 thank(s) in 159 post(s)
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:
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/"
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>
Posts: 4 ,005
Threads: 193
Joined: Jul 2014
Reputation:
83
Sex: Undisclosed
Thanks: 73
Given 435 thank(s) in 395 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
03-28-2015, 03:20 AM
yep better but we still can improve more...
Posts: 683
Threads: 40
Joined: Jul 2014
Reputation:
29
Sex: Male
Thanks: 96
Given 205 thank(s) in 159 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
03-28-2015, 05:36 AM
i have to disable the
Code: php_admin_value open_basedir "/etc/sentora/panel/etc/apps/phpmyadmin/:/var/sentora/temp/"
and
Code: php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/"
or it will not work.
And change the:
Code: Order Allow,Deny
Allow from all
to:
To get it working in CentOs7
Posts: 17
Threads: 7
Joined: Mar 2015
Reputation:
0
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
04-01-2015, 01:21 AM
(This post was last modified: 04-01-2015, 01:22 AM by akong.)
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>
# Configuration for WebMail
<VirtualHost *:80>
ServerAdmin mail@minsubnb.com.tw
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
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"
ServerName webmail.minsubnb.com.tw
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
Could I setup error?
Posts: 17
Threads: 7
Joined: Mar 2015
Reputation:
0
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
04-01-2015, 01:32 AM
I have restart apache and I can see roundcube webmail.
But I got error message on web.
Quote:CONFIGURATION ERROR
config.inc.php was not found.
Please read the INSTALL instructions!
And 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/
[Tue Mar 31 23:30:05 2015] [error] [client 219.85.218.78] PHP Warning: Error writing to log file /etc/sentora/panel/etc/apps/webmail/logs/errors; Please check permissions in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube.php on line 1147, referer: http://webmail.minsubnb.com.tw/
[Tue Mar 31 23:30:05 2015] [error] [client 219.85.218.78] PHP Warning: SQLSTATE[28000] [1045] Access denied for user 'roundcube'@'localhost' (using password: NO) in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube.php on line 1246, referer: http://webmail.minsubnb.com.tw/
[Tue Mar 31 23:30:05 2015] [error] [client 219.85.218.78] PHP Warning: Error writing to log file /etc/sentora/panel/etc/apps/webmail/logs/errors; Please check permissions in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube.php on line 1147, referer: http://webmail.minsubnb.com.tw/
[Tue Mar 31 23:30:05 2015] [error] [client 219.85.218.78] PHP Warning: config.inc.php was not found. in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube.php on line 1246, referer: http://webmail.minsubnb.com.tw/
How to fix it?
Posts: 683
Threads: 40
Joined: Jul 2014
Reputation:
29
Sex: Male
Thanks: 96
Given 205 thank(s) in 159 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
04-01-2015, 01:40 AM
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.
Posts: 17
Threads: 7
Joined: Mar 2015
Reputation:
0
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
04-01-2015, 10:32 AM
(04-01-2015, 01:40 AM)Ron-e Wrote: 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.
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.
Posts: 7
Threads: 1
Joined: Jul 2015
Reputation:
0
Thanks: 1
Given 0 thank(s) in 0 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
07-11-2015, 05:59 AM
(This post was last modified: 07-11-2015, 06:48 AM by marcilioqsj.)
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
Posts: 39
Threads: 14
Joined: Feb 2015
Reputation:
0
Thanks: 2
Given 0 thank(s) in 0 post(s)
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
07-17-2015, 10:20 AM
Getting in Internal Server Error.Pls help
|