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

2
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.

3
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.

4
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

5
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?

6
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.

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

8
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?

9
Information / Re: Mail Delivery Report
« on: September 29, 2020, 10:21:30 AM »
Any news about this feature?

10
E-Mail / Stats about emails sent and received
« on: July 01, 2020, 10:03:38 AM »
I have a problem in my server I have multiple clients and I have no way to check if some is sending spam.
I think CWP should implement some way to check some basic stats about emails, total number os emails sent, total number os emails received, the same for for account or better for email.

Any one knows how can I find this kind of information?

Sometime ago one of my clients set a autoresponder in an email then that email start receiving lots and lots of spam an reply to each spam email with an email, it was hard to find the problem because I don't have any way to see the numbers of emails sent by each account.
Some times a website can be hacked and start sending spam from random emails there are any way to find it?

11
Backup / Backup last 3 days
« on: June 20, 2020, 09:58:05 AM »
I'm using the new Backup system and I can set a daily backup for every day of the week, a weekly and monthly backup.
But there are any way to backup only the last X days?
I don't need a a 7 days backup the last 3 are  enough, my server is with lack of space to hold 7 daily backups + 1 weekly backup + 1 monthly backup.

12
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: June 19, 2020, 09:14:15 AM »
It works now.
I have tried again install php 7.4 and now it works

13
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: June 18, 2020, 09:26:59 AM »
It seems that PHP 7.4 is already available on the panel.
Any news about this update?

I'm already installing it to test

I have installed and not work !

Yes I have the same problem, I'm disappointed. But I hope they fix it quickly

14
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: June 17, 2020, 10:42:12 PM »
It seems that PHP 7.4 is already available on the panel.
Any news about this update?

I'm already installing it to test

15
this is not any error ots some issue with new version of centos 7.8 you can disable secure processes to suppress this message.
How can I disable secure processes?

And why this is not an error? This cause that some processes cannot restart and if they stop we are unable to start it, I think the system should not work like that.

Pages: [1] 2 3