Archive for PHP Hosting

Install Suhosin PHP Protection Security Patch on Linux

A number of open source application are preferred widely across the web, hence its security becomes a vital concern to the developers, providers and more importantly the users. Inorder to protect the applications developed in PHP, Suhosin is strongly recommended. The Suhosin patch offers great help with protecting the PHP based application from being completely exploited. The patch is considered to offer an advanced protection system for PHP installations. The main idea behind designing Suhosin was, to offer protection for servers against various attacks and other known issues in PHP.

How do I install Suhosin under different Linux Distributions ? (RHEL / CentOS / Fedora)

Step 1 : Download latest version of Suhosin, enter the following command for that purpose

# cd /opt
# wget http://download.suhosin.org/suhosin-0.9.32.1.tgz

NOTE : You must ensure that php-devel is installed:

# yum install php-devel

Step 2 : Then Compile Suhosin under PHP and RHEL / CentOS Linux using the below commands

# cd suhosin-0.9.32.1
# phpize
#./configure
# make
# make install

Step 3 : The Configure Suhosin onto the server, using the below command a configuration file of Suhosin would be created

# echo ‘extension=suhosin.so’ > /etc/php.d/suhosin.ini

Step  4 : Using the below command you must not restart the server

# service httpd restart

NOTE : Incase you have lighttpd activated on the server, you must use the below command to restart it

# service lighttpd restart

Step 5 : Now you must recheck whether Suhosin has been installed on the server. Using the below command you may do so

$ php -v

NOTE : You may run the following command to check for more details

<?php
phpinfo();
?>

Web_Hosting_UK

How To Create a Phpinfo Page ?

The phpinfo.php is a kind of file that allows you to watch the information about your dedicated server. The phpinfo file doesn’t consists of the MySQL information, but it holds all the version information about the PHP, Apache/IIS, GD and many other things on your server. Most of the times you will see many important settings details in the phpinfo file, which might be causing some issues with the installations.

There are many other things that can be seen using the phpinfo file, such as: current version, path to php.ini file, operating system version, hostname, timezone of your system, server API, path to local php.ini file, configuration options such as log_errors, register_globals, post_max_size, memory_limit, safe_mode, etc… In addition to this, the phpinfo file will show you the active modules which are loaded with PHP and its existing configuration settings.

The phpinfo.php file is a simple php script and could be created and stored anywhere on your dedicated server.

Step 1: In order to create a phpinfo file, simply open a plain text file and add the following single line to it and save the file as phpinfo.php .

<? phpinfo(); ?>

Step 2: That’s all you need, now simply upload the created file to your web server. You should upload the file to the exact destination you want to test. Usually, it will be your public_html folder, although its upto you. You can even upload the file to any subdirectory on your server. Use your favourite FTP client to upload the file.

Step 3: In order to visit the page in your browser, simply type the destination url where you have uploaded the file. Here in this tutorial we have added the file in the public_html directory so, the url would be as shown below:

http://www.yourdomain.com/phpinfo.php

Make sure you replace your sitename with “yourdomain”.

That’s it ! Now you can view all the information about PHP for your dedicated server for that specific directory.

Installing Alternative PHP Cache (APC) on Server

Installing APC on your Virtual Private Server

The APC-Alternative PHP Cache is a free, open, and robust framework that is responsible for caching and optimization of PHP.

Steps to Install APC on your web server

Step i – You must be logged in as root to proceed with installing APC on your server

Step ii – You must then download the APC

wget http://pecl.php.net/package/APC

eg : wget http://pecl.php.net/get/APC-3.0.15.tgz

Step iii – Having done that, you are then required to extract it over your Web Hosting UK server:

tar -xzf APC-3.0.15.tgz

cd APC*

Step iv – Look for the PHP location by running the below command :

which php

You must remember the location displayed in the result.

Step v – Now you need to proceed with creating the configuration files using the below command :

phpize

Step vi – Now the APC need to be compiled over the server :

./configure –enable-apc –enable-apc-mmap –with-apxs –with-php-config=/usr/local/bin/php-config
make
make install

Note : You must install the APC in the php.ini file

Step vii – Run the below command to find the php.ini over the server :

php -i | grep php.ini

Step viii – Amend php.ini by adding APC extension, as stated below :

vi /usr/local/Zend/etc/php.ini

