hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Software and Control Panels Tutorials : **Updated** Install Guide for Installing VHCS on Ubuntu Server
Reply

Forum Jump

**Updated** Install Guide for Installing VHCS on Ubuntu Server

Reply Post New Thread In Hosting Software and Control Panels Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #16  
Old 10-04-2007, 07:43 PM
iagsistemas iagsistemas is offline
New Member
 
Join Date: Oct 2007
Posts: 0
i post it sorry:

<?
/************************************************************************
UebiMiau is a GPL'ed software developed by
- Aldoir Ventura - aldoir@users.sourceforge.net
- http://uebimiau.sourceforge.net
Fell free to contact, send donations or anything to me :-)
São Paulo - Brasil
*************************************************************************/
@set_time_limit(0);
session_start();
session_name('sid');
$sid = session_id();
require("./inc/config.php");
require("./inc/class.uebimiau.php");
require("./inc/lib.php");
$temporary_directory = realpath($temporary_directory).'/';
define("SMARTY_DIR","./smarty/");
require_once(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_dir = $temporary_directory;
$smarty->security=true;
//$smarty->secure_dir=array("./");

$smarty->assign("umMenuTemplate",dirname($PATH_TRANSLATED).$menu_template);
//$smarty->debugging = false;
$smarty->assign("umLanguageFile",$selected_language.".txt");
$SS = New Session();
$SS->temp_folder = $temporary_directory;
$SS->sid = $sid;
$SS->timeout = $idle_timeout;
$sess = $SS->Load();

if(!array_key_exists("start", $sess )) $sess["start"] = time();
$start = $sess["start"];
$UM = new UebiMiau();
if(isset($f_pass) && strlen($f_pass) > 0) {
switch(strtoupper($mail_server_type)) {
case "DETECT":
$f_server = strtolower(getenv("HTTP_HOST"));
$f_server = str_replace($mail_detect_remove,"",$f_server);
$f_server = $mail_detect_prefix.$f_server;
if(ereg("(.*)@(.*)",$f_email,$regs)) {
$f_user = $regs[1] & "@" & str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
$domain = $regs[2];
if($mail_detect_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$mail_detect_login_type));
}
$f_protocol = $mail_detect_protocol;
$f_port = $mail_detect_port;
$f_prefix = $mail_detect_folder_prefix;
break;
case "ONE-FOR-EACH":
$domainname = str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
// $domain = $mail_servers[$six]["domain"];
$domain = $domainname;
// $f_email = $f_user."@".$domain;
$f_email = $f_user."@".$domainname;
// $f_server = $mail_servers[$six]["server"];
$f_server = "mail.".$domainname;
$login_type = $mail_servers[$six]["login_type"];
$f_protocol = $mail_servers[$six]["protocol"];
$f_port = $mail_servers[$six]["port"];
$f_prefix = $mail_servers[$six]["folder_prefix"];
if($login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$login_type));
break;
case "ONE-FOR-ALL":
if(ereg("(.*)@(.*)",$f_email,$regs)) {
$f_user = $regs[1];
$domain = $regs[2];
// $domain = str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
if($one_for_all_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$one_for_all_login_type));
}
$f_server = $default_mail_server;
$f_protocol = $default_protocol;
if($f_protocol == "imap")
$f_port = "143";
if($f_protocol == "pop3")
$f_port = "110";
$f_prefix = $default_folder_prefix;
break;
}
$UM->mail_email = $sess["email"] = stripslashes($f_email);
$UM->mail_user = $sess["user"] = stripslashes($f_user);
$UM->mail_pass = $sess["pass"] = stripslashes($f_pass);
$UM->mail_server = $sess["server"] = stripslashes($f_server);
$UM->mail_port = $sess["port"] = intval($f_port);
$UM->mail_protocol = $sess["protocol"] = strtolower($f_protocol);
$UM->mail_prefix = $sess["folder_prefix"] = $f_prefix;
$refr = 1;
} elseif (
($sess["auth"] && intval((time()-$start)/60) < $idle_timeout)) {
$UM->mail_user = $f_user = $sess["user"];
$UM->mail_pass = $f_pass = $sess["pass"];
$UM->mail_server = $f_server = $sess["server"];
$UM->mail_email = $f_email = $sess["email"];
$UM->mail_port = $f_port = $sess["port"];
$UM->mail_protocol = $f_protocol = $sess["protocol"];
$UM->mail_prefix = $f_prefix = $sess["folder_prefix"];
} else {
redirect("./index.php?tid=$tid&lid=$lid");
exit;
}
$sess["start"] = time();
$SS->Save($sess);
$userfolder = $temporary_directory.ereg_replace("[^a-z0-9\._-]","_",strtolower($f_user))."_".strtolower($f_server)."/";
$UM->debug = $enable_debug;
$UM->use_html = $allow_html;
$UM->user_folder = $userfolder;
$UM->temp_folder = $temporary_directory;
$UM->timeout = $idle_timeout;

