Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Administrator

Pages: 1 ... 106 107 [108] 109 110
1606
Information / How to transfer website from cPanel server to CWP
« on: December 19, 2013, 11:32:55 PM »
How to transfer website from cPanel server to CWP (CentOS Web Panel server)?

First and most important install CWP by following this instructions:
http://centos-webpanel.com/installation

Configuration of WebPanel
- Setup nameservers (CWP *- > DNS Functions -*> Edit Nameservers IPs)
- Setup shared ip (CWP --> WebPanel Settings - -> WebPanel Settings)
- Setup at least one hosting package (CWP --> Accounts --> Add a Package)
- Setup root email (CWP --> WebPanel Settings - -> WebPanel Settings)

How to Setup NameServers?
You can setup your own nameserver but then you need to have at least two IPs or you can use FreeDNS:

You can use one of the Free DNS server providers like:

http://freedns.centos-webpanel.com/
http://freedns.afraid.org/

When you register on Free DNS providers site there you will get Nameservers that you can use for yours domains.
Nameservers you need to add in: CWP - > DNS Functions -> Edit Nameservers IPs
* This nameservers you enter here will be used in all configs and account setups


If you are using FreeDNS service than you will need to point yours domain to nameservers that you get on FreeDNS  website.
On FreeDNS Website you need to point domain to your server IP address.
This changes will need up to 24 hours to be visible for you.


Create New Account
- Accounts --> New Account
- SQL Services --> MySQL Manager (New Database & User)

Download Data from cPanel server
- Download all files from yours cPanel servers /home/username/public_html folder
- Download MySQL Database with phpMyAdmin from cPanel server

Upload Data to CWP server and import MySQL database
- with FTP or SSH uplaod all files to your CWP server in /home/username/public_html folder you created before with new account
- with phpMyAdmin on CWP import database you downloaded (with logins details of mysql user)
* You can zip .sql file and import it much faster

Edit yours config files that connects to MySQL database on CWP
eg. for wordpress /home/public_html/wp-config.php  (check: host, username, database and password)

and that is it, test your website.

If you use mod rewrite and .htaccess for your website than you will need to add this in your vhost file (change USERNAME)
/etc/httpd/conf/httpd_webpanel_vhosts.conf
Code: [Select]
<Directory "/home/USERNAME/public_html">
AllowOverride All
</Directory>
add this config beffore </VirtualHost> for your domain

1607
yes there was some problem with your server updates.
You need to check this with yours VPS provider as updates must work, this can happend again when server updates and then you can have big problems if you have eg. some website on VPS

1608
Seems that i am not the only one..tried several times to install the last version with no luck even the support team didn't managed to install it!
And for the record i have no problems to install other control panels like Webuzo,webmin etc...so the problem doesn't isn't my server like the support team told me!

yours problem is something with VPS server updates, try to run this command on fresh server install.
Code: [Select]
yum -y update
After this update try to restart server and replay what happend here.

1609
Use this contact form and send root login details for server for error checking

http://centos-webpanel.com/contact

1610
Updates / How to update from version 0.1 and 0.2
« on: December 18, 2013, 02:35:05 AM »
In yours CWP first update yours CWP and then when you are up to date install mail server.

You must enter MySQL root password!!!
Code: [Select]
wget http://centos-webpanel.com/webpanel/main.php?dl=mail_installer_03
mv main.php?dl=mail_installer_03 mail_installer_03
chmod +x mail_installer_03
./mail_installer_03 YOUR_MYSQL_ROOT_PASSWORD

1611
Updates / AutoUPDATER
« on: December 18, 2013, 02:26:50 AM »
CentOS Web Panel (CWP) Auto updater is now avaliable in all CWP installations and you can update your CWP installation easy with one click within your CWP.


1612
Installation / Re: 0.3 wont turn on
« on: December 15, 2013, 03:09:16 PM »
installation is for clean server, this is not update! Update will be in avaliable in web panel.

1613
MySQL / Another MySQL daemon already running with the same unix socket
« on: December 15, 2013, 04:14:23 AM »
Fix for error: Another MySQL daemon already running with the same unix socket.

To prevent the problem from occurring, you must perform a graceful shutdown of the server from the command line rather than powering off the server.
Code: [Select]
shutdown -h now
This will stop the running services before powering down the machine.
Based on Centos, an additional method for getting it back up again when you run into this problem is to move mysql.sock:

Code: [Select]
mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
Code: [Select]
service mysqld start

1614
Information / Re: Version 0.2 BUG
« on: December 15, 2013, 03:40:04 AM »
Version 0.3 (released 15/12/2013) update from 0.1 and 0.2 will be released soon

1615
PHP / PHP short tags do not work?
« on: December 15, 2013, 12:12:51 AM »
If you have problem that your short tags in php do not work like eg. <? and ?> you can fix this with this command: run it as root:

Code: [Select]
sed -i "s|short_open_tag = Off|short_open_tag = On|" /etc/php.ini
and restart your apache server over CentOS Web Panel (CWP) or with command:
Code: [Select]
service httpd restart

1616
Information / Re: Version 0.2 BUG
« on: December 12, 2013, 11:39:32 PM »
what you need in new version?

1617
Information / Re: Version 0.2 BUG
« on: December 12, 2013, 09:40:19 PM »
yes it will released very soon in few days.
if you have any suggesions you can write it here

http://forum.centos-webpanel.com/suggestions/

