Hostilla.pl FAQ

WWW, PHP, FTP, SSH and Git

Website files, FTP/SFTP, SSH, Git, redirects, .htaccess, PHP and application settings. Answers are based on Hostilla.pl hosting services, cPanel and eTOP infrastructure.

63 questions in this topic

Expand a question to see the answer. The content is visible in HTML and can be indexed by search engines.

251. How to upload website files via FTP?

For the topic "how to upload site files via FTP", first check the settings in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

252. How to create an FTP account?

For the topic "how to create an FTP account", first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

253. How to set up an anonymous FTP account and is it safe?

For the topic "how to set up an anonymous FTP account and is it safe" first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

254. How to connect via SFTP/SSH?

For the topic "how to connect via SFTP/SSH" first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

255. How to use SCP/rsync if the client has access?

For the topic "how to use SCP/rsync if client has access" first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

256. How to use Git on hosting?

For the topic "how to use Git on hosting" first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

257. How to deploy from a repository?

For the topic "how to deploy from a repository", first check the setting in cPanel, site files and PHP/SSH logs.

You can upload website files via FTP/SFTP, SSH, SCP/rsync, file manager in cPanel or deploy from the repository, if the service supports it. For the external contractor, create a separate account with limited access.

Once the work is complete, remove temporary access, check file permissions and test the site. Do not provide the main password to the customer panel if access to a specific directory is sufficient.

258. How does the .htaccess file work?

For the topic "how does the .htaccess file work" first check the setting in cPanel, site files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

259. What are common .htaccess entries?

For the topic "what are common .htaccess entries" first check the setting in cPanel, site files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

260. How to set up a 301 redirect?

For the topic "how to set up a 301 redirect", first check the setting in cPanel, site files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

261. How to set up redirection from http to https?

For the topic "how to set up redirection from http to https", first check the setting in cPanel, site files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

262. How to set up redirection from non-www to www or vice versa?

For the topic "how to set up redirection from non-www to www or vice versa" first check the setting in cPanel, website files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

263. How to password protect a directory?

For the topic "how to password protect a directory", first check the setting in cPanel, website files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

264. How to block access to a file or directory?

For the topic "how to block access to a file or directory", first check the setting in cPanel, site files and PHP/SSH logs.

File.htaccesscontrols redirections, HTTPS, directory access and selected Apache rules. Make a copy before changing it, as an incorrect rule may cause a 500 error or a redirection loop.

When redirecting, check the z variantwwwand withoutwww, HTTP/HTTPS and compatibility with CMS, which may have its own redirection rules.

265. Why can't I delete a directory via FTP?

Problem deleting directory orchownusually due to permissions, file owner, or shared environment limitations. Not all administrative operations are available from the client.

In the report, provide the directory path, account name, operation and error message. Support will check the owner of the files and a safe way to repair permissions.

266. Why can't you do chown?

Problem deleting directory orchownusually due to permissions, file owner, or shared environment limitations. Not all administrative operations are available from the client.

In the report, provide the directory path, account name, operation and error message. Support will check the owner of the files and a safe way to repair permissions.

267. How to check PHP configuration on the server?

The PHP configuration can be checked in cPanel → MultiPHP Manager and MultiPHP INI Editor, and technically through the phpinfo() file temporarily placed in the website directory. Over SSH you can use /path/to/php -i. After the test, the phpinfo file should be deleted because it reveals details of the environment. The PHP version for the web and CLI may differ, so you need to check the correct context.

268. How to change PHP versions in cPanel?

For the topic "how to change PHP versions in cPanel", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

269. How to enable or disable display of PHP errors?

For the topic "how to enable or disable display of PHP errors" first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

270. How to diagnose fatal error allowed memory size?

For the topic "how to diagnose fatal error allowed memory size", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

271. How to increase memory_limit?

For the topic "how to increase memory_limit", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

272. How to set upload_max_filesize and post_max_size?

For the topic "how to set upload_max_filesize and post_max_size" first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

273. How does PHP-FPM work?

For the topic "how PHP-FPM works" first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

274. How does OPcache work?

For the topic "how OPcache works" first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

275. How to enable Node.js?

For the topic "how to enable Node.js", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

276. How to enable Python?

For the topic "how to enable Python", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

277. How to enable Ruby?

For the topic "how to enable Ruby", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

