cnarutox 发表于 2018-12-10 22:17:12

vultr Ubuntu 18.10 lnmp php失败

系统版本:
Welcome to Ubuntu 18.10 (GNU/Linux 4.18.0-10-generic x86_64)

* Documentation:https://help.ubuntu.com
* Management:   https://landscape.canonical.com
* Support:      https://ubuntu.com/advantage

System information as of Mon Dec 10 21:21:01 CST 2018

System load:0.0               
Processes:            94
Usage of /:   36.5% of 24.55GB   
Users logged in:      0
Memory usage: 26%               
IP address for ens3:   
Swap usage:   1%               
IP address for docker0:

VULTR:
CPU:
1 vCore
RAM:
1024 MB
Storage:
25 GB SSD
Bandwidth:
8.35 GB of 1000 GB


安装选项除密码外全为默认(回车)


============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum



root@cnarutox:~/lnmp/lnmp1.5/lnmp1.5/lnmp1.5# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


root@cnarutox:~/lnmp/lnmp1.5/lnmp1.5/lnmp1.5# /usr/local/php/bin/php -v
bash: /usr/local/php/bin/php: No such file or directory


root@cnarutox:~/lnmp/lnmp1.5/lnmp1.5/lnmp1.5# journalctl -xe
-- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 7 has been created for the user root.
--
-- The leading process of the session is 26538.
Dec 10 21:21:44 cnarutox sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:21:46 cnarutox sshd: Failed password for root from 218.92.1.157 port 36840 ssh2
Dec 10 21:21:48 cnarutox sshd: Failed password for root from 218.92.1.157 port 36840 ssh2
Dec 10 21:21:50 cnarutox sshd: Failed password for root from 218.92.1.157 port 36840 ssh2
Dec 10 21:21:50 cnarutox sshd: Received disconnect from 218.92.1.157 port 36840:11:
Dec 10 21:21:50 cnarutox sshd: Disconnected from authenticating user root 218.92.1.157 port 36840
Dec 10 21:21:50 cnarutox sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:22:51 cnarutox sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:22:53 cnarutox sshd: Failed password for root from 218.92.1.157 port 17738 ssh2
Dec 10 21:22:55 cnarutox sshd: Failed password for root from 218.92.1.157 port 17738 ssh2
Dec 10 21:22:57 cnarutox sshd: Failed password for root from 218.92.1.157 port 17738 ssh2
Dec 10 21:22:59 cnarutox sshd: Received disconnect from 218.92.1.157 port 17738:11:
Dec 10 21:22:59 cnarutox sshd: Disconnected from authenticating user root 218.92.1.157 port 17738
Dec 10 21:22:59 cnarutox sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:23:54 cnarutox sshd: Invalid user web from 81.248.70.86 port 34441
Dec 10 21:23:54 cnarutox sshd: pam_unix(sshd:auth): check pass; user unknown
Dec 10 21:23:54 cnarutox sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=81.248.70.86
Dec 10 21:23:56 cnarutox sshd: Failed password for invalid user web from 81.248.70.86 port 34441 ssh2
Dec 10 21:24:00 cnarutox sshd: Received disconnect from 81.248.70.86 port 34441:11: Bye Bye
Dec 10 21:24:00 cnarutox sshd: Disconnected from invalid user web 81.248.70.86 port 34441
Dec 10 21:24:00 cnarutox sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:24:02 cnarutox sshd: Failed password for root from 218.92.1.157 port 59679 ssh2
Dec 10 21:24:04 cnarutox sshd: Failed password for root from 218.92.1.157 port 59679 ssh2
Dec 10 21:24:06 cnarutox sshd: Failed password for root from 218.92.1.157 port 59679 ssh2
Dec 10 21:24:06 cnarutox sshd: Received disconnect from 218.92.1.157 port 59679:11:
Dec 10 21:24:06 cnarutox sshd: Disconnected from authenticating user root 218.92.1.157 port 59679
Dec 10 21:24:06 cnarutox sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:25:05 cnarutox sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root
Dec 10 21:25:07 cnarutox sshd: Failed password for root from 218.92.1.157 port 33161 ssh2
Dec 10 21:25:10 cnarutox sshd: Failed password for root from 218.92.1.157 port 33161 ssh2
Dec 10 21:25:12 cnarutox sshd: Failed password for root from 218.92.1.157 port 33161 ssh2
Dec 10 21:25:12 cnarutox sshd: Received disconnect from 218.92.1.157 port 33161:11:
Dec 10 21:25:12 cnarutox sshd: Disconnected from authenticating user root 218.92.1.157 port 33161
Dec 10 21:25:12 cnarutox sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.1.157user=root



root@cnarutox:~/lnmp/lnmp1.5/lnmp1.5/lnmp1.5# systemctl status mysql.service
● mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql; generated)
   Active: failed (Result: exit-code) since Mon 2018-12-10 21:01:43 CST; 44min ago
   Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/mysql.service
         ├─ 635 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/var --pid-file=/usr/local/mysql/var/cnarutox.pid
         └─1265 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=cnarutox.err --o

Dec 10 21:01:40 cnarutox systemd: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Dec 10 21:01:40 cnarutox systemd: mysql.service: Found left-over process 1265 (mysqld) in control group while starting unit. Ignoring.
Dec 10 21:01:40 cnarutox systemd: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Dec 10 21:01:40 cnarutox systemd: Starting LSB: start and stop MySQL...
Dec 10 21:01:40 cnarutox mysql: Starting MySQL
Dec 10 21:01:43 cnarutox mysql: ... * The server quit without updating PID file (/usr/local/mysql/var/cnarutox.pid).
Dec 10 21:01:43 cnarutox systemd: mysql.service: Control process exited, code=exited status=1
Dec 10 21:01:43 cnarutox systemd: mysql.service: Failed with result 'exit-code'.
Dec 10 21:01:43 cnarutox systemd: Failed to start LSB: start and stop MySQL.


--------------------------------------------------------------------------------------------------------------------------------------------------------------
log:

licess 发表于 2018-12-11 12:54:05

解决方法参考:https://bbs.vpser.net/thread-18040-1-1.html#pid56537
就是多一步要修改 include/init.sh 查找 18.04 替换为 18.10
页: [1]
查看完整版本: vultr Ubuntu 18.10 lnmp php失败