David Slack - Web developer

Subscribe to RSS - server

server

Got a packet bigger than 'max_allowed_packet' bytes

So you tried to upload a database and got the error "Got a packet bigger than 'max_allowed_packet' bytes". This happens offten when you move a Drupal DB from one server to another.

So how do you make your server allow bigger packets? Easy.

There is a file in /etc called my.cnf. Simply add the line 'max_allowed_packet = 12M' to the end of the file (or edit the line) so the file reads:

cPanel and WHM

cPanel and WHM is the industry leader for turning standalone servers into a fully automated point-and-click hosting platform. It's a fully webbrowser based front end for your server.

Once you have installed centOS and have SSH access you can install cPanel with WHM and and that is it, your server is ready to use. 

Follow this guide to install

OR

To begin your installation, use the following commands:

Setup UploadProgress from WHM

Once you have cPanel/WHM installed and setup we want to ad a few modules to help it run. One of these is UploadProgress.

  1. Login to WHM
  2. Hit Home at the top left
  3. Hit 'Modules installers'
  4. Hit 'Manage' next to PHP Pecl
  5. Click the Show Available PHP Pecl(s) button
  6. Now search for 'UploadProgress' from the list (Ctrl+F)
  7. To the right of it hit the install button

All done!

If this works, great, but if not we've got to check out a few things.

 

Useful Linux commands

This is some of the things I keep forgetting and things I always use. Might be usefull to someone (including me)

Find the hostname:

{syntaxhighlighter brush: as3;fontsize: 100; first-line: 1; }hostname{/syntaxhighlighter}

Change driectory:
cd

{syntaxhighlighter brush: xml;fontsize: 100; first-line: 1; }{/syntaxhighlighter}

E.g. To change to the root directory use

{syntaxhighlighter brush: as3;fontsize: 100; first-line: 1; }cd /{/syntaxhighlighter}

Rename a file:

Latest content

There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some...
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent...
The Lost and Found website was built by myself (David Slack) and designed by Arm & Eye.The site was created to promote a bar and...

Social networks

Contact me here or catch me on one of
the social networks below


What I'm listening to

My blog

Wednesday, 2 August, 2017 - 06:56
There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some developers...
Tuesday, 5 March, 2013 - 09:49
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent learning...
Monday, 3 December, 2012 - 10:07
As a web developer and web designer I need to take into account everything on a site from SEO, marketing, usability across devices, the look and feel...

Recent comments

Try this on your mobile

Use your QR reader to read this

You should be able to use this right from the screen

Latest tweets

Calendar

M T W T F S S
 
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31
 
 
 
 
 
 
 

You are here

Back to top

Copyright David Slack - Web developer