$prefs = load_prefs();
$UM->timezone = $prefs["timezone"];
$UM->charset = $default_char_set;

/*
Don't remove the fallowing lines, or you will be problems with browser's cache
*/
Header ("You expire: Wed, 11 Nov 1998 11:11: 11 GMT");
Header ("Break-Control: not-break");
Header ("Break-Control: must-revalidate");
$nocache = "
<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">";
// Sort rules
if(!isset($sortby) || !ereg("(subject|fromname|date|size)",$sortby)) {
if(array_key_exists("sort-by",$prefs) && ereg("(subject|fromname|date|size)",$prefs["sort-by"]))
$sortby = $prefs["sort-by"];
else
$sortby = $default_sortby;
} else {
$need_save = true;
$prefs["sort-by"] = $sortby;
}
if(!isset($sortorder) || !ereg("ASC|DESC",$sortorder)) {
if(array_key_exists("sort-order",$prefs) && ereg("ASC|DESC",$prefs["sort-order"]))
$sortorder = $prefs["sort-order"];
else
$sortorder = $default_sortorder;
} else {
$need_save = true;
$prefs["sort-order"] = $sortorder;
}
if(isset($need_save)) save_prefs($prefs);
if(is_array($sess["sysmap"]))
while(list($key, $value) = each($sess["sysmap"]))
if(strtolower($folder) == $key)
$folder = $value;
if(!isset($folder) || $folder == "" || strpos($folder,"..") !== false ) {
$folder = $sess["sysmap"]["inbox"];
} elseif (!file_exists($userfolder.$folder)) {
redirect("./logout.php?sid=$sid&tid=$tid&lid=$lid");
exit;
}
?>

Sponsored Links
  #17  
Old 10-04-2007, 07:46 PM
arche arche is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Location: Chicago, IL
Posts: 58
according to your file you posted I am not sure how you are still getting this error.

Is this server public, if it is could you send me the ip through a pm or the url of this server.

  #18  
Old 10-04-2007, 07:52 PM
iagsistemas iagsistemas is offline
New Member
 
Join Date: Oct 2007
Posts: 0
You can do something in remotely or need some thing? THNX

Sponsored Links
  #19  
Old 10-04-2007, 07:55 PM
arche arche is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Location: Chicago, IL
Posts: 58
sent you a pm

  #20  
Old 10-04-2007, 07:56 PM
iagsistemas iagsistemas is offline
New Member
 
Join Date: Oct 2007
Posts: 0
what port open in order that you could enter for ssh?

  #21  
Old 10-04-2007, 07:59 PM
arche arche is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Location: Chicago, IL
Posts: 58
ssh is port 22 but maybe we should do this through pm so no more personal info gets out there. Did you check the last pm I sent you?

  #22  
Old 10-04-2007, 08:00 PM
iagsistemas iagsistemas is offline
New Member
 
Join Date: Oct 2007
Posts: 0
arche if i deleted this lines:
Header ("You expire: Wed, 11 Nov 1998 11:11: 11 GMT");
Header ("Break-Control: not-break");
Header ("Break-Control: must-revalidate");

The application seems that it works, at least it does not give this error. In order that they use these lines?

  #23  
Old 12-17-2007, 06:35 PM
rhaynesak rhaynesak is offline
New Member
 
Join Date: Dec 2007
Posts: 0
Having a problem with the filemanager in debian etch. I saw the edits you suggested to fix them yet the issues persist.



Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/) in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

Thanks in advance. Let me know what information could help you.

  #24  
Old 01-15-2008, 06:59 AM
allorrimi_25 allorrimi_25 is offline
New Member
 
Join Date: Jan 2008
Posts: 0
Replace in the file /etc/vhcs2/apache/parts/vhcs2_base.tpl this :
php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/"

by

php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp:/usr/share/php/"

Then update vhcs2 configuration files :
rm /etc/vhcs2/apache/working/vhcs2.conf
/etc/init.d/vhcs2_daemon stop
mysql -u root -pYOUR_PASSWORD
USE vhcs2;
UPDATE domain SET domain_status='change';
UPDATE subdomain SET subdomain_status='change';
UPDATE domain_aliasses SET alias_status='change';
quit;
/var/www/vhcs2/engine/vhcs2-rqst-mngr
/etc/init.d/vhcs2_daemon start
/etc/init.d/apache2 reload
/etc/init.d/bind9 reload

Check the modification in the file /etc/apache2/site-available/vhcs2.conf

Quote:
Originally Posted by rhaynesak View Post
Having a problem with the filemanager in debian etch. I saw the edits you suggested to fix them yet the issues persist.



Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/) in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

