Well, it would appear that updating PHP has broken PHP for Wordpress.
"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
Sweet
https://help.dreamhost.com/hc/en-us/articles/360004096331-Your-PHP-installation-appears-to-be-missing-the-MySQL-extension-which-is-required-by-WordPress
https://help.dreamhost.com/hc/en-us/articles/214893957-How-do-I-enable-PHP-extensions-and-loaders-
https://help.dreamhost.com/hc/en-us/articles/214200748-My-phprc-file-isn-t-updating
Annoying... I added it to my php.ini file... but it's still not working and I don't see it in the the phpinfo file (http://howtocureinsomnia.com/phpinfo.php).
And even if it does work, I'm not totally clear that mysql will be the right version for all of this...
Easier yet, command "php -v" seems to be telling me all I need to know:
This happens on mysqli, mysql.so, and obviously mysqli.so
I tried "sudo yum install php-mysql --skip-broken" and it installed something that didnt help and I'm guessing caused damage, lol... if so, you can reinstall php 7.3 via this guide: https://bobcares.com/blog/amazon-linux-php-5-6/2/
Just pick up with google search "unable to load dynamic library 'mysql.so' "
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
Thursday, February 20, 2020
Monday, July 15, 2019
Worpress Reset
So, first thing I come to is updating PHP so I can be compatible with the newest wordpress. I quickly come to the conclusion that this is something i must do in linux.
https://code.tutsplus.com/tutorials/upgrading-your-linux-server-to-php-7--cms-27583
I start reading and first thing up: "Go ahead and purge all the current PHP"
and I'm like... "ahhh... yeah... about that..."
And now I am creating a copy AMI so if something goes wrong I have a 7/15/19 backup image to run from. Only took about 2-5 minutes.
This guide is better actually:
https://fizzbuzzer.com/upgrading-php7-amazon-linux-ec2-instance/
And now I realize my server probably hasn't been updated since 2015. Which is probably a PRETTY BIG DEAL.... ooo boy
step 1
"
"
lol... fack
....
https://code.tutsplus.com/tutorials/upgrading-your-linux-server-to-php-7--cms-27583
I start reading and first thing up: "Go ahead and purge all the current PHP"
and I'm like... "ahhh... yeah... about that..."
And now I am creating a copy AMI so if something goes wrong I have a 7/15/19 backup image to run from. Only took about 2-5 minutes.
This guide is better actually:
https://fizzbuzzer.com/upgrading-php7-amazon-linux-ec2-instance/
And now I realize my server probably hasn't been updated since 2015. Which is probably a PRETTY BIG DEAL.... ooo boy
step 1
"
Login to your Linux instance and perform the regular system updates first
1
|
$ sudo yum update
|
lol... fack
....
Some things to note about SUDO / Service / Linux
1. You're using linux, not unix. lol
2. service commands like restart for things like httpd and mysqld require SUDO
EX:
$ service mysqld restart
cat: /var/run/mysqld/mysqld.pid: Permission denied
$ sudo service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
:)
New FTP User Created
user: press
pass: std23
Seems to work!!
Setting up SSH on AMI Linux
Amazon: FAILED
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html
GoDaddy / Linux: FAILED
https://www.godaddy.com/help/manually-install-an-ssl-certificate-on-my-apache-server-centos-5238
GoDaddy / AWS Server: FAILED - DO NOT USE THIS STRAT... Will cost more money and not the legit way to go...
https://www.godaddy.com/help/manually-install-an-ssl-certificate-on-my-aws-server-32075
Well, after going 2.5 hours over the budget it's pretty clear this is going to take more work than I have time for to meet "live" deadline. Will implement first thing after going live.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html
GoDaddy / Linux: FAILED
https://www.godaddy.com/help/manually-install-an-ssl-certificate-on-my-apache-server-centos-5238
GoDaddy / AWS Server: FAILED - DO NOT USE THIS STRAT... Will cost more money and not the legit way to go...
https://www.godaddy.com/help/manually-install-an-ssl-certificate-on-my-aws-server-32075
Well, after going 2.5 hours over the budget it's pretty clear this is going to take more work than I have time for to meet "live" deadline. Will implement first thing after going live.
Warning - Security
Subscribe to:
Posts (Atom)