-
Question
My server configuration (DigitalOcen):
* 4GB RAM | 80 GB Disk
* Ubuntu 16.04 x64 (NGINX) - WordPress
Current PHP version: 7.0.33
* Reason to upgrade: WordPress Error - PHP Update Required
Kindly help.
Thank you!
Accepted Answer:
Hi @chinmayrajyaguru,
You can actually upgrade the PHP version, you can just install a new one.
Firstly, to be able to install a certain PHP version, in this case, 7.2 you'll need to add a certain repository to your ...
2
•
•
By
chinmayrajyaguru
Ubuntu 16.04
Nginx
PHP
WordPress
-
Question
I want to use the new DigitalOcean MySQL Managed Databases with my PHP application but I'm getting this error here:
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; con...
Accepted Answer:
Hello,
The easiest way to fix that would be to alter your existing user with the following:
ALTER USER <^>myuser <^>IDENTIFIED WITH mysql_native_password BY '<^>mypassword<^>';
Another thing that you could do is to ...
6
•
•
By
bitmap
Databases
MySQL
PHP
WordPress
-
Question
Hi all,
I host 2 WordPress sites using Apache(httpd) on my droplet and am getting the nagging message to upgrade my version of PHP. I've found some tutorials and article on installing PHP, but nothing regarding upgrad...
Accepted Answer:
Hi @jplafata,
In order to upgrade from one PHP version to another just need to install it. There is no actual upgrade process like upgrading from Ubuntu 16 to 18. You just install your new PHP version and make that th...
2
•
•
By
jplafata
PHP
Apache
CentOS
CentOS 8
-
Question
PHP applications are installing with Composer 1, which is a lot slower than Composer 2. Composer 1 is also in basic end of life.
post-deploy | 20:51:31 -----> Installing dependencies...
post-deploy | 20:51:3...
Accepted Answer:
👋🏼 @nmd.matt
Composer 2 support should be out very early in January :)
1
•
•
By
nmd.matt
DigitalOcean App Platform
PHP
-
Question
Hello,
I have just finished setting up my Ubuntu 16.4 server. I have installed php5.6.26 because I am going to use Wordpress and I am not sure if all plugins are compatible with php7.
I need to install some php modu...
Accepted Answer:
As of Ubuntu 16.04.x default PHP version is PHP7. You should add PHP5 repository and you will be able to install it.
First of all add repository :
command
sudo add-apt-repository ppa:ondrej/php
When it finishes updat...
2
•
•
By
rodikr
PHP
Ubuntu 16.04
-
Question
Hi! Yesterday PHPMyAdmin was working fine on my server, but today it's getting a 500 error.
Using Apache2 and Ubuntu 18.04
Any help is appreciated! Thank you!
Accepted Answer:
https://www.digitalocean.com/community/questions/phpmyadmin-suddently-gives-http-error-500
This error is resolved in the above-mentioned link.
5
•
•
By
sharmanavdeep
PHP
Ubuntu 18.04
-
Question
I have installed php7.4 and installed all the packages and updates. Rebooted my droplet, restarted apache, cleared all caches, etc. My server is running php version 7.4. But my wordpress installation is still using P...
Accepted Answer:
Hi @todderik,
You need to tell Apache/Nginx to use the newly installed PHP verson.
Apache
You need to tell Apache to use the installed version of PHP 7.4 by disabling the old PHP module and enabling the new PHP module...
3
•
•
By
todderik
WordPress
PHP
Ubuntu
-
Question
I've been trying to install the latest PHP version on my CentOS 7 droplet but every install keeps missing some key extensions.
If I try to add them afterwards, there are some dependency failures which really bugs me....
Accepted Answer:
Hi @Remdore,
So I ran into the same problem a day ago. Even if you install PHP 7.2 with yum something without any preparation always doesn't work right away.
So, to install ANY PHP version you wish, you can follow the...
1
•
•
By
Remdore
Apache
PHP
-
Question
I hope someone can help me here. I just want to change the index.html to index.php, but when I do so I get the 403 forbidden error. I followed a bunch of tutorials on permission and installing php etc. to no avail. I ...
Accepted Answer:
Hi @karpred ,
I had to start new answer again :D
Thanks for the latest result, and please provide one couple more. So, it will be two files: <^>get_me_and_remove_me_2<^> and <^>get_me_and_remove_me_3<^>
1.
For <^>sudo...
5
•
•
By
karpred
PHP
Nginx
Ubuntu
-
Question
As I was following on this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-18-04-server, halfway I entered a wrong option. That is why I aborted t...
Accepted Answer:
@KFSys @alexdo , thank you for your help. I found a solution! When I start the tutorial again using the Digital Ocean Console and not the Terminal, the installation process starts :)
3
•
•
By
katovonkatz
LEMP
PHP
Ubuntu 20.04
-
Question
Hi! I'm bamboozled.
Here's the setup:
* One application server, Ubuntu 18.04 LTS (PHP 7.2, mysql-client)
* One database server, Ubuntu 18.04 LTS (mysql-server 5.7)
I need to connect to the database from a PHP appl...
Accepted Answer:
Hello,
This is quite interesting. As you are able to connect to the database with the mysql command, my guess would be that the password that you are using might not be correct, does your password have any special cha...
1
•
•
By
firestormbe352da97c3f50bea
MySQL
PHP
Ubuntu 18.04
-
Question
I'm trying to get started with the new DigitalOcean Apps. Since I'm using a non-standard static site generator (jigsaw). I have problems finding solid documentation on how to set the static site build or output path.
...
Accepted Answer:
Hello @dirgl
By default, our system will look at the directory: static, dist, public at this time. You can explicitly set the output directory path for the rendered assets in the app specification with the API or doc...
1
•
•
By
dirgl
PHP
HTML
Initial Server Setup
-
Question
It is usually recommended to use distribution packages when possible - they usually provide integration to your distribution and you will automatically get security updates from your distribution.
You can find a coll...
Accepted Answer:
There are a few ways of installing phpMyAdmin as described in the official documentation here:
https://docs.phpmyadmin.net/en/latest/setup.html
However I've been using another method which is a bit more convenient for...
1
•
•
By
bobbyiliev
MySQL
PHP
LAMP Stack
Apache
-
Question
Is there a way to install php7.4-gd in the default container build step?
I´ve tried:
sudo apt-get install -y php7.4-gd
Unfortunately I´m getting an error:
sudo: effective uid is not 0, is /usr/bin/sudo on a file sy...
Accepted Answer:
You can install the GD extension by adding ext-gd to composer.json like so:
[label composer.json]
{
"require": {
"ext-gd": "*"
}
}
The PHP build environment uses the Heroku PHP Buildpack, so you can ...
1
•
•
By
nightillusions
DigitalOcean App Platform
Docker
PHP
-
Question
Domain name is registered and DNS is pointed to DO as per tutorial. Created "A" record for fireball.design and www.fireball.design and *.fireball.design. Also created Nginx server block for fireball.design in /etc/ngi...
Accepted Answer:
Tried the Fail2ban stuff but nothing worked and even uninstalled it.
Tried lots of other things.
I give up
3 weeks later for a simple LEMP stack with Wordpress. One click garbage installs.
Can somebody delete this wh...
4
•
•
By
AndreyPavlov
DNS
Initial Server Setup
LEMP
Networking
Nginx
PHP
WordPress
Ubuntu 18.04
-
Question
So on a fresh install, I login to the root of Microweber and run (an edited version of this for my own site): php artisan microweber:install admin@site.com admin password storage/database1.sqlite microweber microweber...
Accepted Answer:
Hi there @BigElectricBlueCoral,
Yes, you need to go to the directory where the Microweber is installed at. To do that you can use the following command:
command,bash
cd /var/www/html
After that, you can run the artis...
1
•
•
By
BigElectricBlueCoral
PHP
Laravel
-
Question
error 1
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Connection refused
Filename: mysqli/mysqli_driver.php
Line Number: 201
error 2
A PHP Error was encountered
Severity:...
Accepted Answer:
Hello,
It looks like that your server is running out of disk space. You can check that with this command:
df -h
My guess would be that the server ran out of space and MySQL crashed, that is why you are getting the f...
1
•
•
By
thiago20
MySQL
PHP
Ubuntu
-
Question
Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, and sorted sets.
According to the official Laravel documentati...
Accepted Answer:
Prerequisites:
In order to complete this tutorial, you will need:
An Ubuntu Droplet with Laravel installed, you can follow the steps from this guide here on How to Install and Configure Laravel with LEMP on Ubuntu 18....
1
•
•
By
bobbyiliev
Redis
PHP
PHP Frameworks
Ubuntu
Linux Basics
Linux Commands
-
Question
I am using OpenLiteSpeed 1 click WordPress on Ubuntu 20.04
My droplets, 2gb CPU 2gb RAM
How to do this upgrade?
Accepted Answer:
you can try :
```
apt update
apt-get -y install lsphp74 lsphp74-common lsphp74-curl lsphp74-dev lsphp74-imap lsphp74-intl lsphp74-json lsphp74-ldap lsphp74-mysql lsphp74-opcache lsphp74-pspell lsphp74-sqlite3 lsphp74-...
2
•
•
By
maximose
PHP
OpenLiteSpeed WordPress 1-Click
WordPress
Ubuntu 20.04
-
Question
I have used Wordpress instances on many servers from many different hosts and never had this issue. For some reason, only on Digital Ocean droplets, I am unable to turn on Wordpress logs, no matter what I do.
Does any...
Accepted Answer:
Well the test of 'braking it' would be to ensure that the file itself is being honored, if so there is no reason PHP would not enable the logging unless its being turned off further down the stack somehow.
Also, if yo...
2
•
•
By
devShrimp
WordPress
PHP
Apache