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.


Topics - ginevra

Pages: [1]
1
When I try to recompile apache, the log says

Nothing to do
Apache Rebuild Completed
But apache is not compiled.

The url apachesource="http://dl1.centos-webpanel.com/files/apache/httpd-$version.tar.gz" is broken.

Workaround is replace this url in the file generated from CWP GUI when you try to recompile /usr/local/src/apache-rebuild.sh
In line 9 replace
apachesource="http://dl1.centos-webpanel.com/files/apache/httpd-$version.tar.gz"
 with this:
apachesource="https://archive.apache.org/dist/httpd/httpd-$version.tar.gz"

Now apache is compiled with the new modules but fails to start:
Syntax error on line 9 of /usr/local/apache/conf.d/mod_security.conf: Cannot load modules/mod_security2.so into server: /usr/local/apache/modules/mod_security2.so: undefined symbol: apr_crypto_block_cleanup

I solved follow the guide of user warwicknz in this forum:
- Install modsecurity through CWP GUI so it generates the main config and OWASP rules

- Then reinstall mod_security2 manually to overwrite the issue with mod_security.so:

#Download ModSecurity
wget https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz
wget https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz.sha256

#Config checksum of download
sha256sum -c modsecurity-2.9.1.tar.gz.sha256

#Install ModSecurity:
tar -xvf modsecurity-2.9.1.tar.gz
cd modsecurity-2.9.1
./configure --with-apxs=/usr/local/apache/bin/apxs
make
sudo make install
cp /usr/local/modsecurity/lib/mod_security2.so /usr/local/apache/modules

Restart Apache, fixed!
I hope it’s useful until they fix it


2
CentOS-WebPanel Bugs / Users cannot login in cwp
« on: April 19, 2020, 08:35:43 PM »
A lot of users cannot access in the control panel but in the admin panel they seems connected. Fresh installation on VPS Centos 7  cpw pro latest version. After login a message says: please wait, but after a couple of seconds the url add /login/ and return in login page. This is very strange because only one user can login withouth problem other users no. I try on differrent devices and different browser: safari, mozilla windows mac e ubuntu. 

 

3
Functions / insert the domain on the new default account page
« on: February 20, 2020, 06:04:02 PM »
Is there any way to insert the domain on the new default account page? Eg www.newwebsite.com is under construction
Thanks

4
WHMCS report this problem:
Your environment appears to be running a different PHP version (5.6.37) for the System Cron than the currently loaded PHP version (7.2.21). This may cause issues running your System Cron.
So cron on whmcs doesn't work any more. Whmcs is installed on webserver apache with PHP-FPM 7.2 CWP Pro. I try to reinstall CWP, WHMCS but the problem is not solved. This occurred a month ago suddenly





5
CentOS-WebPanel Bugs / htaccess doesn't work on website not ssl
« on: February 12, 2019, 11:44:49 AM »
Web sites without a ssl certificate directly visiting the SSL URL, instead of redirecting the traffic on the http protocol shows the server default page. I try many ways with htaccess , rebuilt whost, restart apache but it does not work.

Pages: [1]