Custom php.ini Cpanel 11 with suPHP

July 15th, 2009

Some hosting clients require special setups of their PHP configurations – and searching online revealed a lot of information but scattered all around various blogs / tech sites.

To help others with this configuration we’ve collected all the info here:

Here is a simple step by step to customise php.ini for a specific client domain on CPANEL 11 + suPHP enabled on APACHE 2.x

NOTE: replace ‘username’ and ‘userdomain’ with your client’s username and domain name

If you take a look at your http.conf file ( /usr/local/lib/php.ini ) you will see this in your specific domain’s VirtualHost container:

# To customize this VirtualHost use an include file at the following location
# Include “/usr/local/apache/conf/userdata/std/2/username/userdomain/*.conf”

NOTE: DO NOT EDIT THE  httpd.conf  FILE DIRECTLY – you must use the include files

NOTE: this is for Apache 2.2 – check httpd.conf for above include location reference

NOTE: do not uncomment / edit anything in httpd.conf

Create the include folder:  
[]# mkdir -p /usr/local/apache/conf/userdata/std/2/username/userdomain

the -p switch creates any parent directories that do not exist

change to that directory
[]# cd /usr/local/apache/conf/userdata/std/2/username/userdomain

create suphp.conf in that folder – simply use vi text editor to create the file
[]# vi suphp.conf
in suphp.conf add

<IfModule mod_suphp.c>
suPHP_ConfigPath /etc/phpconf/username
</IfModule>

Save the file and return to command line

Now create the directory where the custom php.ini file will be stored for that user
[]# mkdir /etc/phpconf/username

copy global php.ini to /etc/phpconf/username
[]# cp -pv /usr/local/lib/php.ini /etc/phpconf/username/php.ini

edit the php.ini in /etc/phpconf/username – making directive changes as required
[]# vi /etc/phpconf/username/php.ini
save and exit

Now run /scripts/verify_vhost_includes to check the new includes are working
[]# /scripts/verify_vhost_includes

If all looks ok run /scripts/ensure_vhost_includes ––user=username  
[]# /scripts/ensure_vhost_includes ––user=username

This will restart apache as well and all should be good to go… run phpinfo();  on your domain to insure changes are reflected…

VizleFX

July 2nd, 2009

Cyanweb is currently developing a new website for video game developer VizleFX.  The new site will include video previews of upcoming titles, an integrated Content Management System, member logins to access special content, user forums and a game download management system. Check back late July for more news!

Highlands Coffee eCommerce Website

June 2nd, 2009

Highlands Coffee’s new eCommerce enabled website has been uploaded and is now live on the Internet.

Have a look: www.highlandscoffee.com.au

The Lucky Charm Kid’s Club

May 26th, 2009

Cyanweb have just completed a web site upgrade for www.theluckycharm.com.au.  Included in the new site is a customise Kid’s Club on-line registration system.

A custom database and admin area allows easier management of Kid’s Club members and auto emailing of Birthday messages and vouchers every month.

Other new features include a web site search engine and multimedia components.

Form Spam

April 23rd, 2009

Lately the problem of “FORM SPAM” has been growing. Form Spam is basically junk responses arriving via online web contact and enquiry forms.

Form Spam is generated when a spammer sets up a “software bot” that crawls the internet looking for web forms – and subsequently fills it in with junk and sends it to the site owner…

Once your form has been discovered by one of these “spam bots” you will no doubt begin to receive a continual stream of junk emails from your form.

One solution to this problem is to add a “turing test” or “security code” to your web based forms. This requires the form submitter to answer a question or submit a code generally only decipherable by a human.

If you are having problems with form spam we can help. We have upgraded a number of online forms to use a security turing test.

Jenny Talia Laughs Online

February 26th, 2009

TJ’s new website is now online here www.jennytalia.com. This blogging site was custom designed for Australian comedian Jenny Talia…  Take a look and we’re sure you’ll get a few laughs!

2 Small Business Websites

February 20th, 2009

2 new small business websites have gone online this month:

www.betterfirewood.com and www.amongstfriends.com.au

These self updateable sites are easy to maintain by the client using an on-line content management system.

Tamukami Imports eCommerce

February 7th, 2009

The new Tamikami Imports website is now online. This eCommerce website development project was completed on a budget of less than $2000.

Take a look at their site here: www.tamukami-imports.com.au