Board logo

标题: [求助] wdcp系统管理面板登录 无法访问提示下载 [打印本页]

作者: caiwaji    时间: 2015-1-28 09:31     标题: wdcp系统管理面板登录 无法访问提示下载

wdcp系统管理面板登录 无法访问提示下载
长度:89439947 (85M) [text/plain]
Saving to: `lanmp_wdcp-2-5.i386.rpm'

100%[======================================>] 89,439,947  89.1K/s   in 10m 32s

2015-01-28 09:02:06 (138 KB/s) - `lanmp_wdcp-2-5.i386.rpm' saved [89439947/89439947]

Preparing...                ########################################### [100%]
   1:lanmp_wdcp             ########################################### [100%]
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/www/wdlinux/mysql-5.1.63/bin/mysqladmin -u root password 'new-password'
/www/wdlinux/mysql-5.1.63/bin/mysqladmin -u root -h v157-7-113-200.z1d13.static.cnode.jp password 'new-password'

Alternatively you can run:
/www/wdlinux/mysql-5.1.63/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /www/wdlinux/mysql-5.1.63 ; /www/wdlinux/mysql-5.1.63/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /www/wdlinux/mysql-5.1.63/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /www/wdlinux/mysql-5.1.63/bin/mysqlbug script!

Starting MySQL.Manager of pid-file quit without updating file.[失败]
/www/wdlinux/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ln: “/usr/lib/plugin”:无法覆盖目录
启动 httpd:[确定]
启动 nginx:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[失败]
启动 httpd:
启动 pure-config.pl:Running: /usr/sbin/pure-ftpd --daemonize -S21 -A -c50 -B -C8 -D -E -fftp -H -I15 -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z -lunix -p20000:20500 -lmysql:/www/wdlinux/etc/pureftpd-mysql.conf



============  lanmp_wdcp install OK  ==============



          configuration ,lamp or lnmp,wdcp install is finshed
          visit http://ip
          wdcp visit http://ip:8080
          more infomation please visit http://www.wdlinux.cn
作者: caiwaji    时间: 2015-1-28 09:59

登陆phpmyadmin创建数据库wdcpdb数据
作者: caiwaji    时间: 2015-1-28 10:02

B 检查/www/wdlinux/mysql/var/下有没wdcpd目录及目录下是否有文件
如果没有
可手工在phpmyadmin创建数据库wdcpdb数据库,及wdcp用户并把信息保存到/www/wdlinux/wdcp/data/db.inc.php文件中
同时将/www/wdlinux/wdcp/wdcpdb.sql文件导入
完成
作者: caiwaji    时间: 2015-1-28 10:03

不会使用手工在phpmyadmin创建数据库 管理员能发具体操作么?感谢
作者: caiwaji    时间: 2015-1-28 13:25

wdcp支持两种安装方式 1 源码编译此安装比较麻烦和耗时,一般是20分钟至一个小时不等,具体视机器配置情况而定 2 RPM包安装简单快速,下载快的话,几分钟就可以完成 源码安装(ssh登录服务器,

执行如下操作即可,需root用户身份安装)

wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz

tar zxvf lanmp_laster.tar.gz

sh install.sh

4个可选安装,如下图

1,2,3 是安装独立的环境,不可自由切换nginx,apache,nginx+apache应用环境

4 是安装所有,即可在wdcp的后台里自由切换nginx,apache,nginx+apache的应用环境

卸载(注意备份数据,否则后果自负)

sh install.sh uninstall

就可以

RPM包安装

wget http://down.wdlinux.cn/in/lanmp_wdcp_ins.sh

sh lanmp_wdcp_ins.sh

就可以

RPM包安装支持系统:CentOS 5.X/wdlinux_base 5.X/wdOS 1.0,CentOS 6.X ,32位,64位均支持

卸载 (切记备份好数据)

sh lanmp_wdcp_ins.sh uninstall

就可以

安装完后,默认的后台管理地址如下

http://ip:8080

用户名:admin 默认密码:wdlinux.cn

mysql默认的管理用户名:root 默认密码:wdlinux.cn

相关说明

所有软件安装目录/www/wdlinux

站点配置文件

/www/wdlinux/nginx/conf/vhost

/www/wdlinux/apache/conf/vhost

数据库配置文件/www/wdlinux/etc/my.cnf

数据库数据文件目录 /www/wdlinux/mysql/var

可能问题

1 登录时提示超时,检查下系统时间是否为当前时间

2 重装后重新打开IE,否则会有session错误提示的问题

安装wdCP,无法连接mysql,解决方法

在ubuntu 12.04版本上安装wdCP,采用编译安装的方式,一路装下来最后悲催地报错了:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!:

* Restarting web server httpd

去/tmp目录下找了找还真没有mysql.sock,用netstat–lnpt也没发现那个占用3306端口的吃货,你妹的mysql就没启动起来啊。

根据网上消息,/etc/my.cnf中的basedir、datadir、user是要正确填写滴,不写是容易出错滴。用vi一看,果然没有这几货。

不过似乎basedir和datadir不填也行,只需要填写user=root即可,如下:

[mysqld]

user = root

port = 3306

socket = /tmp/mysql.sock

然后重启一下mysql:

servicemysqld restart

这回mysql终于启动了,netstat–lnpt也能发现有3306端口了。但此时访问wdCP主页(http://ip:8080)还是会报错,打开页面就是:

无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!:

这时先用wdcp的工具重新设置一下数据库的root密码和wdcp密码:

sh /www/wdlinux/tools/mysql_root_chg.sh

会显示重置之后的root密码

sh /www/wdlinux/tools/mysql_wdcp_chg.sh

会显示重置之后的wdcp密码

重置之后,终于好不容易能从phpMyAdmin访问数据库了,用户root,密码为上文返回值,访问地址为:

http://ip:8080/phpmyadmin/

在phpmyadmin中创建个用户wdcp,密码为上文所述,权限全选。此时再访问wdCP会发

现字符终于有了点变化,嚯嚯嚯嚯:

MySQL Query Error:select * from wd_conf where name='os_rl'

再去phpmyadmin中创建一个名为wdcpdb的数据库,把/www/wdlinux/wdcp/wdcpdb.sql拷出来,导入数据库。

此时再访问wdcp主页,发现眼前一亮,终于登陆界面出现了,输入用户名admin,密码wdlinux.cn,爽去吧骚年….




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2