How To Find Default Paths in ORIV
This guide provides detailed information on how to find default paths for PHP, Nginx, MySQL, and other related configurations on an ORIV server.1. Site Path
The site path is where the files for each of your websites are stored. This directory typically contains the website’s HTML, PHP scripts, images, and other assets needed to display and run the site. Keeping your site files organized and accessible in this directory makes it easier to manage and update your site. For most setups on ORIV, the standard site path is:- Site Path:
This location is commonly used because it keeps site files separate and organized under the /var/www directory, which is a conventional location for web files on Linux servers.
2. NGINX Configuration Path
Nginx is a powerful and popular web server used to serve websites and applications. Each website that Nginx serves typically has its own configuration file, which contains settings such as server names, root directories, and proxy configurations. These configuration files are stored in the following path:- Nginx Config Path:
After creating or modifying a configuration file in this directory, you usually create a symbolic link in the /etc/nginx/sites-enabled/ directory to activate the site.
3. PHP FPM Pool Configuration
PHP FastCGI Process Manager (FPM) is a PHP handler that allows for faster processing and better performance by managing pools of PHP workers. Each site or application can have its own FPM pool configuration, which specifies settings like the number of child processes, memory limits, and execution timeouts. These pool configuration files are located in:- PHP FPM Pool:
4. Find Default Paths for PHP INI Configuration
The php.ini file is the main configuration file for PHP. It sets important options such as memory limits, file upload sizes, and execution time. There are separate php.ini files for different execution contexts: one for PHP-FPM (used by web servers like Nginx) and another for the CLI (Command Line Interface). The paths for these files are: For NGINX- FPM Configuration:
- CLI Configuration:
5. Find Default Paths for SSL Certificates
SSL certificates are essential for securing the connection between a user’s browser and your server. Certificates can come from different sources, such as Let’s Encrypt, which provides free SSL certificates, or custom providers like Cloudflare. The paths to these certificates vary depending on the source:- Let’s Encrypt Certificates:
- Custom, Cloudflare, or Other Certificates:
6. Log File Paths
Log files are vital for monitoring and troubleshooting server operations. They record information about server access, errors, and other events, providing insights into server performance and identifying issues. Common log file paths include:Debug Log:
Nginx Log:
Nginx Access Log:
Nginx Error Log:
MySQL Log:
7. 7G Firewall Configuration
The 7G Firewall is a set of rules designed to protect web servers from common threats like spam, SQL injection, and other malicious attacks. Configuration files for the 7G Firewall on an ORIV server can be found here:General 7G Configuration:
Site-Specific 7G Configuration:
8. Site Backup Path
Backing up your site is crucial to prevent data loss. On ORIV servers, backups are typically stored in a hidden directory under the root user’s home directory:Backup Path:
9. Redis User File Location
Redis is a popular in-memory data structure store used as a database, cache, and message broker. On ORIV servers, user access control for Redis is managed using the users.acl file:Redis User File:
10. Cron job List Path
Cron jobs are scheduled tasks that run automatically at specified intervals. They are useful for automating repetitive tasks such as backups, updates, and maintenance. The list of cron jobs is typically stored in:Cronjob List Path:
