Difference between revisions of "install xpanel"

From WebHostingNeeds.com
Jump to: navigation, search
m (Install Perl)
m (Testing vHost)
Line 153: Line 153:
  
 
If web site is working, apache name virtual host is working properly. You need wildcard dns set properly before getting this work.
 
If web site is working, apache name virtual host is working properly. You need wildcard dns set properly before getting this work.
 +
 +
 +
 +
== Setting Permissions ==
 +
 +
<pre>
 +
chmod 777 /home/vhosts
 +
chmod -R 777 /usr/local/xpanel/auth
 +
chmod -R 777 /usr/local/xpanel/create
 +
chmod -R 777 /usr/local/xpanel/delete
 +
chmod -R 777 /usr/local/xpanel/insert
 +
chmod -R 777 /usr/local/xpanel/templates
 +
chmod -R 777 /usr/local/xpanel/backups
 +
chmod -R 777 /usr/local/xpanel/log
 +
chmod -R 777 /usr/local/xpanel/named
 +
</pre>

Revision as of 20:37, 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.


Setting Permissions

chmod 777 /home/vhosts
chmod -R 777 /usr/local/xpanel/auth
chmod -R 777 /usr/local/xpanel/create
chmod -R 777 /usr/local/xpanel/delete
chmod -R 777 /usr/local/xpanel/insert
chmod -R 777 /usr/local/xpanel/templates
chmod -R 777 /usr/local/xpanel/backups
chmod -R 777 /usr/local/xpanel/log
chmod -R 777 /usr/local/xpanel/named