1618
DNS / Free DNS services
« on: December 10, 2013, 12:05:33 AM »
If you have Dedicated server, VPS server, only one ip, you don't want or don't know how to setup DNS server than you can use free DNS services.

Tested providers
http://freedns.centos-webpanel.com/    (Free CWP DNS Manager)
http://freedns.afraid.org/

How to setup free DNS:
- You will need to point your domain to DNS servers from FreeDNS service provider you selected
eg. ns1.centos-webpanel.com, ns2.centos-webpanel.com

1619
SSL / SSL certificate generator bash script
« on: December 01, 2013, 05:50:43 PM »
Here’s a handy shell script for creating SSL certs for use in things like Apache, Exim, Dovecot, etc – it can handle creating a local certificate authority to self-sign as well if you aren’t using an official CA. In typical usage one would run makekey, makecsr and send server.csr to a CA to get signed. After receiving server.crt back, run makedh and makepem to make a nice single PEM file that can be used with most software.

sslkeygen.sh
Code: [Select]
#!/bin/sh
 
if [ $# -lt 2 ]; then
  echo "This script takes 2 params"
  echo
  echo "$0 <mode> <key filename>"
  echo
  exit 1
fi
 
SERVER=$2
 
case "$1" in
  makeca)
    /usr/bin/openssl genrsa -des3 -out ca.key 4096
    /usr/bin/openssl req -new -x509 -days 1825 -key ca.key -out ca.crt
    ;;
  makekey)
    /usr/bin/openssl genrsa -des3 2048 > ${SERVER}.key.encrypted
    /usr/bin/openssl rsa -in ${SERVER}.key.encrypted -out ${SERVER}.key
    ;;
  makecsr)
    if [ ! -f ${SERVER}.key ]; then
      echo "${SERVER}.key missing, run \"$0 makekey\" first."
      exit 1
    fi
    /usr/bin/openssl req -new -key ${SERVER}.key -out ${SERVER}.csr
    ;;
  signcrt)
    if [ ! -f ca.key ] || [ ! -f ca.crt ]; then
      echo "ca.key missing, run \"$0 makeca\" first."
      exit 1
    fi
    if [ ! -f ${SERVER}.csr ]; then
      echo "${SERVER}.csr missing, run \"$0 makecsr\" first."
      exit 1
    fi
    /usr/bin/openssl x509 -req -days 1825 -in ${SERVER}.csr -CA ca.crt \
      -CAkey ca.key -set_serial 01 -out ${SERVER}.crt
    ;;
  makedh)
    /bin/dd if=/dev/urandom of=ssldh.rand count=1 2>/dev/null
    /usr/bin/openssl gendh -rand ssldh.rand 512 > ${SERVER}.dh
    ;;
  makepem)
    if [ ! -f ${SERVER}.key ]; then
      echo "${SERVER}.key missing, run \"$0 makekey\" first."
      exit 1
    fi
    if [ ! -f ${SERVER}.crt ]; then
      echo "${SERVER}.crt missing, obtain from CA or run \"$0 signcrt\" first."
      exit 1
    fi
    cat ${SERVER}.key > ${SERVER}.pem
    cat ${SERVER}.crt >> ${SERVER}.pem
    ;;
  *)
    echo
    echo $"Usage: $0 {makeca|makekey|makecsr|signcrt|makedh|makepem} <key filename>"
    echo
    exit 2
esac
 
exit 0

source:
http://tacticalvim.wordpress.com/2010/06/20/sslkeygen-sh-complete-ssl-cert-creation-helper-script/


One more even better script
gencert.sh
Code: [Select]
#!/bin/bash
 
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
 
# Script accepts a single argument, the fqdn for the cert
DOMAIN="$1"
if [ -z "$DOMAIN" ]; then
echo "Usage: $(basename $0) <domain>"
exit 11
fi
 
fail_if_error() {
[ $1 != 0 ] && {
unset PASSPHRASE
exit 10
}
}
 
# Generate a passphrase
export PASSPHRASE=$(head -c 500 /dev/urandom | tr -dc a-z0-9A-Z | head -c 128; echo)
 
# Certificate details; replace items in angle brackets with your own info
subj="
C=<COUNTRY>
ST=<STATE>
O=<COMPANY_NAME>
localityName=<CITY>
commonName=$DOMAIN
organizationalUnitName=<DEPARTMENT_NAME>
emailAddress=<ADMIN_EMAIL>
"
 
# Generate the server private key
openssl genrsa -des3 -out $DOMAIN.key -passout env:PASSPHRASE 2048
fail_if_error $?
 
# Generate the CSR
openssl req \
-new \
-batch \
-subj "$(echo -n "$subj" | tr "\n" "/")" \
-key $DOMAIN.key \
-out $DOMAIN.csr \
-passin env:PASSPHRASE
fail_if_error $?
cp $DOMAIN.key $DOMAIN.key.org
fail_if_error $?
 
# Strip the password so we don't have to type it every time we restart Apache
openssl rsa -in $DOMAIN.key.org -out $DOMAIN.key -passin env:PASSPHRASE
fail_if_error $?
 
# Generate the cert (good for 10 years)
openssl x509 -req -days 3650 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt
fail_if_error $?

source:
https://gist.github.com/bradland/1690807

1620
Installation / Re: Can't Access Admin Panel After Installation
« on: December 01, 2013, 11:45:59 AM »
try to restart server and if this don't works then contact support on email with your ssh login details

Pages: 1 ... 106 107 [108] 109 110