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 ... 3 4 [5] 6 7
61
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>

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

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

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

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

66
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

67
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

68
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

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

70
I have multiple servers and I have updated 2 of them, now I have the same error on both everytime I tried to restart any service.

I get the following error:
Code: [Select]
Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

Why we get this error? And what is the solution?

71
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: June 05, 2020, 12:28:39 PM »
Try to think.. I know it's difficult.
Ioncube is needed for CWP encoded files.  >:(

Why the desperation for bleeding edge? Servers are about stability and security (unless running CWP  :o )
"..PHP 7.4 was releases 5 or 6 months ago.." Bloody hell! A whole half a year, you gotta be kidding. /sarcasm

In my case I have multiple websites build with Laravel that use an module that requires PHP 7.4.

I think CWP can run PHP 7.3 but we have the option to enable  php 7.4 on user websites, it don't need the default php version.

Also in web development and tecnology in general 6 months it's a huge amount of time usually for example SO release a major update every year, in about 5 months we will have php 8, there are always new things appearing

72
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: June 04, 2020, 10:25:19 PM »
AFAIK ioncube is still not available on PHP 7.4 on CPANEL also as of today. But most of the sites do not use ioncube so I see no harm in releasing 7.4 without ioncube just like what cpanel did.
Exactly most of the people don't  use ioncube, CWP should release PHP 7.4 without ioncube support, but should release it.

I think almost all control panel already support it. If ioncube never release an update we will be stuck the rest of the life with version 7.3...

73
PHP Selector / Re: How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: May 29, 2020, 10:31:02 AM »
Any news about this?

PHP 7.4 was releases more than 6 months ago and CWP don't support it yet.

74
PHP Selector / How to add PHP 7.4 to PHP Selector 2 (CWP Pro)?
« on: April 19, 2020, 05:18:58 PM »
I really need to run PHP 7.4 on my server but it won't appear on PHP Selector 2, this is very disappointing, PHP 7.4 was releases 5 or 6 months ago and CWP don't support it yet.

Any tips how to install php 7.4 on my server, I don't want to break anything I want to keep multiples versions of php but I need PHP 7.4 for one project.

75
PHP / Re: PHP Version Switcher
« on: April 19, 2020, 05:03:20 PM »
I also want php 7.4 any tips to install it?

Pages: 1 ... 3 4 [5] 6 7