|
Thứ ba, 18 Tháng 6 2013 06:18 |
Trước khi bắt đầu: Bạn cần disable SELinux bằng việc sử file /etc/sysconfig/selinux và thay đổi dòng selinux=disabled. Nếu bạn sử dụng linux với giao diện : bạn có thể vào thư mục etc/sysconfig/selinux sửa giá trị selinux=disabled sau đó lưu lại (nhớ đăng nhập bằng quyền root) Hoặc bạn có thể dùng câu lệnh : Khi dó bạn phải chạy lệnh với quyền root để vô hiệu hóa SELiux # su – root # setenforce 0
Gõ lệnh /usr/sbin/sestatus để xem tình trạng SELinux đã được disable chưa. Nếu hiển thị thông tin như bên dưới là bạn đã disable thành công.
[root@Demo ~]# /usr/sbin/sestatus SELinux status: disabled [root@Demo ~]#
Sau đó khởi động lại server centos của bạn.
Hãy chắn chắn răng cổng 7778 và 7777 được mở trên firewall. Trước khi cài đặt bạn cần disable firewall trên 2 cổng 7778, 7777 hoặc để chắc chắn bạn hãy tắt chức năng tường lửa tạm thời của centos. Bước tiếp theo bạn cần làm là update lại Centos
Gõ lệnh:
# su – root
# yum install -y wget
Khi update thành công bạn sử dụng gõ lệnh download bản cài đặt Kloxo:
# wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh
Với một số bản centos 5x khi cài đặt có thể báo "cannot find or open lxadmin-current.zip, lxadmin-current.zip.zip or lxadmin-current.zip.ZIP"
Đó là do Centos của bạn không thể tìm thấy file lxadmin-current.zip trong thư mục download root home, nguyên nhân là khi download kloxo đã gửi về root home của bạn file lxadmin-install.zip vậy bạn hãy vào thư mục root home đổi tên file lxadmin-install.zip thành lxadmin-current.zip(Folder : root)
Tiếp tục gõ lệnh cài đặt:
# sh ./kloxo-installer.sh --type=master
Khi cài đặt thành công, hệ thống thông báo sẵn sàng để bạn login vào quản trị Admin Panel. bạn nên thực hiện reboot server trước khi đăng nhập vào Admin Panel của Kloxo. Đường dẫn quản trị Kloxo Panel Hosting có dạng: http://dia-chi-ip:7778 hoặc https://dia-chi-ip:7777
Uername và Password mặc định: admin
Chú ý : Trong trường hợp bạn đã làm tất cả các bước mà vẫn báo lỗi "cannot find or open lxadmin-current.zip, lxadmin-current.zip.zip or lxadmin-current.zip.ZIP"
Bạn hãy tìm đến thư mục "usr/local/lxlabs/kloxo" giải nén file : kloxo-current.zip?ich_u_r_i=e71236712a87faff31fc68c9c5301781&ich_s_t_a_r_t=0&ich_e_n_d=0&ich_k_e_y=1345068918750263272468&ich_t_y_p_e=1&ich_d_i_s_k_i_d=8&ich_u_n_i_t=1
Rồi cài đặt lại Kloxo với câu lệnh :
# sh ./kloxo-installer.sh --type=master
Một vài nâng cấp : Trong trường hợp đã cài kloxo thành công gặp 1 số lỗi như ftp, phpmyadmin, mysql bạn có thể cài đặt lại từng gói này hoặc nâng cấp sửa lỗi 1/ Với FTP Bạn dùng lệnh :
yum downgrade pure-ftpd /script/upcp /script/cleanup yum -y update
2/ Với PhpMyadmin
Đầu tiên download gói phpmyadmin về: wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.4.10.1/phpMyAdmin-3.4.10.1-all-languages.tar.gz Giải nén PhpMyadmin tar -vxzf [php + tab] Copy thư mục vừa giải nén ra vào document root: cp -R [php+tab] /var/www/html/phpmyadmin Đổi tên file config: mv /var/www/html/phpmyadmin/config.sample.inc.php /var/www/html/phpmyadmin/config.inc.php Tìm dòng: $cfg['Servers'][$i]['auth_type'] = 'cookie';
sửa lại thành: $cfg['Servers'][$i]['auth_type'] = 'http';
Add user vào mysql: mysqladmin -u root password <yourpassword>
3/ Với Mysql Kiểm tra xem đã cài My sql chưa : yum --enablerepo=remi,remi-test list mysql mysql-server Cài đặt : yum --enablerepo=remi,remi-test install mysql mysql-server
Trường hợp khi bạn add domain vào Kloxo và đã trỏ IP domain về Kloxo thành công nhưng báo lỗi
If you are seeing this page, it means that web has not been configured for this domain on this server. This could be due to the following causes: Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart. The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses If you are seeing this page when you try to access an IP like http://192.168.1.1, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain. Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP. Hãy dùng lệnh :
sh /script/fixweb service httpd restart Sau đó vào lại domain
Chúc các bạn cài Kloxo thành công
|
|
Lần cập nhật cuối lúc Thứ ba, 18 Tháng 6 2013 08:48 |