On a server I upgraded PHP from 7.0 to 7.2 by following the following this article: https://help.directadmin.com/item.php?id=345
One website is now having troubles and is giving 2 errors and I can't seem to figure out wat is causing it.
In the error log I see this error:
PHP Startup: Unable to load dynamic library '/usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/pdo_pgsql' - /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/pdo_pgsql: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql: cannot open shared object file: No such file or directory), /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0, referer: https://<>/backend.php/administrator/account
Using the browser console I'm also seeing this error:
Access to XMLHttpRequest at 'https://site1/api/getSdf?country=Burundi&page=1' from origin 'https://site2' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is the php setting in the options.conf:
#PHP Settings
php1_release=5.6
php1_mode=php-fpm
php2_release=7.2
php2_mode=suphp
And the custom/suphp/configure.php72:
#!/bin/sh
./configure \
--prefix=/usr/local/php72 \
--program-suffix=72 \
--with-config-file-scan-dir=/usr/local/php70/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pgsql=pgsql \
--with-pdo-pgsql=pdo_pgsql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl
One website is now having troubles and is giving 2 errors and I can't seem to figure out wat is causing it.
In the error log I see this error:
PHP Startup: Unable to load dynamic library '/usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/pdo_pgsql' - /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/pdo_pgsql: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql: cannot open shared object file: No such file or directory), /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0, referer: https://<>/backend.php/administrator/account
Using the browser console I'm also seeing this error:
Access to XMLHttpRequest at 'https://site1/api/getSdf?country=Burundi&page=1' from origin 'https://site2' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is the php setting in the options.conf:
#PHP Settings
php1_release=5.6
php1_mode=php-fpm
php2_release=7.2
php2_mode=suphp
And the custom/suphp/configure.php72:
#!/bin/sh
./configure \
--prefix=/usr/local/php72 \
--program-suffix=72 \
--with-config-file-scan-dir=/usr/local/php70/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pgsql=pgsql \
--with-pdo-pgsql=pdo_pgsql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl