- Joined
- May 20, 2016
- Messages
- 149
- Points
- 28
Here is the list of important files and directories on the VPS
The following folders you will see in administrating a VPS
1. /var/www/html
Is the root directory containing the code to run the web, this folder contains subfolders of the root domain names
Some web control panel to manage hosting as Cpanel, DirectAdmin putted their codes start with /home/ instead of /var/
2. /var/lib/mysql
It is the directory containing the mysql database, mysql directory contains the subdirectory is the name database, you simply create subdirectories, the equivalent of creating a database, but you must assign rights for the owner's subdirectory mysql , group mysql to run
To copy or backup a database you just take the entire contents of the directory contains that database, with the condition that database must be MyISAM format, InnoDB database will be contained in one file out of the folder hence copy whole the folder is not enough. For most of Web applications today, the best way is run MyISAM for more convenient
3. /etc/httpd/
Containing config file for your webserver httpd. If you want to configure more advanced httpd then you edit the httpd.conf file in this folder
4. /etc/my.conf
Contains config files for mysql. If you want to edit the mysqld server, you edit this file
5. /var/log/
It contains the entire system log server, to solve problems, find traces of DDOS, you can view the files in this.
The following folders you will see in administrating a VPS
1. /var/www/html
Is the root directory containing the code to run the web, this folder contains subfolders of the root domain names
Some web control panel to manage hosting as Cpanel, DirectAdmin putted their codes start with /home/ instead of /var/
2. /var/lib/mysql
It is the directory containing the mysql database, mysql directory contains the subdirectory is the name database, you simply create subdirectories, the equivalent of creating a database, but you must assign rights for the owner's subdirectory mysql , group mysql to run
To copy or backup a database you just take the entire contents of the directory contains that database, with the condition that database must be MyISAM format, InnoDB database will be contained in one file out of the folder hence copy whole the folder is not enough. For most of Web applications today, the best way is run MyISAM for more convenient
3. /etc/httpd/
Containing config file for your webserver httpd. If you want to configure more advanced httpd then you edit the httpd.conf file in this folder
4. /etc/my.conf
Contains config files for mysql. If you want to edit the mysqld server, you edit this file
5. /var/log/
It contains the entire system log server, to solve problems, find traces of DDOS, you can view the files in this.