Jump to content

CWP - Control WEB Panel

Exclusively For CWP panel including tutorial and free troubleshoot.

  1. In this tutorial we’ll learn how to disable php mail() function in CWP to block the users to be able to send spam emails or infected emails from php mail function. This will force users to use SMTP based email sending structure which is more secure and easily controllable upon the amount of mails they are sending i.e. you can add quota hourly basis in packages. Run this below commands to disable php mail function completely :- PHP switcher : echo "disable_functions = mail" > /usr/local/php/php.d/disabled_function.ini PHP-CGI selector : echo "disable_functions = mail" > /opt/alt/php53/usr/php/php.d/disabled_function.ini echo "disable_functi…

      • Like
    • 4 replies
    • 15k views
  2. I would like to customize the hostname.conf and hostname-ssl.conf template files for HTTPD. However, it appears that these are assigned by default by CWP for the hostname, but there is no way to change these assignments to custom templates from the admin panel interface as far as I can tell. It is only possible to change templates as a general default in WebServers Main Conf (where custom templates are not displayed as an option), or under WebServers Domain Conf (where only hosted domain configurations are available). I would like to use custom templates if possible rather than editing hostname.conf and hostname-ssl.conf from WebServers Conf Editor to avoid overwri…

    • 4 replies
    • 4.8k views
  3. I was looking in the /usr/local/apache/conf.d/hostname-ssl.conf file and it says that the webpage is located in htdocs <Directory "/usr/local/apache/htdocs/"> AllowOverride All </Directory> I would like to change that so it shows either the login screen OR a custom page located in /home/default/ Is it that simple to change the directory? and how do i get it to display the loginform? And lastly how can i create a loginform on another page to log in directly to the controlpanel?

    • 1 reply
    • 1.6k views
  4. Started by leisegang,

    Is there a way or place in CWP i can view a list of all accounts and what PHP version they are using, i have a few/several sites that are PHP7.4 now and i dont want to open every site in the control panel and change the site to PHP8.3 Also i cannot upgrade ALL sites to php 8.3 because they dont support it yet. If needed how can i write a plugin to make it happen`?

    • 2 replies
    • 4.7k views
  5. Started by leisegang,

    i trying to install php 8.3 via cwp php-fpm selector. it will not work, i get this error: Dependencies resolved. Nothing to do. Complete! 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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 28505 100 28505 0 0 61967 0 --:--:-- --:--:-- --:--:-- 61967 /usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/8.3/sodium.sh: line 9: /opt/alt/php-fpm83/usr/bin/phpize: No such file or directory /usr/local/cwpsrv/htdocs/resources/conf/el8/php-f…

    • 1 reply
    • 10k views
  6. In this tutorial we’ll install most awaited php version in CWP control panel as php switcher. This easy guide will guide you upon how to install PHP 8 easily. PHP 8.3 comes with numerous improvements and new features such as: Typed Class Constants Added json_validate function Dynamic class constant and Enum member fetch support class_alias() supports aliasing built-in PHP classes New #[\Override] attribute New stream_context_set_options function PHP CLI Lint (php -l) supports linting multiple files at once Fallback value support for PHP INI Environment Variable syntax Random extension: New \Random\Randomizer::ge…

      • Like
    • 7 replies
    • 7.6k views
  7. Started by leisegang,

    I have noticed over the last 2 weeks that AutoSSL has stopped working, this is not good for me or my clients. Is there a cronjob i can run every night that checks and renews the ssl certificates?

    • 1 reply
    • 1.9k views
  8. Hi, I hope you are be fine. Kindly guide me on how can make a high secure and top performance config for /etc/nginx/nginx.conf which help the server against attacker and keep server more secure and mitigate attacks. Kindly share the whole ngnix.conf here with full details. thank you very much.

  9. Hi, I have installed Tomcat and actiavted it. I have given access to users. CWP Tomcat Manager Tomcat server status Version: Apache Tomcat/9.0.58 Running on port: 8080 Java Information openjdk version "1.8.0_392" OpenJDK Runtime Environment (build 1.8.0_392-b08) OpenJDK 64-Bit Server VM (build 25.392-b08, mixed mode) https://pasteboard.co/4dpSjyI3Jp13.png But in the User Panel under Tomcat manager I am getting the below erro: Tomcat Manager not available, please contact admin for more information. Screen Shot: https://pasteboard.co/ht09dZ1fjSlS.png How can i fix

  10. Hi, I have set up a few reseller packages in CWP pro. I have set up the API as per WHMCS. The user is getting created from clientexec, however I want to assign them the reseller packages. However the new user is getting created with Default package. I think i might be missing some API permissions. Which API permissions are required to assign reseller packages.

  11. Started by leisegang,

    I have now integrated it into CWP, so for the benefit of others. 1. Create /usr/local/cwpsrv/htdocs/resources/admin/modules/apache_status.php with the following contents: <?php // Apache Status - Accesses v0.4 $url = "http://localhost/server-status"; $ch_session = curl_init(); curl_setopt($ch_session, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch_session, CURLOPT_URL, $url); $result_url = curl_exec($ch_session); echo $result_url; ?> To Add under webservers instead of Developer Options /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php <script type="text/javascript"> $(document).ready(function() { var newButton…

    • 2 replies
    • 3.9k views
  12. Started by leisegang,

    on cpanel i loved the email delivery tab. that is now missing. @Sandeep B. could you take a look at this plugin and try to get it working? https://github.com/ChobPT/cwp-email-delivery

      • Like
    • 8 replies
    • 5.4k views
  13. Started by leisegang,

    How can i update openssl to version 3.x. The reason i ask is that one of my customers is a public Office and they do security checks on all webpages in their portfolio. Openssl is on a too low version. I currently have v 1.1.1

  14. Started by sva,

    hello guys , hello guys , i watch video about make mx_routing with gsuite, i try everything but i got this message's when try receiving mails : and from gmail : 554 5.4.0 Error: too many hopse

  15. When i send an email, i have a PTR record for my hostname server.domain.com it has IP 192.168.0.1 (not real IP, but i dont want to publish my server IP) I also have an addon IP address 192.168.0.2 IPs and hostname is changed to make this simple. When i send an email it uses the 192.168.0.2 IP address and not the one for the hostname, this has the "wrong" PTR record, and so gmail blocks the email because its not "correct" ptr and several other parameters. How do i change this so it doesnt happen? server sends around 1000-2000 mail a day and about 50-100 are blocked. this is quite irritating that it does not use hostname and server IP in CWP for sending email.…

  16. Started by torettos,

    Hello Sandeep, i have a sоme questions for this "fast, free and open-source spam filtering system": Rspamd I fund this theme in CWP forum (from Netino) how to install and configurated with CWP ... the steps is actuals? Did you have experience and observation with this spam system? Do you recommend it? Thank you in advance and have a nice day!

      • Thanks
    • 11 replies
    • 2.2k views
  17. Started by Fidolas,

    I've noticed a very large log file into /usr/local/cwp/php71/var/log/php-fpm.log Does anyone knows how to setup a logrotate entry to keep that log and others on that folder under control? Thanks in advance!

  18. Started by sal83,

    Hi - i started the shared hosting server with 200 GB SSD VPS using CWP Pro. It is a LVM disk so vertically exapndable - i have now got some clients and want to exand the disk to 2 TB - I have expanded the VPS VM storage on proxmox. How does that reflect in CWP - CWP is still shwoing 200GB.

    • 1 reply
    • 6.7k views
  19. Hi - I have enabled Apaxche/NGINX/Varnish/PHP-FPM with Redis, Mongo, PGSQL, NodeJs and Memcached on the server. I want to provide SSH access to the clients for them to run CLI commands. What security controls should i establish on the server to harden before providing SSH access? I understand REDIS etc. might require specific hardening before providing SSH access to end clients. Kindly advise.

    • 3 replies
    • 6.4k views
  20. HI, Dear guys please guide me on how to install Snort or alternatively intrusion system in cwp admin for mitigate the attack an sql injection please thank you very much.

  21. Hi - I am on CWP 7 (NGINX/Apache/PHP-FPM/Varnish) I have enabled redis and memcache toggle for both php and php-fpm selectors (php 8.1). The toggle informtaion shows that redis server will be downloaded and installed. In earlier versions it used to be save and build but in my version it just shows save. After saving, when i go to the domain wordpress which is under php 8.1, and try using redis plugin it is not detecting redis. It is showing below errors: ======================== Redis is unreachable: Connection refused [tcp://127.0.0.1:6379] Status: Not enabled Filesystem: Writeable Redis: Unreachable Status: Not enabled …

  22. Started by sal83,

    Noob here. Is there any way for the hosting client to select varnish for their domain. In my set up varnish is not default server set up. I understand admin has to enable varnish for domain under domain configuration. Is there any way a end client can select Varnish reverse proxy in their client panel (@ :2083)?

  23. rDNS/PTR = svr.miservidor.com Querido Sandep, ¿cómo estás? Tengo un problema y no entiendo la lógica. Antes mis clientes se conectaban a través de Thunderbird con la siguiente configuración Servidor entrante: mail.myclient.com Usuario: usuario1@myclient.com Puerto Imap: 993 Servidor saliente: mail.myclient.com Usuario: usuario1@myclient.com Puerto SMTP: 465 pero de un momento a otro dejo de funcionar mail.myclient.com (dejo de funcionar) ahora solo funciona con esta entrada y salida svr.myserver (ahora solo funciona este) Gracias

      • Like
    • 6 replies
    • 12.3k views
  24. In this tutorial I’ll explain and provide solution script upon how you can clear all log files including old logs from CWP server. This tutorial is specially dedicated to the blog visitors who have emailed me to provide such solution. This script will clean all possible logs without affecting any service. Ensure you’ve logged in as root ssh user Solution 1 : Run CWP script to clean logs : /scripts/clean_all_server_logs Solution 2: To clear the log instantly you can run this bash script as i already created for your to make the task faster or else if you want to create by your own go to solution 3. curl -s -L https://www.alphagnu.com/upload/cle…

  25. Started by torettos,

    Hello Sandeep, i have a sоme questions for this module: PageSpeed Module Has it been tested with CWP and if so, which module should be installed - Apache or Nginx (for Nginx & Varnish & Apache configuration)? Did you have experience and observation with this module? Do you recommend it? Thank you in advance and have a nice day!

      • Like
    • 4 replies
    • 2.9k views