Technical guide for Hovixa users on operating the cPanel File Manager. Covers Unix file permissions (chmod) configuration, server-side archive extraction, and revealing hidden dotfiles.

File Manager Essentials: Permissions, Extraction, and Hidden Files

The cPanel File Manager provides a direct, web-based interface to your server's file system, bypassing the need for FTP/SSH for routine operations. This guide covers the critical functions required to manipulate files and secure directories within your Hovixa hosting environment.

1. Viewing Hidden Files (Dotfiles)

By default, Linux environments hide files and directories beginning with a dot (e.g., .htaccess, .env, .trash). These files dictate server configuration and environment variables. You must explicitly enable their visibility to manage your application's routing and security properly.

Configuration Steps:

  1. Log in to cpanel.hovixa.com and open File Manager.
  2. Click the Settings button in the top-right corner of the interface.
  3. Check the box for Show Hidden Files (dotfiles).
  4. Click Save.

Implementation Detail: Failing to enable this setting guarantees you will blindly overwrite existing .htaccess files when extracting archives or uploading CMS directories, immediately breaking site routing.

2. Archive Extraction

Uploading thousands of uncompressed files via HTTP or FTP is highly inefficient due to TCP overhead. The analytically correct method is to upload a single compressed archive and extract it server-side.

Supported Formats:

  • .zip (Standard web deployment)
  • .tar, .tar.gz, .tar.bz2 (Required for preserving strict Unix file ownership and permissions during transfer)

Extraction Steps:

  1. Upload the archive to the target directory (e.g., /public_html).
  2. Right-click the archive file and select Extract (or use the top toolbar).
  3. Verify the extraction path in the prompt. Modify if necessary to prevent extracting into an unintended subfolder.
  4. Click Extract File(s).

Edge Case: The cPanel extractor silently overwrites existing files with identical names. Ensure your archive directory structure matches your target layout perfectly, or you will destroy production configurations.

3. Managing Unix File Permissions (chmod)

File permissions dictate at a kernel level who can read, write, or execute files on the Hovixa server. cPanel uses standard three-digit octal notation representing User (Owner), Group, and World (Public).

The Octal System:

  • Read (r): 4
  • Write (w): 2
  • Execute (x): 1

Permissions are the exact mathematical sum of these values. Read + Write = 6. Read + Execute = 5.

Standard Secure Configurations:

  • Directories: 755 (User: rwx, Group: rx, World: rx). Required so the web server process can execute (enter) the directory and read its contents.
  • Standard Files: 644 (User: rw, Group: r, World: r). Allows the web server to read the file and serve it to the public, while only the owner maintains write privileges.
  • Configuration Files (e.g., wp-config.php, .env): 400 or 440. Strict lockdown. Removes world read access entirely.

Modifying Permissions:

  1. Select the target file or folder in File Manager.
  2. Click Permissions in the top toolbar, or right-click and select Change Permissions.
  3. Adjust the checkboxes or directly input the integer (e.g., 644) into the text fields.
  4. Click Change Permissions.

Fatal Flaw: Never set permissions to 777. This grants global write access, allowing any process or user on the server to execute malicious payloads. Furthermore, a 500 Internal Server Error often indicates overly permissive file permissions triggering server security modules to intentionally crash the process.

Was this answer helpful? 0 Users Found This Useful (0 Votes)