278. What is worth knowing about the multiple versions of PHP, Node.js, Python and Ruby?

For the topic "what to know about multiple versions of PHP, Node.js, Python and Ruby", first check the setting in cPanel, site files and PHP/SSH logs.

You can check the PHP and technology configuration in cPanel. There you can change the PHP version, selected extensions and parameters such asmemory_limitupload_max_filesizeWhetherpost_max_size, if the package allows it.

PHP-FPM and OPcache improve the performance of PHP applications. Hostilla also offers environments for Node.js, Python and Ruby depending on the server configuration.

279. How to set cron?

Cron is used to run scripts cyclically. Set up tasks so that they do not overlap and overload your account, especially when it comes to product imports, synchronizations and integrations.

If the script is to run long after SSH disconnection, you must use the appropriate mechanism for the environment and monitor the logs. Support can help check if a job exceeds LVE limits.

280. How to check if a script run from shell runs after disconnection?

Cron is used to run scripts cyclically. Set up tasks so that they do not overlap and overload your account, especially when it comes to product imports, synchronizations and integrations.

If the script is to run long after SSH disconnection, you must use the appropriate mechanism for the environment and monitor the logs. Support can help check if a job exceeds LVE limits.

10190. How to solve the problem: unblocking pop-up windows in the browser?

If the dashboard or webmail opens a new window, the browser may block it. The customer should click the pop-up blocker icon in the address bar and add the panel domain to the exceptions. Alternatively, you can go directly to the target link or use a different browser. This setting applies to the client computer, not the hosting.

10194. How to solve the problem: problem connecting to the mtr test server?

In case of connection problems, we ask the client to test the MTR/traceroute to the domain or server IP and provide information about the date, time, client's IP address and Internet operator. The MTR shows whether the problem is on the client network, en route, or at the server. If the connection works from other networks, there may be an IP block in CSF/Imunify360 or a problem on the client's ISP side.

10210. How to check server statistics?

The client checks the statistics in cPanel. In the side panel, you can see disk usage, transfer, databases, mailboxes and other limits. The Metrics section includes, among others: AWStats/Webalizer, Bandwidth, Visitors, Errors, Raw Access and Resource Usage if the server uses CloudLinux. Global server statistics are only available to the administrator in WHM or through operator monitoring.

10218. Will a script run from shell run after connection loss?

A process running in a regular SSH session will usually terminate upon disconnection if it was not started in a session-break-tolerant manner. For longer tasks, use screen, tmux or nohup if available in the package, e.g. nohup php script.php > script.log 2>&1 &. Long operations must be performed outside peak hours and logs must be monitored to ensure that account limits are not exceeded.

10220. Why can't I delete a directory via FTP?

A directory cannot be deleted via FTP if it is not empty, contains hidden files, has incorrect permissions, is used by an application, or has a different owner. The client should enable showing hidden files in the FTP client, try through cPanel File Manager and check permissions. If the files are owned by another user or have blocking attributes, support intervention is needed.

10223. How to transfer mail between servers using imapsize?

It is best to transfer mail between servers via IMAP, e.g. using imapsync. First, we create target mailboxes in cPanel, then we synchronize each mailbox from the source host to the target host via SSL port 993. After syncing, you can change the MX record and perform a final sync. It's a good idea to keep the same passwords only temporarily and change them after migration.

10224. How to get rid of gzip htaccess double compression?

Double gzip compression occurs when the server and an application/plugin or several .htaccess rules enable compression at the same time. You should leave one compression layer: server or application. In .htaccess you need to remove duplicate mod_deflate/mod_gzip sections, and in CMS you need to disable the compression option if the server already uses it. After changes, clear the cache and check the Content-Encoding header.

10260. How to add or remove a subdomain?

The subdomain is added in cPanel → Domains → Create New Domain, entering e.g. sklep.domena.pl and indicating the directory. Deleting the domain/subdomain entry in cPanel removes the vhost configuration, but it does not necessarily automatically delete the files or databases - you will need to check this before confirming. After adding a subdomain, AutoSSL will issue a certificate if the DNS points to the server and the domain is not excluded from AutoSSL.

10268. How to change PHP parameters?

