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

Pages: 1 2 3 [4] 5 6
46
Information / Bandwidth monitor with historic
« on: February 18, 2022, 10:00:15 AM »
I think CWP should have a Bandwidth monitor not like the current one that only show the current bandwidth consumption but something like vnstat, that shows a log of consumption but month, by day and even by hour.

This is really useful, for example I have enabled remote backup and I don't have any idea how much data it being sent every day.

47
Backup / There are any backup logs?
« on: February 16, 2022, 09:30:32 AM »
I'm using the old backup system with remote backups (via ssh with rsync), there are any backup logs? I want to know how many time takes to do the backup, to calculate the transfer speed between both servers.

Another doubt the backup will be duplicated (in current server and in the remote server) or it will only send to the remote server and erase it on the current one?

49
The default PHP version on my server is PHP 7.3 I want to update it to 8.0 or 8.1, but since I have lots of websites most of them are using the current default version I want to keep that websites with the current version. There are any way to do that automatically?

Some websites are already using a custom php version, that websites will be not affected by this, but the ones that don't set a custom php version I need to force to set version 7.3 before uptade the default php to 8.1

50
Thank you for your report.
This is fixed for our next version

Perfect, thank you.

I have only a question do you plan to add to the client panel any way to edit the apache/nginx template used by a domain? For example a Laravel website required a different root folder and I need to do that everytime from my admin panel, I don't know if this can cause any security issue or not it's only a question.

if the user can choose from the pre-made templates yes, but editing them, no. i believe this would be a major security issue. All the work an administrator have done to secure unauthorized use of htaccess and php can be undone if the user can edit the content of the templates

Yes I was talking about select from the pre-made templates not create a custom one, only select between some pre-made templates

51
Thank you for your report.
This is fixed for our next version

Perfect, thank you.

I have only a question do you plan to add to the client panel any way to edit the apache/nginx template used by a domain? For example a Laravel website required a different root folder and I need to do that everytime from my admin panel, I don't know if this can cause any security issue or not it's only a question.

52
CentOS-WebPanel Bugs / In client panel "Fix Account Issues" not working
« on: January 26, 2022, 11:36:25 AM »
I saw that in client panel we have a new option called "Fix Account Issues" but when I click on it I get this error in a blank page "Error, module does not exist"

How can I fix this?

53
Apache / Re: WebServers Domain Configuration Reset
« on: January 16, 2022, 09:55:25 AM »
Confirm the content of this file is the same as the configuration you have done through "WebServer Domain Conf"
Code: [Select]
/home/USER/.conf/webservers/DOMAIN.conf.

If they are but getting overwritten back to default after a while, then there is an extreme method you can test which is to stop everything from touching that file;
with SSH
chattr +i /home/USER/.conf/webservers/DOMAIN.conf

At the moment I have this on that file:
{
    "nginx_template-type": "default",
    "nginx_template-name": "laravel-force-https",
    "apache_template-type": "default",
    "apache_template-name": "laravel",
    "nginx": true,
    "php-cgi": true,
    "apache-additional": true
}

And it's working, this is a very strange bug, I saw lots of posts on the forum about the same, and any official solution.

Make sure you rebuild the vhosts, and then lock the file for good measure as I mentioned in my post.
Remember, you need to unlock the file with "chattr -i" before doing changes and then lock it again after confirming the content.

Yes I can lock it but this is not the correct approach, the correct approach is someone fix this annoying problem, there are lots of people complaining about the same and we get not answers from CWP team.

(...)
At the moment I have this on that file:
{
    "nginx_template-type": "default",
    "nginx_template-name": "laravel-force-https",
    "apache_template-type": "default",
    "apache_template-name": "laravel",
    "nginx": true,
    "php-cgi": true,
    "apache-additional": true
}

And it's working, this is a very strange bug, I saw lots of posts on the forum about the same, and any official solution.

Did you try to check if you reall have .tpl and .stpl files.?

Use the command:
Code: [Select]
find /usr/local/cwpsrv/htdocs/resources/conf/web_servers | grep laravel



Yes I have the .tpl and .stpl, I have lots of domains working this problem only occurs for new domains with custom vhost and in that case the vhost revert to default during the next night, then if I change it again for the custom template it works and don't change anymore

54
Apache / Re: WebServers Domain Configuration Reset
« on: January 15, 2022, 10:46:40 AM »
I don't know if is really the same problem as yours, but I had this type of problem when forgetting to check the mark "Rebuild WebServers conf for domain on save".