Step ix – Add the following to the php.ini file :

apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1

Step x – Finally, you must restart Apache using the below command :

service httpd restart

If you need any assistance with that, please contact our technical support department via. 24×7 Live Chat or raise a ticket via. our helpdesk


How to increase Your WordPress and PHP Memory Limit ?

cPanel Web Hosting

WordPress is a great blogging tool or a content publishing platform that comes with a rich set of features. Using the in-built appealing features you can create a professional looking site or blog just within few steps.

WordPress is a script that is included in the Softaculous or Fantastico software which is offered for free with any cPanel Web Hosting package. Usually, wordpress has a default memory limit of 32MB, which is not sufficient when you increase the number of plugin or when your blog traffic increases tremendously.

What if your wordpress blog stops functioning and show an error ?

Fatal error: Allowed memory size of 33554432 bytes exhausted …

In such case, most of the times people either open a ticket at the HelpDesk and wait for the response from their uk web hosting provider. Some people try to make changes in the .Htaccess file and corrupts whole wordpress blog. Before doing any changes to the wordpress files the user should always backup the wordpress data.

The above issue can be solved by navigating to the wp-config.php file usually which is located at the wordpress installed folder. Edit the file using SSH or the File Manager and add the following line to the wp-config.php file.

define(‘WP_MEMORY_LIMIT’, ’64M’);

The above memory limit can be set up to 32MB, 40MB, 64MB or 128MB.

If you are on a cPanel shared hosting plan, you will need to ask your web hosting provider to increase the memory limit. If your wordpress is on a self-hosted plan, then you can increase the memory as long as you want, but should not exceed the RAM allocated to your dedicated server.

Since, the WordPress is a collection of PHP based files, you will need to increase the memory limit of PHP as well. If your WordPress is self-hosted, but have multiple blogs installed, you will required to assign enough memory in order to handle all the installations.

On the cpanel servers, you will find the PHP file located at the following location:

/etc/php.ini

Simply, find the below line in the file:

memory_limit =

Allocate the memory limit according to your requirements. Since, we have allocated 64MB of memory in the above example, in PHP file we will allocate the same amount of memory to PHP.

memory_limit = 64M

Accordingly, if you are having 2 wordpress blogs consuming 64MB memory each, you may set the PHP memory limit to 128MB as shown below:

memory_limit = 128M

Once you are done with the above steps, simply refreshing your wordpress blog will solve the memory limit error.

How to change the memory_limit in .htaccess file

Users can make alterations in the memory_limit using php.ini file located at /etc/php.ini. Incase you have a shared server, it is not recommended to make these changes on your own. The main reason is that, if you make changes to memory_limit on a shared server using php.ini file, every account on the server would reflect these changes. Though, this is the case with Windows servers.

Alternately, you can copy the php.ini file into the individual linux user account and search for the memory_limit in the file using a suitable editor on the server and make amendments to the values.

There is also one more method to go about doing this, ie. with the .htaccess file. Users can simply create a .htaccess file and add a code in that file.

Here is the procedure to do that :

Step 1: Build a .htaccess file using .

pico .htaccess

Step 2: If you wish to set a memory_limit of 64 MB, you must use the following code within the .htaccess file :

php_value memory_limit 64M

Step 3: Press ctrl + c for saving and exiting the file.

Step 4: You must then create a phpinfo.php file using the following :

pico phpinfo.php

Step 5: Now use the following code within the file.

<?
phpinfo();
?>

Step 6: Now look for the file in the browser and for the memory_limit and confirm if the changes have been applied.

Incase you wish to do it using FTP, then the following steps can be followed :

Step 1: Make an htaccess.txt file on your local system.

Step 2: Add the code for changing the memory_limit to the file.

php_value memory_limit 64M

Step 3: Then upload the htaccess.txt file using an FTP client software that you usually use.

Step 4: Upon uploading the onto the server using FTP account, you must rename it to .htaccess using the FTP client software.

Step 5: Create phpinfo.php file over your local machine.

Step 6: Type the following code within the phpinfo.php file.

<?
phpinfo();
?>

Step 7: Again, using an FTP client, upload it onto your server.

Step 8: Now look for the file in the browser and for the memory_limit and confirm if the changes have been applied.

NOTE: These steps can only be used by customers who have a VPS or a higher web hosting account. Customers using a shared server specifically Linux Shared Hosting must contact Linux support department for increasing the php memory_limit.

