Archive for cPanel

Domain example.com has exceeded the max emails per hour (200) allowed. Message discarded.

Got this error with cpanel?

Domain example.com has exceeded the max emails per hour (200) allowed. Message discarded.

The fix is simple… Read the rest of this entry »

Comments

suPHP and .phps PHP code highlighting support

Today a user on one of my web servers asked me why .phps files would only download and not show the highlighted PHP code as expected.

This is usually done by adding the following to your “httpd.conf”…

AddType ‘application/x-httpd-php-source’ .phps

We use the cPanel web hosting control panel and to improve security cPanel recommend using suPHP, which allows PHP scripts to run as a user rather than “nobody”.

This means that adding the above line to “httpd.conf” does not work with suPHP.

So what can be done?

Read the rest of this entry »

Comments (2)

Storing mySQL database settings for php and perl in one file

I have a situation where there’s two scripts.

  1. The main core of the code which is PHP based.
  2. A perl script which is called by the mail server for parsing incoming mail.

Both of these scripts require database access to the same database.

Read the rest of this entry »

Comments (2)

Installing IonCube Loader with cPanel on CentOS

There seems to be limited details of how this is done. It’s fairly simple to be honest, but I felt it could save somebody some time if it was documented.

In case you were wondering IonCube is a PHP encoder, usually used to stop people stealing your PHP code when you distribute it. Consequently to run the encoded PHP you require a “loader”, which will run it correctly.

Read the rest of this entry »

Comments (8)

The requested URL /cpanel was not found on this server

If you run cPanel servers, then you may at some point experience this issue.

The problem is when you attempt to visit “http://server.example.com/cpanel” and you get the following message or similar:

The requested URL /cpanel was not found on this server.

The requested URL /whm was not found on this server.

Read the rest of this entry »

Comments