PHP parameters are changed in cPanel → MultiPHP INI Editor. In Basic mode you can change, among others: memory_limit, upload_max_filesize, post_max_size, max_execution_time and display_errors for the domain or the entire home directory. In Editor mode, you can edit directives manually, but incorrect configuration may disable the application. After changes, it is worth checking phpinfo and error_log.

10269. How to solve the problem: file manager support?

The file manager in cPanel allows you to upload, download, edit, delete, move, copy, compress and unpack files and change permissions. To edit hidden files, e.g. .htaccess, you need to enable showing dotfiles in the settings. Do not edit large production files without a copy. The public_html directory is usually the root directory of the page.

10292. How to change the file owner rights on the FTP account if I uploaded the pages via the admin shell account?

The cPanel user cannot chown because changing file ownership requires root privileges. If the files were uploaded by the wrong account or administrative process and have the wrong owner, the customer should report it to support. By default, all site files on shared hosting should belong to the cPanel user; uploading via proper FTP/SFTP usually solves the problem.

10304. Why can't I execute the chown command?

The chown command requires root privileges, so a regular cPanel user cannot change file ownership. This protects shared server accounts from being hijacked by other users' files. The client can change chmod permissions on its directory, but not the owner. If the files have the wrong owner, you need to report it to support.

10309. How to change the PHP version of a domain?

The PHP version for the domain can be changed in cPanel → MultiPHP Manager. The client selects the domain, selects the available PHP version and clicks Apply. If a domain shares document root with another domain, the change may affect all domains in that directory. After the change, check the website, error_log and the compatibility of plugins and PHP extensions.

10315. How to turn off displaying PHP errors?

The display of PHP errors is enabled or disabled in cPanel → MultiPHP INI Editor via the display_errors directive. In production, we recommend display_errors = Off and log_errors = On so that errors appear in the logs but are not publicly visible. You can temporarily enable staging errors for debugging or limit them to the test environment.

10317. How to solve the problem: redirecting a domain without WWW to WWW?

Redirection without www to www can be set in cPanel → Domains/Redirects or in .htaccess. Example rule: RewriteCond %{HTTP_HOST} ^example\.com$ [NC] and RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]. You should use one canonical domain variant, enable HTTPS, and make sure your WordPress/CMS has the same address in the settings.

10318. How to solve the problem: domain redirection from WWW to non-WWW?

Redirection from www to non-www can be set in cPanel → Redirects or in .htaccess. Example rule: RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] and RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]. In the CMS, you should set the website address without www to avoid creating redirection loops. After changing, it is worth clearing the cache and checking HTTPS.

10327. How to solve the problem: cron tasks description adding tasks checking operation?

Cron jobs are added in cPanel → Cron Jobs. You need to set a schedule, provide the full command and preferably redirect the output to log or /dev/null. PHP example: /opt/cPanel/ea-php82/root/usr/bin/php /home/LOGIN/script.php >> /home/LOGIN/cron.log 2>&1. To check the operation, we use cron logs, the resulting file, the file modification date or the effect in the application. We don't set tasks very often.

10331. How to redirect a domain?

The domain can be redirected in cPanel → Domains → Redirects by selecting the source domain, type 301/302 and destination address. The 301 redirect is permanent and recommended for permanent address changes. Redirects can also be added manually in .htaccess, giving you more control. Before changing, check that there is no loop and that the CMS has the correct canonical address.

10332. How to solve the problem: structure and most popular htaccess file entries?

.htaccess is an Apache configuration file that runs in the website directory. The most common entries are 301/302 redirects, RewriteRules, HTTPS enforcement, IP/user-agent blocking, directory indexing settings, error pages and some PHP parameters depending on the handler. Incorrect syntax can cause a 500 error, so it's a good idea to make a copy of the file before changing it.

10337. How to add a new user to the database?

A new database user is added in cPanel → MySQL Databases. After creating a user, you need to add it to a specific database in the Add User To Database section and select permissions, often All Privileges for the CMS application. Simply creating a user is not enough - without assigning it to the database, the application will not connect to the database.

10341. How to check what is taking up space on your account?

What takes up space in your account is checked in cPanel → Disk Usage and Email Disk Usage. The most common sources of consumption are e-mail, backups, cache directories, logs, old archives, staging directories, Installatron copies and large CMS uploads. Over SSH you can use du -h --max-depth=1. Do not delete files whose functions the client does not know; backup or consultation first.

10364. How to transfer imapsync mail?

