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
Information / Re: Website in Hostname
« on: April 26, 2025, 04:16:00 AM »Server webroot is /usr/local/apache/htdocs/
serving /usr/local/apache/htdocs/index.html by default.
Thanks for your reply!
2
Information / Website in Hostname
« on: April 25, 2025, 06:21:50 PM »
Hi,
I have a question about setting up websites on subdomains - especially the server hostname.
Let’s say:
I’ve set server.domain.com as my server’s hostname (used for the panel, like CWP panel).
I also have other subdomains like shop.domain.com, portfolio.domain.com, etc., added for users or websites.
Now, I want to know:
👉 Where do I store the website files for the hostname subdomain (server.domain.com)?
I want it to show a website when someone visits https://server.domain.com/.
I don't want it to render the demo page of CWP Panel.
Is there a specific path for this?
Many thanks for considering my request.
I have a question about setting up websites on subdomains - especially the server hostname.
Let’s say:
I’ve set server.domain.com as my server’s hostname (used for the panel, like CWP panel).
I also have other subdomains like shop.domain.com, portfolio.domain.com, etc., added for users or websites.
Now, I want to know:
👉 Where do I store the website files for the hostname subdomain (server.domain.com)?
I want it to show a website when someone visits https://server.domain.com/.
I don't want it to render the demo page of CWP Panel.
Is there a specific path for this?
Many thanks for considering my request.
3
Installation / Re: How to Lock (and Restore) “Select WebServers” in CWP Panel & SSH
« on: April 11, 2025, 04:45:42 AM »The previous advice was for shell scripts under /scripts -> /usr/local/cwpsrv/htdocs/resources/scripts
To accomplish what you want, in a root shell, edit this file with nano:Code: [Select]nano /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php
insert an exit(0) on the next line after the leading php stanza, before all the encoded PHP code:Code: [Select]<?php //0042b
If you want it to survive a CWP update, you could make it immutable:
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'$
?>
exit(0)Code: [Select]chattr +i /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php
To reverse the process, unset the immutable bit and remove the exit(0) line.
Thanks for your help!
4
Installation / Re: How to Lock (and Restore) “Select WebServers” in CWP Panel & SSH
« on: April 10, 2025, 05:55:20 PM »You could probably move the switcher script to another place to hide it (from yourself?), but each CWP update may restore it. Or you could always put an exit 0 line under the shebang line of script to make it inert (again, each CWP update may reset the change):Code: [Select]#!/bin/bash
exit 0
Can you provide the path to that file?
5
Installation / How to Lock (and Restore) “Select WebServers” in CWP Panel & SSH
« on: April 10, 2025, 07:06:36 AM »
Hi all,
I’m running CWP Free (on AlmaLinux 8.10) and I’d like to lock down the "Select WebServers" option to prevent any accidental changes - both from the GUI and via SSH.
My current setup (Apache + Nginx + Varnish) is stable, and I want to:
Essentially, I want to enforce a kind of “freeze” mode for the web server stack, and later be able to toggle it off safely without breaking anything.
Any guidance or script-based methods to:
Thanks a ton in advance!
I’m running CWP Free (on AlmaLinux 8.10) and I’d like to lock down the "Select WebServers" option to prevent any accidental changes - both from the GUI and via SSH.
My current setup (Apache + Nginx + Varnish) is stable, and I want to:
- Disable or hide the "Select WebServers" section in the CWP admin panel.
- Prevent changes via SSH, such as running the web server switch scripts or reinstallation commands.
- Have a safe and clean method to unlock or restore this functionality when I intentionally want to make a change in the future.
Essentially, I want to enforce a kind of “freeze” mode for the web server stack, and later be able to toggle it off safely without breaking anything.
Any guidance or script-based methods to:
- Make the web server configuration unchangeable (GUI + SSH)?
- Re-enable it cleanly without reinstalling CWP or the stack?
Thanks a ton in advance!
Pages: [1]