Difference between revisions of "install xpanel"

From WebHostingNeeds.com
Jump to: navigation, search
m (Edit httpd.conf)
m (Install Perl)
Line 137: Line 137:
 
yum install perl-CGI perl-CGI-Session
 
yum install perl-CGI perl-CGI-Session
 
</pre>
 
</pre>
 +
 +
 +
 +
== Testing vHost ==
 +
 +
<pre>
 +
mkdir -p /home/vhosts/whn.ratedxhost.com
 +
echo "test" > /home/vhosts/whn.ratedxhost.com/index.html
 +
service httpd restart
 +
</pre>
 +
 +
Now access web site
 +
 +
http://whn.ratedxhost.com
 +
 +
If web site is working, apache name virtual host is working properly. You need wildcard dns set properly before getting this work.

Revision as of 20:35, 7 September 2013

  • Extract xpanel_117.tar.gz
  • Upload xpanel folder to /usr/local/xpanel


Edit Config.pm

vi /usr/local/xpanel/Conf/Config.pm

Find

'domains' => '.xpanel.de, .xpanel.info, .xpanel.net, .xpanel.org, .xpanel.us',

Replace With

'domains' => '.ratedxhost.com',


Find

  # Sign-Up web site.
'web_site' => 'http://www.xpanel.com',
'cgi_bin' => 'http://www.xpanel.com/cgi-bin',

Replace with

  # Sign-Up web site.
'web_site' => 'http://www.ratedxhost.com',
'cgi_bin' => 'http://www.ratedxhost.com/cgi-bin',

Find

'mysql_admin_password' => 'Your_MySQL_PassWord_Here',

Replace Your_MySQL_PassWord_Here with your actual mysql password.


Find

'virtualhost_ip' => '123.45.67.89',

  # Your own Domain Name Servers
'name_servers' => {
	'ns1' => 'ns1.xpanel.net',
	'ns2' => 'ns2.xpanel.net',
	'IP1' => '123.45.67.88',
	'IP2' => '123.45.67.89'
},

Replace with your vhost IP and name server IPS.

Also change value for orgname, orgmail, business_email


Edit xp_httpd.conf

vi /usr/local/xpanel/Conf/xp_httpd.conf


Find

NameVirtualHost 123.45.67.89
<VirtualHost 123.45.67.89>

Replace with your vhost IP.

Find

CustomLog "|mysql -hlocalhost -uxpanel -pXPanel XPanel" mysql

Update with your mysql login.

Add following virtual host entry for the main web site

<VirtualHost 198.27.126.137:80>
ServerName ratedxhost.com
ServerAlias www.ratedxhost.com
DocumentRoot /home/ratedxhost.com/public_html
ServerAdmin [email protected]
CustomLog /var/log/httpd/ratedxhost.com.log combined
ScriptAlias /cgi-bin/ /home/ratedxhost.com/public_html/cgi-bin/
<Directory "/home/ratedxhost.com/public_html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Edit httpd.conf

vi /etc/httpd/conf/httpd.conf

Add below

Include "/usr/local/xpanel/Conf/xp_httpd.conf"


Import MySQL DB

SQL will auto create db, so don't create it manually.

mysql < XPanel.mysql


Install Perl

yum install perl-CGI perl-CGI-Session


Testing vHost

mkdir -p /home/vhosts/whn.ratedxhost.com
echo "test" > /home/vhosts/whn.ratedxhost.com/index.html
service httpd restart

Now access web site

http://whn.ratedxhost.com

If web site is working, apache name virtual host is working properly. You need wildcard dns set properly before getting this work.