Mail migration via imapsync involves copying messages between two IMAP servers. First, we create the target mailbox in cPanel, then we start synchronization from the source host to the target host via SSL 993. After changing the MX, it is worth performing a second synchronization to transfer the messages that arrived during DNS propagation. For many mailboxes, you need a list of accounts and temporary passwords.

10366. How to solve the problem: basic commands in SSH?

Basic SSH commands: pwd shows directory, ls lists files, cd changes directory, cp copies, mv moves/renames, rm deletes, mkdir creates directory, nano/vi edits file, chmod changes permissions, du checks sizes, tar/zip unpacks and packs, grep searches, mysql/mysqldump handles databases. The rm and chmod commands should be performed carefully, preferably after a backup.

10383. How to connect to FTP?

For FTP, the client uses the domain host or server hostname, port 21 for FTP/FTPS or SSH port for SFTP, login and password. For additional FTP accounts, the login usually has the format user@domain.pl. The main cPanel account can use SFTP if SSH is enabled. We recommend SFTP/FTPS over unencrypted FTP. If you have problems with listing directories, turn on passive mode in the FTP client.

10384. How to solve the problem: access control via FTP?

FTP access is controlled by creating separate FTP accounts in cPanel → FTP Accounts. Each account can be assigned a startup directory, so that the user cannot see files outside this directory, and a quota if the server supports it. Master access has broader rights and should not be transferred to third parties. We recommend SFTP for secure transfer if available.

10385. How to create an additional FTP account?

An additional FTP account is created in cPanel → FTP Accounts. The client provides the username, domain, password, access directory and any quota. The directory determines the range of visible files for this account, so it is worth specifying only the directory of a given domain for the website developer. After the cooperation ends, the FTP account should be deleted or the password changed.

10389. How to check the logs?

The client will find logs in several places: cPanel → Errors for web errors, Raw Access for access logs, Track Delivery for e-mail, File Manager for error_log files in application directories and Installatron for application tasks. Detailed Apache/Exim/IMAP/CSF/Imunify server logs are available to the administrator and support can check them after providing the date, domain, IP and message.

10391. How to change the password for an FTP account?

The password for the additional FTP account is changed in cPanel → FTP Accounts → Change Password next to the selected account. The master FTP account password is usually the cPanel user password and is changed via Password & Security or the client panel/SSO. After changing your password, you must update your FTP client and delete old saved passwords.

10414. How to configure email programs?

We configure email clients manually or via cPanel → Email Accounts → Connect Devices. Recommended: IMAP 993 SSL/TLS, SMTP 465 SSL/TLS or 587 STARTTLS, login full e-mail address, mailbox password, mail.domain.pl server or server hostname. POP3 995 SSL only when the client consciously wants to download mail locally instead of folder synchronization.

10422. How to solve the problem: FTP?

FTP in cPanel is used to manage website files. The customer can use the main account or create additional FTP accounts limited to specific directories. We recommend SFTP/FTPS, strong passwords and deleting accounts when work is completed. An alternative to simple changes is cPanel File Manager. FTP access is not used to manage databases or email.

10424. How to solve the problem: databases?

Databases in cPanel are created in MySQL/MariaDB Databases or Manage My Databases. phpMyAdmin is used to work on data, import, export, query and repair tables. Remote access requires adding an IP in Remote Database Access. On shared hosting, the client does not have root/superuser privileges for MySQL. The application connection data is host, database name, user and password.

10427. How to solve the problem: migration?

We perform migrations by transferring files, databases, mail, DNS and application configuration. WordPress and other CMS can be imported to Installatron, mail can be transferred via imapsync, databases via mysqldump/phpMyAdmin, and files via rsync/SFTP. After migration, we test the website through hosts, run AutoSSL, check email and only then change DNS/MX. When migrating from cPanel to cPanel, it is possible to transfer the package if you have access to a backup.

10429. How to solve the problem: website applications?

Website applications such as WordPress, Joomla, PrestaShop or other CMS are best installed and managed by Installatron. Installatron supports installations, imports, updates, backups, cloning and staging. Applications still run on cPanel resources: PHP, MySQL, files and SSL. The customer should regularly update applications, remove unused add-ons and make copies before changes.

Need more information?

If you need more details or help, contact Hostilla.pl support through the contact form.

Contact Hostilla.pl support