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
Nginx / Re: vHost conf file keeps reseting to the orig, tpl file has some errors
« on: January 12, 2022, 08:44:40 AM »
Why there is an editor there if the admin is not supposed to change the vHost file? The editor gives you a sense that you can edit it and it stays there! On the other hand, an static viewer gives you a sense that you can just see the contents and there is another way to edit it!
When I apply the custom templates via the "WebServers Domain Conf" page, I get 50x error. I can not restart apache if I select the default all_methods template. The spacing in that file is not correct. I only described one scenario for Nginx_apache, I have other problems on another VM where I try to change the Nginx vhost conf for my NodeJS app.
Lets just repeat that if I clone the default tpl file without any changes, I can not make it work. I've tried both "Nginx -> apache -> PHP-CGI" and "Nginx -> apache -> proxy" option. Maybe you need to give it a try yourself and give me more insights. Please note that I dont have php-fpm. I am using php switcher v2.
When I apply the custom templates via the "WebServers Domain Conf" page, I get 50x error. I can not restart apache if I select the default all_methods template. The spacing in that file is not correct. I only described one scenario for Nginx_apache, I have other problems on another VM where I try to change the Nginx vhost conf for my NodeJS app.
Lets just repeat that if I clone the default tpl file without any changes, I can not make it work. I've tried both "Nginx -> apache -> PHP-CGI" and "Nginx -> apache -> proxy" option. Maybe you need to give it a try yourself and give me more insights. Please note that I dont have php-fpm. I am using php switcher v2.
2
Nginx / vHost conf file keeps reseting to the orig, tpl file has some errors
« on: January 11, 2022, 07:55:54 PM »
I am using Apache-Nginx as the webserver. I want to allow all the HTTP methods (PUT, DELETE) on a host by changing the vHost file. When I change that via the "WebServers Configuration Editor" to add a line, it reverts to the template file after a while.
I tried adding a configuration via the "Manage WebServers Configuration" page, but the "All_methods" tpl file does not work. I can't successfully restart the httpd service, it complains about the conf file. I tried cloning the default tpl file to create my own template, but I can't make it work with my web current web serv Apache_nginx.
As the last option, I tried to edit the default.tpl and default.stpl file, it worked but I am just surprised that its back to the orig file now!
I tried adding a configuration via the "Manage WebServers Configuration" page, but the "All_methods" tpl file does not work. I can't successfully restart the httpd service, it complains about the conf file. I tried cloning the default tpl file to create my own template, but I can't make it work with my web current web serv Apache_nginx.
As the last option, I tried to edit the default.tpl and default.stpl file, it worked but I am just surprised that its back to the orig file now!
3
Nginx / Re: Nginx service start error during boot on Rocky Linux
« on: November 19, 2021, 10:42:45 PM »
nginx: [emerg] bind() to x.x.x.x:80 failed (99: Cannot assign requested address)
4
Installation / Re: Apache start Error after selecting Nginx/Apache WS, fresh Rocky Linux Install
« on: November 12, 2021, 06:24:27 PM »
Another update: installing the "Development Tools" using the dnf package manager before selecting the nginx/apache as the webserver fixes this issue! to do that, execute:
dnf group install "Development Tools"
dnf group install "Development Tools"
5
High Performance / node_manager proxy pass should be defined in nginx when nginx/apache is selected
« on: November 12, 2021, 03:40:47 PM »
I am using node manager to run a node.js app and noticed that its using apache's mod_proxy to reverse proxy to the node app. I've selected nginx/apache as the webserver and I guess it would be better if the reverse proxy is defined in the nginx vhost conf, not apache! Thats how I did it manually in the past without the manager.
CWP version: 0.9.8.1099
CWP version: 0.9.8.1099
6
Nginx / Nginx service start error during boot on Rocky Linux
« on: November 12, 2021, 11:10:34 AM »
I had to follow this guide https://stackoverflow.com/a/59790128/14210318
7
MySQL / /etc/my.cnf.d/server.cnf is messed up after saving the settings in mysql_manager
« on: November 12, 2021, 11:04:58 AM »
After saving the configs (changing bind-address) at the settings page in mysql_manager, mysql failed to restart, checked the contents of /etc/my.cnf.d/server.cnf and saw that the setting is like this
[server]
= 3306
I had to add "port" to this line to start the mysql (mariadb 10.4.22) again:
[server]
port = 3306
[server]
= 3306
I had to add "port" to this line to start the mysql (mariadb 10.4.22) again:
[server]
port = 3306
8
Installation / Re: Apache start Error after selecting Nginx/Apache WS, fresh Rocky Linux Install
« on: November 12, 2021, 10:54:13 AM »
After commenting the contents of rpaf.conf and starting apache, I set the the webserver back to apache, then enabled the apache_nginx webserver again and this time the mod_rpaf.so gets installed! This seems to be the quick fix for now. I can uncomment the contents of rpaf.conf and restart apache.
Here is part of the install log after re selecting the Nginx/apache
Nginx installation Done
...
/usr/lib64/apr/build-1/libtool --mode=install install mod_rpaf.la /usr/local/apache/modules/
libtool: install: install .libs/mod_rpaf.so /usr/local/apache/modules/mod_rpaf.so
libtool: install: install .libs/mod_rpaf.lai /usr/local/apache/modules/mod_rpaf.la
libtool: install: install .libs/mod_rpaf.a /usr/local/apache/modules/mod_rpaf.a
libtool: install: chmod 644 /usr/local/apache/modules/mod_rpaf.a
libtool: install: ranlib /usr/local/apache/modules/mod_rpaf.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(
manual pages.
----------------------------------------------------------------------
Here is part of the install log after re selecting the Nginx/apache
Nginx installation Done
...
/usr/lib64/apr/build-1/libtool --mode=install install mod_rpaf.la /usr/local/apache/modules/
libtool: install: install .libs/mod_rpaf.so /usr/local/apache/modules/mod_rpaf.so
libtool: install: install .libs/mod_rpaf.lai /usr/local/apache/modules/mod_rpaf.la
libtool: install: install .libs/mod_rpaf.a /usr/local/apache/modules/mod_rpaf.a
libtool: install: chmod 644 /usr/local/apache/modules/mod_rpaf.a
libtool: install: ranlib /usr/local/apache/modules/mod_rpaf.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(

----------------------------------------------------------------------
9
Installation / Apache start Error after selecting Nginx/Apache WS, fresh Rocky Linux Install
« on: November 12, 2021, 10:36:02 AM »
After setting the web server to Nginx/apache on multiple fresh Rocky Linux installs (v8.4 kernel 4.18.0-305.25.1.el8_4.x86_64), apache fails to start because mod_rpaf.so in not in /usr/local/apache/modules/ and I have to comment the contents of /usr/local/apache/conf.d/rpaf.conf
CWP version: 0.9.8.1099
Apache version: Apache/2.4.51
Web Servers: nginx-apache
CWP version: 0.9.8.1099
Apache version: Apache/2.4.51
Web Servers: nginx-apache
10
Information / A video to endorse CWP as a free replacement for paid control panels
« on: October 07, 2020, 04:13:08 PM »
Here is a video created to promote CWP as an alternative for paid control panels like cPanel, DirectAdmin, Plesk, etc. Thanks for all the development and support. Just wanted to share it with the community.
https://www.youtube.com/watch?v=mJj1cCFkogE
https://www.youtube.com/watch?v=mJj1cCFkogE
11
CentOS-WebPanel GUI / Clearing the log files
« on: August 12, 2020, 01:51:39 PM »
Is there a way to clear the log files? When I check access and Error logs, I want to clear them to see if the errors are regenerated again.
Also the formatting is not very good, there is no line breaks in the log file viewer. Some coloring is also nice!
Also the formatting is not very good, there is no line breaks in the log file viewer. Some coloring is also nice!
12
CentOS-WebPanel GUI / Re: Disable default admin notifications for CSF, Monit, ModSecurity
« on: August 12, 2020, 01:47:01 PM »
Still being annoyed by these notifs!
13
Apache / Re: How to Enable PUT and DELETE http methods?
« on: August 12, 2020, 01:44:12 PM »
Open WebServers Configuration Editor in CWP admin,
Move to "Apache" tab
Move to "/usr/local/apache/conf.d/vhosts" tab
Edit the conf file of the domain
add this to the <Directory "/home/username/public_html"> section:
Require method GET POST PUT OPTIONS DELETE
be careful with the spacing and enters!
Restart Apache in the dashboard
Move to "Apache" tab
Move to "/usr/local/apache/conf.d/vhosts" tab
Edit the conf file of the domain
add this to the <Directory "/home/username/public_html"> section:
Require method GET POST PUT OPTIONS DELETE
be careful with the spacing and enters!
Restart Apache in the dashboard
14
CentOS-WebPanel GUI / Disable default admin notifications for CSF, Monit, ModSecurity
« on: July 28, 2020, 01:22:34 PM »
There should be a setting to disable the notifications for CSF firewall, Monit, ModSecurity since I dont want to install them at all on some instances and every time I login to the admin area some notifs pops up.
15
CentOS-WebPanel Bugs / Re: File Manager not working with user panel.
« on: June 04, 2020, 06:36:42 PM »
I have just installed the latest version on Centos 7 and I have the same problem. Some resources wont load (404 error) in the code editor.
Pages: [1]