Thanks in advance. Let me know what information could help you.

  #25  
Old 02-13-2008, 10:51 PM
Metallian Metallian is offline
WHT Addict
 
Join Date: Dec 2007
Location: Jakarta
Posts: 113
Great tuttorial, but i have this problem.

Quote:
root@vps102:~/vhcs2-2.4.7.1# /var/www/vhcs2/engine/setup/vhcs2-setup

CRITICAL ERROR: Module [MIME::Entity] WAS NOT FOUND !

CRITICAL ERROR: Module [MIME:arser] WAS NOT FOUND !

CRITICAL ERROR: Module [Crypt::CBC] WAS NOT FOUND !

CRITICAL ERROR: Module [Crypt:asswdMD5] WAS NOT FOUND !

CRITICAL ERROR: Module [Term::ReadPassword] WAS NOT FOUND !

Modules [MIME::Entity, MIME:arser, Crypt::CBC, Crypt:asswdMD5, Term::ReadPassword] WAS NOT FOUND in your system...
How to fix that "WAS NOT FOUND !"...

Thank You

  #26  
Old 02-17-2008, 05:53 PM
nanometer nanometer is offline
New Member
 
Join Date: Feb 2008
Posts: 0
i can't login to filemanager.

Incorrect username or password.

when i use filezilla it response:

Status: Verbinden met xxx.xxx.x.xxx:21...
Status: Verbinding wordt gemaakt, wachten op welkomstbericht...
Antwoord: 220 ProFTPD 1.3.0 Server (Debian) [::ffff:xxx.xxx.x.xxx]
Opdracht: USER xxx@xxx.xx
Antwoord: 331 Password required for xxx@xxx.xx.
Opdracht: PASS ***
Antwoord: 530 Login incorrect.
Fout: Kan niet verbinden met server

can any one help me.

thnx

  #27  
Old 03-03-2008, 10:24 PM
tmbrown tmbrown is offline
New Member
 
Join Date: Mar 2008
Posts: 0
Filemanager Issue

I'm having the same problem as nanometer. No matter what login info i use, it always says it's incorrect.

  #28  
Old 03-04-2008, 04:39 PM
tmbrown tmbrown is offline
New Member
 
Join Date: Mar 2008
Posts: 0
Post Filemanager Fix

Okay after much trial and error I have a fix for the ftp issue.

Step 1: Backups

nano /etc/proftpd.conf
the do a ^X (Ctrl + X) and save it as /etc/proftpd2.conf

Step 2: Delete BS Config

nano /etc/proftpd.conf
Remove everything above the "#VHCS2 Management;" Line.
Save the Doc and Exit (Ctrl + O, Ctrl + M, Ctrl + X).

Step 3: Include the VHCS FTP File

nano /etc/proftpd/proftpd.conf
Find the line
#<IfModule mod_sql.c>
# SQLBackend mysql
#</IfModule>

And make it look like this
<IfModule mod_sql.c>
SQLBackend mysql
Include /etc/proftpd.conf
</IfModule>
Save and exit the document.

Step 4: Disable PostgresSQL Module

nano /etc/proftpd/modules.conf
Comment out the following line
LoadModule mod_sql_postgres.c
Save and Exit

Step 5: Restart ProFTP
/etc/init.d/proftpd restart
You may also want to reboot your machine, but thats
completely optional. However that is all that needs to be
done.

  #29  
Old 03-04-2008, 08:02 PM
arche arche is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Location: Chicago, IL
Posts: 58
I have not kept up with this project as I am working on getting vhcs working on Fedora 8. Alot of the code had to be rewritten which I have done. It is not meant to be used in commercial environment. It will be a couple of more weeks before I release it, I have tried contacting the vhcs team about posting the updated version there but have had no luck. Just a little FYI.

arche

__________________
<<<"Health is merely the slowest possible rate at which one can die.">>>

  #30  
Old 04-20-2008, 09:39 AM
FenixWS FenixWS is offline
Newbie
 
Join Date: Mar 2008
Posts: 10
VHCS works under ubuntu. I followed a guide just tonight.

Reinstalled the OS after i found another artical refering to alot of security issues with it tho

Reply

Related posts from TheWhir.com
Title Type Date Posted
Canonical to Close Cloud Storage Service Ubuntu One Web Hosting News 2014-05-01 08:34:02
Joyent Cloud Adds Platform Optimization, Support for Ubuntu Server Images Web Hosting News 2014-02-20 11:19:00
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
Inktank and Canonical Partner to Support Ceph Storage with OpenStack on Ubuntu Web Hosting News 2013-06-03 14:41:01
Canonical Releases Ubuntu Server 12.10 with OpenStack Folsom Web Hosting News 2012-10-19 11:11:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?