Show Posts

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.


Messages - rcschaff

Pages: 1 ... 22 23 [24] 25 26 ... 57
346
PHP Selector / Re: PHP-FPM Selector - Build Fails
« on: February 15, 2022, 04:57:40 AM »
Here's install log

checking whether to build with expat support... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XMLRPC-EPI support... yes
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

No package 'libzip' found
No package 'libzip' found
No package 'libzip' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 101: /opt/alt/php-fpm74/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 102: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 104: /opt/alt/php-fpm74/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
Failed to execute operation: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: packages.oit.ncsu.edu
 * extras: mirrors.linode.com
 * remi-safe: repo1.dal.innoscale.net
 * updates: mirrors.linode.com
Package libsodium-1.0.18-1.el7.x86_64 already installed and latest version
Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version
Nothing to do
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 28505  100 28505    0     0  97677      0 --:--:-- --:--:-- --:--:-- 97955
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 9: /opt/alt/php-fpm74/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 10: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 14: /opt/alt/php-fpm74/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm74/usr/sbin/php-fpm
Failed to restart php-fpm74.service: Unit not found.
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################


Error:Can't add notification!

yum install libzip libzip-devel

347
PHP-FPM is your answer

348
CentOS 7 Problems / Re: Api rest CWP with error in CORS
« on: February 08, 2022, 01:56:20 PM »
First, There is no way to disable CORS in modern browsers...

Did you try * instead of %?  CORS will read * as allow any.  (Please try this first)

Aside from that, you may need to tweak settings in the API config files

vi /usr/local/cwpsrv/conf.d/api.conf

Add the following line right after error_log
add_header Access-Control-Allow-Origin *;

Please note that you will have to fix this each time you update CWP.

Once that is done

/usr/local/cwpsrv/bin/cwpsrv -s reload


349
Just tried starting it, and it caused the same issue.  Restart Cwpsrv and cwp-phpfpm to return everything to normal after about 5 minutes

350
The only thing I can think of, is not name it default.  Being as the code is encrypted, I can't really see what's going on, but if it's not rebuilding from your custom file each update, there's definitely a bug.  I have Nginx with custom configs for wordpress, and they don't behave this way.

351
Installation / Re: PHP Version Switcher v2 not changing version
« on: February 06, 2022, 01:46:45 AM »
am have 3 test servers VPS with centos stream 8.5 preinstalled Centos Stream 8 and use sandeep setup from step 2 step 3 step 4
 
https://www.mysterydata.com/convert-centos-8-to-centos-8-stream-install-cwp-control-panel-in-centos-8-stream/

PHP-FPM Selector works fine PHP Version Switcher v2 works  now olso after today automatic updated 

https://prnt.sc/26n0n2d
https://prnt.sc/26n0nif

I'm wondering why you have automatic updates enabled on php-fpm? Don't you have settings changed or secured in the php.ini files? These auto updates will reset php.ini every time.

Your second screenshot tells you everything you need to know.  You are forcing all domains to use FPM, thus there is no need for a default PHP.  If you turn off forced FPM, please respond back with any errors you receive while switching.

352
Not sure then.  If you hit save, it should have changed it from IP to Hostname.  Every CWP i've ever done uses the hostname.   Possible check /etc/hostname to make sure it's set there.  Also remember the hostname has to be a FQDN

353
Copy /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/varnish/default.tpl to /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/varnish/custom.tpl

Make your modifications for the port there.

In CWP, goto WebServer Settings -> WebServers Main Config

Set the template to custom.tpl

On Update, the sites should rebuild using your custom.tpl file

354
Apache / Re: Internal Server Error
« on: February 05, 2022, 07:26:00 PM »
f script "/usr/local/apache/htdocs/index.php" is smaller than min_uid   <<< This is your error

chown "/usr/local/apache/htdocs/index.php" to nobody, or a user account other than root

355
Backup / Re: Can you add automatic backup to Amazon s3 and Wasabi?
« on: February 05, 2022, 07:18:01 PM »
Here is a workaround for you.

https://www.nakivo.com/blog/mount-amazon-s3-as-a-drive-how-to-guide/

Mount s3 as a drive.  Then set your backup location to you s3 drive

356
Server Settings -> Change Hostname

It seems you don't have one set, so it uses the IP instead.

357
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: February 05, 2022, 07:14:06 PM »
Sure.  Use whatever the latest version available.  I wasn't going hunting for the latest version :)

358
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: February 05, 2022, 03:47:52 AM »
cd /usr/local/cwpsrv/htdocs

wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1048.zip
unzip -o -q cwp-el7-0.9.8.1048.zip
rm -f cwp-el7-0.9.8.1048.zip

359
CentOS 7 Problems / Re: After centos update, all sites go to test page
« on: February 05, 2022, 03:40:23 AM »
admin/index.php?module=WebServers_conf

Check Rebuild vhosts on save.

360
Updates / Re: Adding post-script to auto php updates?
« on: February 05, 2022, 03:38:24 AM »
php.ini will be overwritten every time it's updated.  But if you want things to stick, and they can be configured, you can create a template at this location " /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/php-fpm/ ", and set your settings there.  Then set your php-fpm to use your custom template.

Pages: 1 ... 22 23 [24] 25 26 ... 57