menu

SlickStack

A free LEMP stack automation script written in Bash designed to enhance and simplify WordPress provisioning, performance, and security.

Channels
Team

Fresh install error

October 9, 2019 at 6:44pm

Fresh install error

October 9, 2019 at 6:44pm
Hello!
I'm trying to install ss in a fresh Vultr 2core 4gb ram Ubuntu 18.04 instance
Steps to reproduce: 1) Create instance 2) ssh wit putty and pem key 3) apt -y update && apt -y upgrade 4) reboot 5) mkdir /var/www/ && nano /var/www/ss-config 6) paste ss-config with my own pass, domain, etc 7) cd /var/www/ && wget -O ss slick.fyi && bash ss
Here i get an error:
2019-10-09 18:27:16 (216 MB/s) - ‘/tmp/sysctl.conf’ saved [9659/9659]
chown: cannot access '/var/www/wp.sql': No such file or directory chmod: cannot access '/var/www/wp.sql': No such file or directory chown: cannot access '/etc/ssl/nginx.pem': No such file or directory chmod: cannot access '/etc/ssl/nginx.pem': No such file or directory OK OK [ ok ] Restarting redis-server (via systemctl): redis-server.service. [ ok ] Restarting php7.2-fpm (via systemctl): php7.2-fpm.service. [ ok ] Restarting nginx (via systemctl): nginx.service. [ ok ] Reloading ufw configuration (via systemctl): ufw.service. [ ok ] Restarting ufw (via systemctl): ufw.service. SlickStack installation complete! Please reboot server and ensure CloudFlare is activated with Full SSL mode. root@vultr:/var/www#
8) reboot
9) When try to navigate to my new site, i get "Error establishing a database connection"
I check wp-config.php and see that db password is set to ''
Wich i believe that looks in /var/www/wp.sql (wich is not created)
Should i create /var/www/wp.sql myself with something or try to fix install error?

October 9, 2019 at 6:51pm
NOTE: i've manually added my db pass to wp-config.php and it works
  • reply
  • like
Also, in dashboard error log, i get this: Oct 09, 21:05:59
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Oct 09, 21:06:24
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Oct 09, 21:06:29
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Oct 09, 21:07:24
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Oct 09, 21:07:27
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
Oct 09, 21:07:27
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-cron.php on line 111
  • reply
  • like
Hello, we've received several reports of error establishing a database connection but I've never been able to recreate the issue and I'm not sure why it is happening for some users
Edited
  • reply
  • like
The relevant line in ss-install should replace the placeholder in wp-config.php with ss-config entry
  • reply
  • like
are you sure that you've properly defined DB_PASSWORD in your ss-config file?
  • reply
  • like

October 10, 2019 at 5:35pm
Yes, pass in ss-config file is defined
  • reply
  • like
If i manually add pass in wp-config.php, it works. So installer is succeeding on read from ss-config and adding it to mysql
  • reply
  • like
But you shouldn't need to modify wp-config.php as the password should automatically be added during the SlickStack installation so I'm not sure why it is skipping adding your password from ss-config
  • reply
  • like
perhaps you accidentally deleted a quotation mark or using a complex password with many symbols?
  • reply
  • like