This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS-WebPanel GUI / Re: LiteSpeed web server gives PHP extension errors
« on: December 22, 2019, 05:05:52 PM »
I've enabled LiteSpeed PHPvia PHP Settings --> PHP Version Switcher as described at https://wiki.centos-webpanel.com/litespeed-enterprise-webserver-for-cwp
mysqli, mysqlnd and openssl extensions are both listed in PHP Short info.
The configuration command shown at the bottom of Php info is:
Configure Command => './configure' '--with-config-file-path=/usr/local/php' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--enable-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-tidy' '--with-curl' '--with-iconv' '--with-gmp' '--with-pspell' '--with-gd' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-jis-conv' '--with-webp-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-recode=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-pcre-regex' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--with-icu-dir=/usr'
I notice that PHP info says "You are running PHP version: 7.3.11", but the phpinfo output shows "PHP Version 5.6.36". Maybe because I updated Php in terminal outside of CWP.
mysqli, mysqlnd and openssl extensions are both listed in PHP Short info.
The configuration command shown at the bottom of Php info is:
Configure Command => './configure' '--with-config-file-path=/usr/local/php' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--enable-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-tidy' '--with-curl' '--with-iconv' '--with-gmp' '--with-pspell' '--with-gd' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-jis-conv' '--with-webp-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-recode=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-pcre-regex' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--with-icu-dir=/usr'
I notice that PHP info says "You are running PHP version: 7.3.11", but the phpinfo output shows "PHP Version 5.6.36". Maybe because I updated Php in terminal outside of CWP.
2
CentOS-WebPanel GUI / LiteSpeed web server gives PHP extension errors
« on: December 22, 2019, 02:26:31 PM »
I've tested all web server options on CWP7Pro on CentOS7 and all worked ok except for the LiteSpeed Enterprise option which gave some PHP extension errors on two website platforms. WordPress says "Your PHP installation appears to be missing the MySQL extension which is required by WordPress" and Microweber says "Error: OpenSSL PHP extension is required to run Microweber". The PHP 7.3.11 and MySql 10.1.43-MariaDB configuration worked fine for all other web servers.
PHP-FPM is installed but not active, does PHP-FPM need to be uninstalled?
Also after the LiteSpeed build I noted the following error: "Notice: Undefined variable: row in /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php on line 0"
PHP-FPM is installed but not active, does PHP-FPM need to be uninstalled?
Also after the LiteSpeed build I noted the following error: "Notice: Undefined variable: row in /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php on line 0"
3
CentOS 7 Problems / Re: Domain and sub-domains point to same test page on new install
« on: December 16, 2019, 12:55:41 PM »
I've changed the server ns records to those of my domain registrar with corresponding IPs; is that the correct setting if not using own nameservers or should the setting be left as default, ie CWP ns?
I notice that the BIND DNS service is failing, and in the error log it says:
Could the configuration have been corrupted by switching between setting up for own nameservers and registrar nameservers?
I notice that the BIND DNS service is failing, and in the error log it says:
Quote
zone mydomain.com/IN: has no NS records
zone mydomain.com/IN: not loaded due to errors.
_default/mydomain.com/IN: bad zone
zone ns1.mydomain.com/IN: loading from master file /var/named/ns1.mydomain.com.db failed: file not found
zone ns1.mydomain.com/IN: not loaded due to errors.
_default/ns1.mydomain.com/IN: file not found
zone ns2.mydomain.com/IN: loading from master file /var/named/ns2.mydomain.com.db failed: file not found
zone ns2.mydomain.com/IN: not loaded due to errors.
_default/ns2.mydomain.com/IN: file not found
zone cp.ezy-web.uk/IN: loaded serial 2019121649
zone cp.mydomain.com/IN: loaded serial 2019121649
zone ns-uk.topdns.com/IN: loaded serial 2013071600
zone ns-usa.topdns.com/IN: loaded serial 2013071600
Dec 16 11:29:18 cp.mydomain.com systemd[1]: named.service: control process exited, code=exited status=1
Dec 16 11:29:18 cp.mydomain.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Could the configuration have been corrupted by switching between setting up for own nameservers and registrar nameservers?
4
CentOS 7 Problems / Re: Domain and sub-domains point to same test page on new install
« on: December 15, 2019, 11:32:12 PM »
I tried rebuilding as suggested but no change.
I've now set the nameservers in CWP to be ns1.mydomain.com and ns2.mydomain.com and specified the server IP. Then similarly set the nameservers in CWP. After saving the webserver setup I see a warning at the top: "Possible NAT networking detected, Please check the following settings" and 'Edit NAT settings' button. There's a NAT local IP 10.154.0.5 set, should that be used as for the IP in the domain local DNS records?
I've now set the nameservers in CWP to be ns1.mydomain.com and ns2.mydomain.com and specified the server IP. Then similarly set the nameservers in CWP. After saving the webserver setup I see a warning at the top: "Possible NAT networking detected, Please check the following settings" and 'Edit NAT settings' button. There's a NAT local IP 10.154.0.5 set, should that be used as for the IP in the domain local DNS records?
5
CentOS 7 Problems / Domain and sub-domains point to same test page on new install
« on: December 04, 2019, 06:00:58 PM »
I've set the A-record for my domain in the registrar's control panel to point to the server IP, and also a wildcard A-record for sub-domains.
I've then added a user account and domain to CentOS Web Panel and also added 2 sub-domains in the user control panel. I've set the nameservers to be `ns1.somedomain.com` and `ns2.somedomain.com` where somedomain.com is the same domain as on the user account. I've checked the DNS records exist for the domain and sub-domains and they all point to the server IP. I've enable SSL for each although that has not entirely worked.
I've edited the index.html test page in the domain and sub-domain directories so that I know which is being displayed. However when I try to navigate to either the domain or sub-domains I see the same unedited test page, not the edited version. If I add a phpinfo.php page then I get 404 not found error.
Any ideas what I might have done wrong please?
I've then added a user account and domain to CentOS Web Panel and also added 2 sub-domains in the user control panel. I've set the nameservers to be `ns1.somedomain.com` and `ns2.somedomain.com` where somedomain.com is the same domain as on the user account. I've checked the DNS records exist for the domain and sub-domains and they all point to the server IP. I've enable SSL for each although that has not entirely worked.
I've edited the index.html test page in the domain and sub-domain directories so that I know which is being displayed. However when I try to navigate to either the domain or sub-domains I see the same unedited test page, not the edited version. If I add a phpinfo.php page then I get 404 not found error.
Any ideas what I might have done wrong please?
Pages: [1]