PHP and MySQL Hosting FAQ’s

We will discuss the technical possibilities of hosting in this article:

Question: Why do customers have to know about the technical capabilities of hosting and hammer head with unnecessary problems, is it not the task of web design studio – to pick the best technology?

Answer: Not exactly. Technologies that are supported by a hosting provider can not be supported by others. If web studio use the technology that is rarely supported from the hosting companies, and tomorrow the client does not like his current hosting and he decides to change the host, then most likely it will be a long process to find those companies that support those technologies, as the choice of technology will be small and have to live with something average in quality and price, or pay money to web studio for the transfer of copyright to new technologies. In any case, you will lose money and time. We are not talking about static web sites designed only to HTML – these sites can be placed at any provider, but the age of such sites has already passed and the holders of such Internet representations look very profitable against its competitors with interactive dynamic sites.

Question: Can you tell me any advanced and skilled technologies that are supported by almost all web hosting companies?

Answer: Yes. The widely used scripting language PHP and the world’s most popular open source database MySQL are the technologies that are supported by most of the web hosting companies.

And the first and second relate to open source technologies, ie, these technologies can be used free of charge, to develop and maintain a large number of programmers and enthusiasts around the world, it is their main difference from the private commercial technologies such as ASP (ASP.NET), SQL.

Question: Who will be responsible if the site written in PHP and MySQL fails due to some internal error in PHP or MySQL? To whom shall I make a complaint?

Answer: Firstly, PHP and MySQL are rightly considered the most reliable technologies, as technologies developed by the entire international community to quickly debugged, if at all there is some bug found. Secondly, the customer can buy a license to support PHP and MySQL, which will enable him to immediately contact the developers of technology in the event of any errors that occurred through no fault of the creators of the site. Thus, the client will have protection itself by 100 percent.

The technologies PHP and MySQL supported by most web hosting providers, since they are compatible with virtually all operating systems, easy to install, configure, operate and possess greater functionality. Moreover, the PHP Hosting and MySQL Hosting on operating systems, UNIX / Linux is the cheapest web hosting. For comparison, hosting with support for ASP, SQL is running the Windows operating system is at 50-70 percent more expensive and has less reliability mainly due to greater instability of Windows.

Windows is a user-friendly operating system for personal computer, but does not operate well as a server operating system.

Drupal Web Hosting

Drupal Website Hosting

Drupal Web Hosting

Do you offer Drupal Hosting?

- Yes, Drupal is supported on all our web hosting packages. PHP and MySQL are the important requirements for  Drupal Hosting and they are available on all our web hosting plans. We would suggest a linux web hosting package for hosting a Drupal Website as PHP MySQL is the perfect combination on linux servers along with cPanel.

Drupal can be installed at a one click through Fantastico which makes it much easier. cPanel is the most easy to use control panel and allows you to manage database and other tasks of Drupal application.

Drupal Web Hosting

All our servers are Drupal-optimized and performance oriented. Our support team have expertise in managing Drupal websites and they are available 24×7 to provide technical assistance.

Drupal is one of the leading content management systems (CMS) around. Drupal is free and open source CMS written in PHP programming language. Power features and easy management tools of Drupal supports variety of websites. Small websites, blogs or major community websites can be published via Drupal. Drupal meets the website requirements of all small and big organisations. Drupal includes Community web portals,Social Networking sites,E-commerce applications ,Personal web sites or blogs and many such portals.

Drupal is easy to install and use where you won’t need to be expert in programming language. Search engine friendly URL’s, categories and search functions are some of the features on Drupal. Additional modules with Drupal adds more functionality to a website. Drupal installation can easily be converted to a forum, blog, wiki or any other website as per requirements.

All you need to do is open a Drupal web hosting account where you can easily have the Drupal application installed.

Mambo Web Hosting

Mambo CMS Hosting

Mambo Web Hosting

Do you offer Mambo Hosting?
Mambo website hosting is supported on all our servers.

Mambo is most powerful content management system (CMS) around. With the help of web based interface along with user friendly features you can create simpler as well as more complex corporate websites. Mambo is PHP MySQL based so Linux web hosting as well as  windows web hosting package will suited for Mambo website.

