Knowledgebase
- Portal Home
- Knowledgebase
- Apache & PHP
Articles
A) Open a simple text editor like notepad and enter the following:...
Add a command/binary to CageFSWhat is CageFS?CageFS is a virtualized file system and a set of tools to contain each user in its...
Add your own php.ini file to the crontab commandIf you want to use your own php.ini in the implementation of cronjobs, add the following to the...
Apache Configuration StructureDirectory and Options The <Directory> block refers to a directory within the filesystem...
Apache Performance Tuning Tips1. Remove Unused Modules Save memory by not loading modules that you do not need, including but...
Basics Apache ConfigurationApache Basics The default configuration of Apache varies significantly between various...
Becoming Familiar with Databases in phpMyAdminTo get familiarise with databases in phpMyAdmin, first of all, log in to phpMyAdmin and then...
Can I use short tags in PHP scriptsYes! you can. The settings of PHP (short_open_tag) allow you to use short tags in PHP scripts.
Configure mod_evasive to Help Survive DoS/DDoS Attacksmod_evasive is a module for Apache that provides evasive action in the event of an HTTP...
Copying a Database Table with phpMyAdminTo copy a database table in phpMyAdmin, login to phpMyAdmin and then follow this steps. 1. In...
Creating Tables in a Database with phpMyAdminTo create tables in a database in phpMyAdmin, first log in to phpMyAdmin and do the same: 1....
Deleting Fields from Database Tables with phpMyAdminTo delete fields from database tables in phpMyAdmin, first log in to phpMyAdmin and then follow...
Deleting Tables in a Database with phpMyAdminTo delete tables in a database in phpMyAdmin, first, log in. 1. From the left-hand side, select...
Disable TRACE or TRACK method in Apache web serverIf you like to keep your VPS hosting server or dedicated server secure you may need to disable...
Error 503 on PHP websites when LiteSpeed is usedIssue symptoms Sometimes PHP websites return Error 503 page when LiteSpeed is used; however,...
Errors relating to Magic QuotesIf your getting error messages relating to "Magic Quotes" when using or programming in PHP, or...
Execution of HTML as PHPTo be able to handle php script in .html file , you need to add the following in the .htaccess...
Exporting Databases and Tables with phpMyAdminTo export databases and tables in phpMyAdmin, first log in and follow the steps: 1. To export a...
How To upgrade PHP in InterWorx ServerYou can upgrade PHP in InterWorx using the Remi repo. The available PHP versions are PHP 5.4, PHP...
How to Configure ModSecurity on Apache?Install ModSecurity: Ubuntu/Debian sudo apt install libapache2-modsecurity Restart...
How to Enable HTTP/2 in Apache Web ServerHypertext Transfer Protocol Version 2 (HTTP/2) is the latest version of the HTTP protocol,...
How to Hide the Apache Version Number?It is possible to hide apache web server version and other information. This is done for...
How to Install Apache Cassandra on Ubuntu 17.04 and CentOS 7?The Cassandra NoSQL database is ideal for situations requiring maximum data redundancy and...
How to Install Apache Cassandra on Ubuntu 18.04 and CentOS 7The Cassandra NoSQL database is ideal for situations requiring maximum data redundancy and...
How to Install the PHP GeoIP Extension?GeoIP introduces to the way of establishing a computer terminal’s geographic location by...
How to do URL redirectionYou can do URL forwarding from the web hosting control panel. Once logged in click on Redirects....
How to enable ODBC on EasyApache 4?1. First, install the PHP PDO_ODBC module in EA4. 2. Then we have to install Microsoft SQL...
How to fix Apache Too many connections issue?The reasons are the following: – Unoptimized Apache settings The default settings of Apache...
How to increase PHP memory limitIf you like to increase the PHP memory limit in any folder you just create a file called php.ini....
How to increase the size of uploaded files in PHPThe standard maximum size of the file that you can upload in PHP is 2MB, but some scripts require...
How to install Magento from SoftaculousStep 1: Log into cPanel.Step 2: Click on Softaculous Apps Installer in the Software section.Step...
How to restore PHP Selector options after restore or migration?For restoring PHP Selector options and alternate PHP version from the backup (example user...
How to turn off register_globals in PHPIn each directory where you want register_global to be turned off, place the following php.ini...
How to use Apache mod_rewriteTo enable mod_rewrite, it is necessary to add the following in the beginning of the .htaccess...
Importing Databases and Tables with phpMyAdminTo import databases and tables in phpMyAdmin, first, log in to phpMyAdmin. 1. To import a saved...
Inserting Fields into Database Tables with phpMyAdminTo insert fields into database tables in phpMyAdmin, first log in and follow the steps: 1....
Internal Server Error or Error 500The server encountered an internal error or misconfiguration and was unable to complete your...
Managing Resources with Apache mod_aliasIn many cases, all of the resources served by an Apache host are located in that host’s...
Modifying Fields in Database Tables with phpMyAdminTo modify fields in database tables, first log in to phpMyAdmin and then follow the below steps:...
Options, IndexOptions, DirectoryIndex, ErrorDocument with .htaccess1. Authorization and prohibition on listing the content of the folderWhen you open a website...
PEAR Mail settingsRight, so your wanting to use PEAR for mail sending, but are having problems after installing...
PHP Compiled as? (Problems with files)PHP5 Servers:-------------------------------ALL of our PHP5 servers have PHP compiled as CGI with...
PHP Warning: Cannot modify header information – headers already sentIt’s a common issue on the sites, PHP Warning: Cannot modify header information – headers already...
PHP http moduleWe don't allow the use of "PHP http module" because it's not supported by cpanel. Installing...
PHP modules installed on the web hostingNormally the web hosting servers have a standard installation of the following PHP modules:...
PHP parsing of files with HTML extensionIn order to parse PHP files with a .html extension, you will need to create a .htaccess file and...
PHP upload limitYou can change the upload limit for your domain yourself by adding a php.ini file in the...
PHP versionYou can see the version of PHP when you log in your Web Hosting control panel and select “Server...
Path to PEAR and PEARDBYour path to PEAR on all servers is: /home/cpanelusername/php (Replacing "cpanelusername" with...
Perl version & Path to Perl & SendmailIf you need to find out the Current Versions and Paths to both Perl and Sendmail then simply log...
Permissions of the PHP filesTo avoid problems, it is best to set the permissions of PHP scripts to a maximum of 755.
Redirect URLs with the Apache Web ServerThe Apache virtual host configuration files are found in different places, depending on the...
Renaming Database Tables with phpMyAdminTo rename a database tables, first log in to phpMyAdmin and then follow the steps: 1. Click the...
Rewrite URLs with mod_rewrite and ApacheRewrite URLs In a block (usually found a virtual host file) or .htaccess file, enable...
Rule-based Access Control for ApacheApache provides a number of tools that allow administrators to control access to specific...
Running SQL Queries on a Database with phpMyAdminTo run SQL queries on a database, first, log in to phpMyAdmin and then do the following: 1....
Searching through a Database with phpMyAdminTo search through a database, first log in to phpMyAdmin and then follow steps: 1. Select the...
Server Side IncludesSSI (Server Side Includes) are directives that are placed in pages and evaluated on the server...
Starting html as a php file in suphpAdd the following line to your .htaccess file : AddHandler application/x-httpd-php5 .php .html .htm
Tuning Your Apache ServerThere are a variety of tools that can assist in determining if you need to alter resource...
Update your Apache version in cPanelUsing WHMUnder "Software" section, look for "Apache Update." Click this link and then follow the...
WebDAV SupportNo, we do not support WebDAV.
What Is GoAccess(A Real-Time Apache and Nginx) And How To Use It?GoAccess is an interactive and real-time web server log analyzing programmer that instantly...
What is the path to PerlThe first thing you should do is adjust your scripts to use the correct path to the Perl...
Where to put CGI filesCommon Gateway Interface (CGI) offers a standard protocol for web servers to execute programs...
Why there is no package ea-apache24_mod_hostinglimits or ea-apache24_mod_lsapi available?Since EasyApache 4 switched from compiling everything from sources (Apache itself, its modules,...
XSLT / XML & DOM ModulesAll the modules required for XSLT are installed & supported. XML support is also installed in...
Zend FrameworkZend Framework is just a set of PHP classes, you can upload/install this to your account without...
open_basedir restriction in effectIf you are trying to use your temporary URL provided in your welcome email and are getting error...