MGT Development Environment - Domains
Basics
Adding a Domain
A new domain can be added by clicking on the button Add Domain top right.
In this form you enter the Domain Name, the Document Root and you select a Vhost Template
and PHP Version for your application.
Deleting a Domain
When you delete a domain, only the vhost and the NGINX and PHP log directories will be deleted,
NOT the Document Root Directory.
Settings
In the settings of your domain, you can change the Document Root for your domain.
Vhost
In the Vhost Editor, you can make changes on the NGINX Vhost, like apply rewrites and redirects.
PHP Settings
In the PHP Settings of your domain, you can change the PHP Version and change other settings like:
- memory_limit
- max_execution_time
- max_input_time
- post_max_size
- upload_max_filesize
The most common settings can be modified to your needs but if you need to change other parameter values you can overwrite them in the Additional configuration directives.
Basic Auth
In the Basic Auth settings of your domain, you can enable and disable Basic Auth.
Logs
In the Log Viewer, you can check the NGINX Access and Error Logs and the PHP Error Log.
Developers who prefer the command line can find the logs in the following directories:
NGINX
- Access Log: /home/cloudpanel/logs/domain.com/nginx/access.log
- Error Logs: /home/cloudpanel/logs/domain.com/nginx/error.log
PHP
- Error Log: /home/cloudpanel/logs/domain.com/php/error.log
To see the last 100 lines of your PHP Error Log, you can use the tail command with the follow option.