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 - ginevra

Pages: [1] 2
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 / Re: Users cannot login in cwp
« on: April 20, 2020, 09:45:56 AM »
I forgot that it you also need to delete each user's .conf folder, then update the package by reassigning it. Maybe it could be useful to someone


3
CentOS-WebPanel Bugs / Re: Users cannot login in cwp
« on: April 20, 2020, 06:58:38 AM »
Great! You gave me a tip on where to look. Each account had an assigned package, language and theme, but only the account that was logging in I had changed the package after creation, so I tried to re-select the package for each account and voila ... it works! Now everyone can log in on user panel. It's certainly a bug. Thank you very much :)

4
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. 

 

5
Functions / Re: insert the domain on the new default account page
« on: February 21, 2020, 05:36:00 PM »
I would like to change the default page text for new accounts located in:
/usr/local/cwpsrv/htdocs/resources/admin/tpl/new_account_tpl

and enter my custom text eg: "mydomain.com website under construction". Domain should be detected for each new account created. Sorry for my english...
There is a string code for doing this? %domain% or other?


6
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

7
Other / Re: This is why we all love CWP
« on: February 20, 2020, 05:59:49 PM »
Cpanel uses too many overrides and has created too many problems on my VPS. I tried CWP and besides having a stable, light and feature-rich hosting panel it saved me a lot of work. The value for money is beyond question: CWP PRO wins!


8
Solved. I changed php version of cwp from 5.6 to 7.2

9
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





10
CentOS 7 Problems / Re: Cron spot does not work
« on: September 16, 2019, 09:58:21 AM »
I have the same problem, cron doesn't work on whmcs after upgrade cwp.

11
Addons / Re: No Permissions in NextCloud
« on: May 10, 2019, 08:41:46 AM »
Yes you need to recompile apache add this options: 
--enable-dav
--enable-dav-fs
--enable-dav-lock
--enable-auth-digest
--enable-authn-core
--enable-authz-core

12
Aplications / Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« on: April 11, 2019, 07:21:21 AM »
Rebuild Apache with options:
-–enable-dav
-–enable-dav-fs
-–enable-dav-lock
-–enable-auth-digest
-–enable-authn-core
-–enable-authz-core

Uncomment:
LoadModule alias_module modules/mod_alias.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_user_module modules/mod_authz_core.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so

Uncomment also:
Include conf/extra/httpd-dav.conf

then restart httpd:
systemctl restart httpd

check apache:
/usr/local/apache/bin/httpd -M | grep -i dav

If results this it'all right:
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)

Edit
/usr/local/apache/conf/extra/httpd-userdir.conf

Replace with this code:
<Directory “/home/*/public_html”>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

restart httpd:
systemctl restart httpd

add on the bottom of .htaccess file of nextcloud directory

<Limit GET POST>
order deny,allow
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from all
</Limit>

That's all
 :)

13
How to / Re: How to Change Site IP Address
« on: February 16, 2019, 11:10:50 AM »
Create file: /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE="eth0:0"
BOOTPROTO=static
ONBOOT=yes
TYPE="Ethernet"
IPADDR=80.80.25.25
#HWADDR=00:0C:29:28:4C:4C
#GATEWAY=80.80.25.1
NETMASK=255.255.255.0

do this for each additional IP address, you only need to increase virtual interface number by one for each additional IP.
Like eg. eth0:1, eth0:2, eth0:3 …

**if you don’t have HWADDR then delete that line.

Restart Network

service network restart
Check all IP’s configured on the server

ifconfig

if your new IP address is listed then you have successfully added a new IP address.

14
CentOS-WebPanel Bugs / Re: htaccess doesn't work on website not ssl
« on: February 12, 2019, 09:58:54 PM »
Hello, thanks for your reply. I use only apache. I don't want redirect all traffic on https but on http if the domain not have certificate installed. I have many websites ssl and not. If I try to open https url on domain without certificate, it show default server page. I need then a redirect from https to http only for domains without certificate.

15
Someone has happened in the middle of the updates and this is why you will find answers similar to the one above. Actually there are still some problems, but you always find someone willing to help you on the forum or from technical support. I use cwp7 for years and it works very well. At first I used it on a vps where I kept my personal websites, now, after years of use, I've transferred everything from cpanel to cwp. The server is a real production server that host a lot of website (wordpress, magento, joomla, prestashop and static website) The bugs are everywhere, on every control  panel, even if you pay a lot of money ...  I say this from experience ;)
Can you tell me the characteristics of your vps?
I had a problem with small vps on digital ocean too

Pages: [1] 2