Knowledgebase : PHP / Programming
We recommended all Node.js applications are created using our Setup Node.js Application [https://support.hawkhost.com/index.php?/Knowledgebase/Article/View/197/0/how-to-create-a-nodejs-application] interface. If however you need to run Node just as a CLI ...
We recommended all Python applications are created using our Setup Python Application [https://support.hawkhost.com/Knowledgebase/Article/View/186] interface. If however you need to run Python just as a CLI we offer many versions. The current versions sup...
We recommended all Ruby applications are created using our Setup Ruby Application [https://support.hawkhost.com/Knowledgebase/Article/View/188] interface. If however you need to run Ruby just as a CLI we offer many versions. The current versions supported...
We currently run Litespeed Web Server which runs PHP as the user so files and folders should have the permissions of: Folders: 755 (drwxr-xr-x)Files: 644 (-rw-r--r--) Even if the instructions for the software state to change the permissions of files or...
Yes we support Ruby On Rails and you can install and utilize many different versions of Ruby and Rails utilising our "Create Ruby App" option.  You can find more information on how to create a Ruby Application at:  https://support.hawkhost.com/index.php?/...
We fully support Zend Framework on all of our shared, cloud web hosting, semi-dedicated, and reseller hosting plans. While we do not have a system wide install available for use, all users are able to upload the framework themselves and run it from within...
Yes, Litespeed is capable of utilizing GZIP compression to help speed up your site.
Yes, Litespeed is fully compatible with Apache's mod_rewrite module.
We currently do not make use of PHP safe_mode.
If your application/script is not working as expected and you're not sure why, a great way to debug this would be to enable error reporting in PHP through your .htaccess. For purposes of this article we'll show instructions using cPanels built in File ...
You can change PHP configuration values by modifying your .htaccess file and using the php_flag command. Here is an example turning on error_reporting: # E_WARNING & ~E_NOTICEphp_flag error_reporting 2
Our servers by default do not enable any sort of server based caching of your Cascading Style Sheets (CSS).  The majority of browsers however do caching of css, images and java script files which is most likely what is happening if you believe the files a...
The best way to find the PHP configuration information for the specific server you're on is to make a phpinfo file. Create a file called phpinfo.php with the following code: <?php phpinfo(); ?> Once you've created the file upload phpinf...
The PHP setting allow_url_include is disabled on all Hawk Host servers and for the protection of our users is a setting we do not allow to be overridden through our PHP selector's setting system. The allow_url_include directive is by default disabled in P...
The expose_php setting exposes to the world that PHP is installed on the server, which includes the PHP version within the HTTP header (e.g., X-Powered-By: PHP/7.3.13). The default PHP setting is for this setting to be on and by default we use all reasona...
We support the ability to deploy Node.js Applications utilizing mod_passenger through our cPanel page using our "Setup Node.js App" page On this page you will need to choose to create an application and on the create application page you'll be asked: ...
This article advises you on how to create a node.js application using a cron jobs and php. This is no longer necessary you can do it from our own interface and there exists a guide at https://support.hawkhost.com/index.php?/Knowledgebase/Article/View/197/...
We support the ability to deploy Python Applications utilizing mod_passenger through our cPanel page using our "Setup Python App" page On this page you have the ability to select any of the following Python versions: * Python 2.7 * Python 3.3 * Py...
We support the ability to deploy Ruby Applications utilizing mod_passenger through our cPanel page using our "Setup Ruby App" page On this page you have the option to select the following Ruby versions: * Ruby 1.8 * Ruby 1.9 * Ruby 2.0 * Ruby 2....
Yarn is an alternative package manager for JavaScript which many prefer over npm. You can easily install it by logging into SSH on your account then running the following commands: npm install yarn echo "alias yarn='node_modules/yarn/bin/yarn'" >> .bashr...
We do not recommend you run PHP without web server timeouts on web requests but instead if you need a long running PHP process you run it from a cron job or from SSH if it's a one time operation. There however may be cases such as Wordpress plugins where ...
You can install PEAR packages by doing the following: 1) Locate the "PHP Pear Packages" option within cPanel 2) You'll be prompted with a screen to manage and manipulate your current PEAR extensions.
The PHP interpreter is commonly used in cron jobs to execute php code. php /home/me/public_html/cron.php for example will execute php under an account.
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface ...
The PHP memory limit on any shared hosting plan is currently limited to 128MB.
You can access PHPMyAdmin by selecting the "phpmyadmin" option under the "Databases" option within cPanel.