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

Pages: [1]
1
Addons / Featured - IP Auto Updater
« on: May 15, 2019, 03:59:37 PM »
Well here I go, because I'm want to know if there is any way for the panel to update the ip when it gets a new ip!?
For example, when machine or panel reboots, and get a new public IP adress!
I want to know if there is already a solution for this, if there is any practical solution for this, without having to edit the files manually when the server updates the ip.
I can create a script that does it automatically!
Is there any possibility of implementing this !?
Thanks in advance!
This topic will be updated in the future!

2
Hi guys,
And hello everyone.
Well, I have been experiencing problems with my CWP, in which my httpd service does not start!
Initially problem show's me that:
Code: [Select]
May 14 12:58:01 webserverhousingdata.dynu.net systemd[1]: Starting Web server Apache...
May 14 12:58:01 webserverhousingdata.dynu.net apachectl[15924]: httpd: Syntax error on line 511 of /usr/local/apache/conf/httpd.conf: Syntax error on line 4 of /usr/local/apache/conf/sharedip.conf: Expected 500> but saw
May 14 12:58:01 webserverhousingdata.dynu.net systemd[1]: httpd.service: control process exited, code=exited status=1
May 14 12:58:01 webserverhousingdata.dynu.net systemd[1]: Failed to start Web server Apache.
May 14 12:58:01 webserverhousingdata.dynu.net systemd[1]: Unit httpd.service entered failed state.
May 14 12:58:01 webserverhousingdata.dynu.net systemd[1]: httpd.service failed.
a my full config  its in /usr/local/apache/conf/sharedip.conf
Code: [Select]
<VirtualHost  XXx.XXX.XX.XX:8181>
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html> XXx.XXX.XX.XX:8181>
    ServerName  XXx.XXX.XX.XX
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin info@centos-webpanel.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
    <Proxy "*">
        <IfModule mod_security2.c>
            SecRuleEngine Off
        </IfModule>
    </Proxy>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>$
    RewriteCond %{HTTP_HOST} ^webmail.
    RewriteRule ^/(.*) http://%{HTTP_HOST}:2095/$1 [P]
</VirtualHost>
<Directory "/">
        AllowOverride All
        Require all granted
</Directory>
that was giving me problems. So, I searched and replaced the configs in my file with this --> "https://forum.centos-webpanel.com/apache/apache-error-after-rebuild/"
like this
Code: [Select]
# NameVirtualHost  XXx.XXX.XX.XX:8181 # Deprecated
<VirtualHost  XXx.XXX.XX.XX:8181>
    ServerName  XXx.XXX.XX.XX
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin infoooooas@centos-webpanel.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
</VirtualHost>
<Directory "/">
        AllowOverride All
        Require all granted
</Directory>

After that, I rebooted the machine, the problem seemed partially solved, appeared to me another error, this time anything half bizarre ...
Code: [Select]
May 14 13:04:35 webserverhousingdata.dynu.net systemd[1]: Starting Web server Apache...
May 14 13:04:35 webserverhousingdata.dynu.net apachectl[17705]: httpd: Syntax error on line 512 of /usr/local/apache/conf/httpd.conf: Syntax error on line 4 of /usr/local/apache/conf.d/system-redirects.conf: Expected 500> but saw
May 14 13:04:35 webserverhousingdata.dynu.net systemd[1]: httpd.service: control process exited, code=exited status=1
May 14 13:04:35 webserverhousingdata.dynu.net systemd[1]: Failed to start Web server Apache.
May 14 13:04:35 webserverhousingdata.dynu.net systemd[1]: Unit httpd.service entered failed state.
May 14 13:04:35 webserverhousingdata.dynu.net systemd[1]: httpd.service failed.
First I'll show you the image of my "system-redirects.conf"


And now I show my setup of /usr/local/apache/conf.d/system-redirects.conf
Code: [Select]
Redirect permanent /myadmin http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/pma
Redirect permanent /MyAdmin http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/pma
Redirect permanent /phpmyadmin http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/pma
Redirect permanent /phpMyAdmin http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/pma
Redirect permanent /kpanel http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/
Redirect permanent /cwp http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2082/
Redirect permanent /isp http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/
Redirect permanent /cpanel http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2082/
Redirect permanent /scwp https://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2083/
Redirect permanent /controlpanel http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2082/
Redirect permanent /securecontrolpanel https://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2083/
Redirect permanent /securewhm https://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2031/
Redirect permanent /whm http://<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@centos-webpanel.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>:2030/
I was looking for it, after all I had an option to "restore" -> to default values, and that's what I did.
At the bottom of this section you have this option
Like in image below:


And voila! What is the status of my "httpd" service?
Its working for now:


3
Suggestions / Allow user to create domain/SubDomain with SSL
« on: April 03, 2018, 06:12:55 PM »
I wonder if the technology was not given to the user, will it be for security reasons?

Allow user to create domain and SubDomain with SSL, its fundamental...
I am writing here now, that the efforts of the CWP DEVELOPERS have done an excellent job.
With the simple fact of incorporating Lets Encript to free SSL Encryption, and better still is that the administrator can generate XX domains / Subdomains for their clients with SSL certificate that simply works!

Pages: [1]