Wordpress installs without any issues. No error log in FPM, Nginx and WP-Debug. However it is not working. I believe the issue is related with FPM. When I carry all the WP code (no-change) into another host, it works even with the same db.
If I just install the Wordpress. The default admin account does not become available. The user is created in the MySQL but not as admin.
Sorry, you are not allowed to access this page.
If I systemctl reload php7.3-fpm
then install it, I can login as an Admin but page and post create gives the error below.
PHP Notice: Trying to get property 'publicly_queryable'
After that if I systemctl reload php7.3-fpm
then I can see page and post create but for a few minutes any second refresh. We are back to...
PHP Notice: Trying to get property 'publicly_queryable'
Everything installed freshly. My setup:
- Ubuntu 16.04.6LTS
- Nginx 1.17.6
- Wordress 4.9 and 5.1 *tried both
- MySQL 5.5 and 8.0*tried both
I install PHP with the commands below.
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/nginx
apt-get install php7.3-bcmath php7.3-bz2 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php7.3-zip
And my Nginx Configuration is coming from Digital Oceans nginxconfig.io
mydomain.com.conf
` location ~ .php$ { # 404 try_files $fastcgi_script_name =404;
# default fastcgi_params
include fastcgi_params;
# fastcgi settings
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";
} `