Did you already checked the content of the configuration file?:
Code: [Select]
# cat /home/user/.conf/webservers/DOMAIN.conf

At the moment I have this on that file:
{
    "nginx_template-type": "default",
    "nginx_template-name": "laravel-force-https",
    "apache_template-type": "default",
    "apache_template-name": "laravel",
    "nginx": true,
    "php-cgi": true,
    "apache-additional": true
}

And it's working, this is a very strange bug, I saw lots of posts on the forum about the same, and any official solution.

55
Apache / Re: WebServers Domain Configuration Reset
« on: January 14, 2022, 11:49:23 AM »
In my server I already implement this changes by creating the templates for Laravel.

The problem is that sometimes the server lose the selection of that templates.

Usually change to the default template the last domain that I configure with a custom template.

I have 2 server and both have the same problems, yesterday I have created in both servers a website with the laravel template, everything works great, today in both server the website stop working, after I checked the I saw that the configurations return to the default value, the other older domains that also use the custom template still working great.

56
Apache / WebServers Domain Configuration Reset
« on: January 10, 2022, 09:57:04 AM »
I work with multiple Laravel websites on my server so I have created a template for apache and nginx to handle laravel instalations, after I create a new domain I go to "WebServers Domain Conf" and set a custom template, everything works well but sometimes without any reason some domians lose that custom template, this is really strange.

Any tips?

For example I can have an account with 3 domains with custom template most of the times the only one of that domains will be reset to the initial template, usually this happens more in new domains, I add a new domain create add the custom template everything work and 1 ou 2 days later it lose that custom template and return to de default

57
Installation / New server which OS do you recommend
« on: November 12, 2021, 02:22:38 PM »
I have production server with Centos 7 and I need to buy a second server should I stay with Centos 7?

I have read that RockyLinux also works, at this moment what do you guys recommend?

Other question it will be possible to update Centos 7?

58
Information / Re: Best prctice to use multiple domains
« on: November 12, 2021, 09:28:08 AM »
You should create multiple accounts.
Wordpress websites are attacked very often, if you have all in the same user account, one bad script will have access to all other domains.

59
Apache / Create httpd template to automatically add admin subdomain
« on: May 16, 2021, 10:18:38 PM »
I want to create a httpd template that automatically add a "admin" subdomain and want that the SSL create the certificates to the main domain and to the subdomain.

I'm working with Yii2 framework for website development and I have the code separated in 2 folders frontend and backend, I want to install the website with a domain like example.com and use a template to automatically create the admin.example.com that will point to the backend folder.

I already have a template for this type of structure but usualy I access like example.com/backend but this client want to use admin.example.com, how can I manage to do that. This website will required to have ssl from Let's Encrypt.

This is my current template without the admin subdomain
Code: [Select]
<VirtualHost %ip%:%apache_port%>
ServerName %domain_idn%
%domain_aliases%
ServerAdmin webmaster@%domain%
DocumentRoot %docroot%/frontend/web
UseCanonicalName Off
ScriptAlias /cgi-bin/ %docroot%/cgi-bin/
    Alias /backend/ %docroot%/backend/web/

CustomLog /usr/local/apache/domlogs/%domain%.bytes bytes
CustomLog /usr/local/apache/domlogs/%domain%.log combined
ErrorLog /usr/local/apache/domlogs/%domain%.error.log

# Custom settings are loaded below this line (if any exist)
# IncludeOptional "/usr/local/apache/conf/userdata/%user%/%domain%/*.conf"

<IfModule mod_setenvif.c>
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
</IfModule>

<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled %user%
</IfModule>

<IfModule mod_suexec.c>
SuexecUserGroup %user% %group%
</IfModule>

<IfModule mod_suphp.c>
suPHP_UserGroup %user% %group%
suPHP_ConfigPath %home%/%user%
</IfModule>

<IfModule mod_ruid2.c>
RMode config
RUidGid %user% %group%
</IfModule>

<IfModule itk.c>
AssignUserID %user% %group%
</IfModule>

<Directory "%docroot%/frontend/web">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
    <Directory "%docroot%/backend/web">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>

</VirtualHost>

60
I have PHP 7.3 set as default I want to change it to PHP 8  but I have multiple websites that work well with 7.3 and I don't want to check if every websites works with php 8.
So there are way to change the server default PHP but keep all the old websites with the PHP 7.3?

Pages: 1 2 3 [4] 5 6