eUKhost is most trusted company in UK for Mambo Hosting due to the high level security on our servers. We have enabled mod_security rules on our servers which filters intrusions, hacking attempts and other invalid arguments passed by the intruders.

Mambo is easy to install on a website. If you have cPanel hosting package, you can install Mambo CMS at a one click through Fantastico.

Mambo Web Hosting

All you need to do is select appropriate domain name and proceed with Mambo installation.

Mambo is easy to use or manage and website can be customized from easy to use administrative panel. You won’t need to be an IT expert as it is suited for newbies as well as advanced users.You can have a look at Mambo tutorial to learn about its functionality and design. Default theme of Mambo can be changed anytime and and can be customized as per your requirements.You can change it to a custom Mambo template which can be used for a website.

Mambo functionality can be further extended by adding extra tools for your website. It will help you to create more advanced websites like ecommerce website, forums, gallery etc. Mambo is an excellent website building tool through which you can create personal as well as business website.

phpBB Hosting

phpBB Forum Hosting

phpBB Forum Hosting

Do you offer phpBB website hosting?
Yes, phpBB is supported on all our web hosting packages.phpBB is supported on our linux Web hosting as well as Windows Web hosting.  phpBB is PHP MySQL based so no problems on our servers as all our servers include PHP and MySQl.

phpBB website hosting include lots features such as easy to use control panel, multiple tools, secure servers and the best thing is 24×7 support via email, phone and live chat. Our Website Hosting packages include full support for phpBB along with free installation, free resources at affordable prices. All our web hosting plans support multiple domains which makes easy to manage websites. All you need is signup for a hosting package as per your requirements for phpBB Web Hosting.


PHPBB Hosting Features

*Free phpBB installation
*Instant phpBB Account Setup
*Easy phpBB Account Upgrade
*phpBB Optimized Servers
*Multiple Domains and databases
*Unlimited email accounts
*CPanel and Fantastico
*PHP 5.x and MySQL 5.x
*99.95% Uptime Guarantee
*30 Day Money Back Guarantee.
*24×7 UK Customer Support

phpBB is the most powerful and commonly used forum software used these days. It is suitable for newbies as well as more technically sound users. You can create mid sized forum or a forum for large communities using phpBB. The best thing is phpBB is open source project and it is available for free.

phpBB is powerful software along with easy to use administrator panel. You can create unlimited forums and categories. Features such as Polls, smilies , emailing , permissions and other such can be added easily as well.Forum can be controlled as such that you can bam specific IP’s , email adresses or users.PhpBB forum can be installed and activated within 15 minutes. With our Linux web hosting account, phpBB can be installed at a one click through fantastico.

phpBB is highly secured in terms of authorization system and high encryption that helps to save all passwords save.You can slect the theme for phpBB as per your requirements.You can select which are available for free on web. You can even use CSS to change colors and fonts. phpBB supports cookies section as well.

Unlimited number of users can be created using phpBB. A user can create avatars, send private messages to other users of the forum, etc on phpBB forum. Posts can edited and managed easily as the interface of phpBB is uer friendly.

MediaWiki Hosting

MediaWiki Hosting

MediaWiki Hosting

Do you offer MediaWiki Hosting?

Yes, MediaWiki is supported on all our web hosting packages.  MediaWiki is supported on our linux Web hosting as well as Windows Web hosting. MediaWiki is PHP MySQL based so no problems on our servers as all our servers include PHP and MySQl.

MediaWiki website hosting include lots features such as easy to use control panel, multiple tools, secure servers and the best thing is 24×7 support via email, phone and live chat.Our Website Hosting packages includes full support for MediaWiki along with free installation, free resources at affordable prices. All our web hosting plans support multiple domains which makes easy to manage websites. All you need is signup for a hosting package as per your requirements for MediaWiki Web Hosting.

MediaWiki is one of the best free server based Wiki software available which is licensed under the GNU General Public License (GPL). MediaWiki is generally designed for large websites which has more traffic with increasing no. of users.MediaWiki is a rich, powerful and scalable software that uses PHP as front end and MySQL to display the data stored. Users without knowledge of HTML or CSS can edit the pages easily.

MediaWiki is easy to install and offers more user functionality with good features.. It has great navigation support, text capabilities and search functions. You can create a good looking website by uploading music files, pictures using MediWiki. It can be installed and activated within 15-20 minutes.

« Previous entries Next Page » Next Page »