Important files and directories on the VPS

MooseLucifer

Well-known member
Registered
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.
 

Marc A

Well-known member
Registered
Joined
Jun 14, 2016
Messages
125
Points
18
Thanks man! Loving the post :)!
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
@MooseLucifer you should add this is the classic configuration for a web server with mysql and apache.

With mariadb there are already some change and with panels it's wtf. My websites are in /var/www/vhosts/nameofvhosts/httpdocs/

And I don't even talk about the php ^^
 
Newer Threads
Replies
25
Views
16,459
Replies
15
Views
6,741
Replies
7
Views
3,372
Replies
10
Views
3,869
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top