- PeterMoulding.com
- Author
- Trainer
- Speaker
- Business Coach
- How to write a How To book
- PHP Courses
- Speaking
- Web Architect
- Australia
- Books
- Authors
- Akkana Peck
- Alex Berenson
- Andrew Nugent
- Ben Sanders
- Brock Clarke
- Chris Simms
- David Mercer
- Dianna Mullet
- Don Winslow
- Dori Smith
- Harlan Coben
- Jack McDevitt
- James Wines
- Jerry Yudelson
- John Grisham
- Kevin Mullet
- L. E. Modesitt Jr.
- Laurell K. Hamilton
- Marshall Karp
- Martina Cole
- Michael Marshall Smith
- Michel Roux Jr
- Nadia Sawalha
- Philip Pullman
- Raymond Khoury
- Richard North Patterson
- Robert Masello
- Sally Roth
- Sarah Langan
- Stella Rimington
- Stephen Booth
- Stephen King
- Stephen Leather
- T.C. Boyle
- Tom Negrino
- Tony Hillerman
- Urban Waite
- Val McDermid
- Valerio Massimo Manfredi
- Beginning GIMP
- Beginning Visual C++
- Culturalism
- Fiction
- A Drink Before The War
- A Talent for War
- Bag of Bones
- Blood and Ice
- Burn
- Dark Lady
- Dead Line
- Eclipse
- Empress of Eternity
- Exley
- Flipping Out
- Just One Look
- Nightfall
- Pet Sematary
- Savage Moon
- Skinwalkers
- Starvation Lake
- The Fallen
- The Gardens of the Dead
- The Jump
- The Last Templar
- The Mermaids Singing
- The Midnight Mayor
- The Secret Soldier
- The Summons
- The Terror of Living
- The Testament
- The Tower
- Under the Dome
- Virus
- AJAX and PHP
- Aging with Grace
- Food books
- Green Architecture
- Life Is So Good
- SQL: The Complete Reference
- The Backyard Bird Lover's Ultimate How-to Guide
- The Garden Gurus
- Authors
- Sustainability
- -18 hours left to decide the future of Australia
- Campbells vegetable stock or Massel vegetable stock?
- Carbon Sequestration
- Carbon tax for Australia is a fraud
- Copenhagen will fail
- Cost of living in Australia
- Dick Smith jumps on the population bandwagon
- Dry Run: Preventing the Next Urban Water Crisis
- Energy Saving Lights
- Garlic
- How many people can live in Australia?
- Its obsolete, throw it out!
- Julia Gillard offers 9.9 billion dollars bribe to Rob Oakeshott
- Laundry detergent
- Petrol or Diesel?
- Reflective foil batts kill
- RoHS
- Sea level to rise 3mm due to climate change
- Solar power
- Spring again in Sydney
- Sustainable fuels
- The CRUD Tax is back
- The people who make building regulations do not own houses
- Water efficiency
- Which insulation is safer, foil or wool?
- Will Australia reduce greenhouse gas emissions?
- Technology
- Android or Blackberry or iPhone or a flip phone?
- Apple versus Google 2011
- Cameras
- Cars
- Colour
- Burgundy
- Colour Blindness
- Colour Names
- Dulux colours
- Pantone colours
- Safe Colours
- Seculine ProDisk Mini colour balance card
- What Causes Colour Blindness?
- Hardware
- Batteries for the Digital Age
- Cables
- Cases
- Computer reliability
- Computrace
- Disks
- Astone ISO Gear 481E
- Best SSD for your notebook computer
- Disk block size
- Hitachi disk HDS722020ALA330
- LaCie USB 2.0 250 GB mobile hard drive design by F.A. Porsche
- SMART disk
- Samsung 2 TB HD204UI quiet low power disk for mass storage
- Seagate and Samsung merge disk business
- Select the right disk for your RAID array
- USB disk speed
- Western Digital WD20EARX 2 GB SATA 3 disk
- How long should computer hardware last?
- Keyboards
- Mainframe
- Memory cards
- Monitors
- Netbooks, notebooks, tablets, and xPads
- Network Attached Storage
- OLED Displays
- PC's are a thing of the past
- Printers
- Quiet
- Samsung Galaxy S
- Speed
- Television
- Tools
- USB
- Worst computer movies
- Xserve is dead. What next?
- Your backup will not work
- Z68 motherboards
- iPad or Acer Aspire One?
- IQ
- LG Intello Washing Machine
- Lack of a challenge
- Networks
- 802.11n wireless networking
- D-Link DIR-655 wireless router
- D-Link DWA-160 Xtreme N dual band USB adapter
- D-Link DWA-556 Xtreme N PCI Express desktop adapter
- MIMO
- NBN spends another $12 billion of our tax money on nothing
- National Broadband Network
- Netgear wireless modem router DGND3300 with 300 Mbps 802.11n
- Refrigerator kills wireless broadband
- Small Wireless Network
- TP-LINK TL-SG10005D 5 port gigabit switch
- TP-Link TL-WR1043N wireless N gigabit router
- Telstra Pre-paid Mobile Wi-Fi
- Where are the router plus proxy server combinations?
- Open Source documentation
- Software
- 7-zip
- Accounting
- Asterisk
- Audacity
- Backup software
- Bloat only in Windows
- CAD
- CDex
- Disk imaging software for copying and backup
- Exact Audio Copy
- Filezilla
- Firefox
- Java
- LibreOffice or OpenOffice?
- Linux
- 1 in 5 servers will ship with Linux
- Android phones outsell iPhone
- Another Move to Linux
- CentOS 5.5 installation on SSD and RAID 5
- Debian
- Debian 5.0.5 AMD64 installation
- Debian 5.06 installation
- Fedora
- Fedora or Ubuntu?
- Gnome or KDE?
- K9copy
- Linux 2.6.38
- Linux Gnome login settings lost
- Linux Mint
- Linux RAID, a rant
- Linux Speed
- Linux Time
- Linux reliability as demonstrated by Ubuntu 10.10
- Linux reliability as demonstrated by Ubuntu 11.4
- Linux still a struggle in 2011
- Linux workstation disk RAID 1
- Linux, NT, Windows, and SETI
- Linux, three years of progress
- London Stock Exchange switches to Linux
- Mandrake Linux 9.2
- The partition is misaligned by 48128 bytes - warning from Linux RAID
- Ubuntu
- How to fix the scroll bars in Ubuntu 11.4 Gnome
- Kubuntu 10.10 alternate installation on desktop with RAID 1
- POWbuntu
- Ubuntu 10.10 after 6 months use
- Ubuntu 10.10 alternate installation
- Ubuntu 10.10 desktop RAID 1
- Ubuntu 10.10 desktop RAID 5
- Ubuntu 10.10 desktop install on a netbook
- Ubuntu 10.10 desktop installation
- Ubuntu 10.10 netbook install on a netbook
- Ubuntu 10.10 server AMD64
- Ubuntu 10.10 upgrade to version 11.4 beta 2
- Ubuntu 10.4
- Ubuntu 11.10
- Ubuntu 11.10 first upgrade
- Ubuntu 11.4 after one month use
- Ubuntu 12.04 beta1 desktop amd64
- Ubuntu One
- Ubuntu by Microsoft?
- Ubuntu desktop upgrade 10.4 to 10.10 failed because I did not check the media
- Ubuntu strikes again
- Upgrade Ubuntu to Linux Mint 12 LDXE for extra speed
- Yes, use Linux but not that distribution!
- Nero
- OpenOffice
- OpenOffice is now Apache Office
- Project management
- Scribus
- Software for Windows and Linux
- Text editors
- Time
- Todo applications
- Tomboy notes
- Top text editors
- Version control
- VideoLAN VLC media player
- Visio
- Webmin
- Webmin installation on CentOS for Web development
- Webmin installation on Ubuntu
- What is the most popular open source software today?
- Windows
- Another Windows person goes Linux
- BAD_POOL_CALLER
- Cygwin
- Microsoft Malicious Software Removal Tool cannot find a common virus
- One of the developers of Windows XP is criminally insane
- There are unused icons on your desktop
- W32time
- Which Windows version?
- Windows 7 Home Premium
- Windows XP Stop 0x0000007B during installation
- Windows XP is a disaster
- Windows processes
- XML
- Zip, bzip, gzip, or 7zip?
- configFree
- Technology Succession Planning
- VoIP
- Web Sites
- Drupal
- Do Drupal themes have to use the GPL?
- Drupal 7
- A better search facility for Drupal
- Drupal - performance or flexibility
- Drupal 7 Fields are hard to fix
- Drupal 7 new features
- Drupal 7 ships on January 5
- Drupal 7.14
- Drupal 7.4 hits PeterMoulding.com
- Drupal function sequence
- The evolution of a module
- Undefined index: headers in DefaultMailSystem->mail() (line 54 of /modules/system/system.mail.inc).
- Undefined index: to in DefaultMailSystem->mail() (line 83 of /modules/system/system.mail.inc).
- implode(): Invalid arguments passed in DefaultMailSystem->format() (line 23 of /modules/system/system.mail.inc).
- Drupal 8
- Drupal Code Load Cut
- Drupal How To
- Drupal Modules
- Backup and Migrate
- Browscap
- CKEditor with Drupal WYSIWYG
- Captcha
- Cel
- Colorbox
- Content Construction Kit
- Content type
- Devel module for Drupal
- Drupal Rules as an automation language
- Drupal Spam add-on module
- Form alter to node
- IMCE
- IMCE Wysiwyg bridge
- ImageAPI
- Jdog
- Lightbox2
- Module variable
- Node Gallery Access
- Node_Gallery
- Path
- Path redirect
- Pathauto
- Pet
- Search
- Service links
- Session Variable
- Statistics
- Taxonomy
- Token
- Token ex
- Transliteration
- Trigger
- Watch
- Other modules
- Drupal Training
- Drupal access controls need a major rewrite
- Drupal coding tricks
- Drupal performance
- Drupal themes for the future
- Drupal.org colours
- Import existing data into Drupal
- Multiple Web sites made easy using Drupal multisite and the right start
- drupal_lookup_path()
- Adobe PDF
- Apache
- Apache Mahout
- Audi.com
- Bleet
- CSS Strikes Again
- CSS or xCSS
- Can you believe Facebook or email?
- Content Management Systems
- Databases
- Facebook scam
- Font
- Fonts
- HTML
- Install Apache, MySQL, and PHP 5 in Ubuntu 11.4 using the Ubuntu Software Centre
- Language Codes
- Marketing
- Memcache
- Nginx
- Open source development hits another roadblock
- Oscars
- PHP
- SPDY
- Search software
- Techoni.com.au
- Theme themes
- Things to hate on Web sites
- U.S. Patent No. 6,985,875
- Virtual Private Server
- Visible Improvement
- Web 4.0
- Web browser usage
- Web browsers
- Web site development
- Bluefish
- Crying over spilt code
- Eclipse and PHP
- Getting a Git client, a story of ancient technology and pain
- HTTrack
- MVC
- Netbeans
- PHP or ..., CakePHP/Symfony/ZF versus ...
- Programming
- Superfish
- Web browser emulators for testing your Web site
- Web development frameworks
- Web site books
- Web site development on your own computer
- Webmin or phpMyAdmin or cPanel for creating databases?
- aiki framework
- jQuery
- Views development - Learn Fields first
- Views development - Learn Actions and Rules
- jQuery .each()
- jQuery .has()
- jQuery .is()
- jQuery and Firefox Firebug
- jQuery children
- jQuery for people not using Drupal - Installation and getting started
- jQuery hover
- jQuery hover de-duplication example
- jQuery or CSS?
- jQuery performance
- jQuery tests
- Web site hosting
- Westpac Web site still broken after two years and ten months
- Wordpress wins another CMS survey
- Drupal
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (8 MB) that this server supports.
Submitted by Peter on Fri, 2010-04-16 12:54
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (8 MB) that this server supports.
Drupal produces this error for a variety of reasons and there are several related settings you need to fix before you can upload.
You may have to make one or more changes in any and all of the following places depending on your Web site configuration and hosting.
- WHM
- cPanel
- php.ini
- .htaccess
- Administer » Site building » Modules
- Administer » Site configuration » Upload
- settings.php
WHM
When you buy a Web site hosting plan, you buy either shared hosting (the cheapest) or a Virtual Private Server (more flexible). Your VPS hosting plan usually includes WHM or equivalent to administer multiple accounts within the VPS with each account handling a different set of Web sites. WHM is built by the people who make cPanel. Cloudmin is a free open source alternative for VPS administration and is developed by the people who built Webmin. Webmin overlaps WHM and cPanel.
Within WHM select Server Configuration » Tweak Settings then the section headed PHP. Increase both PHP Max Post Size for cPanel PHP in Megabytes (default 55M with a maximum value of 2047M) and PHP Max Upload Size for cPanel PHP in Megabytes (default 50M with a maximum value of 2047M) to 100M. These changes affect only what cPanel does and part of cPanel is a file upload you may use to handle some of your big files so we keep cPanel in sync with everything else.
Now select Service Configuration » PHP Configuration Editor, select [Switch to Advanced Mode], and change both of the following settings to 100M. This changes the system wide php.ini file and will fix your upload problems if the values are not overridden by something else down the line.
post_max_size 100M
upload_max_filesize 100M
Save the changes then check your upload limit in your web page. This might be the only change you need.
Note that this will increase the limit for every Web site within your VPS. You may hten want to implement smaller limits for some Web sites using one of the following methods.
cPanel
Your hosting plan usually includes cPanel (it might be optional) or equivalent to administer an account within a VPS or your Web site in shared hosting. Virtualmin is a free open source alternative for Web site administration and is developed by the people who built Webmin.
By default cPanel displays some of the PHP configuration settings but does not let you change them. Look in cPanel to see the upload limit set by your Web hosting service if you do not have a VPS and WHM.
php.ini
WHM changes your php.ini file for you. If you do not have WHM or equivalent, you have to edit php.ini yourself. Arrgh!!! You could ask your Web site host to change it and a good hosting service will make a small increase. Some hosting companies will not let you touch it and you are stuck with whatever they put there. The problem is that the change will increase the limit for every Web site running under that Web server including a lot of sites you do not own.
if you cannot change php.ini, you might be able to change .htaccess. When you can change php.ini you might still want to use .htaccess or some other technique to limit the upload size for some Web sites.
.htaccess
There might be a .htaccess file in your web site directory. Drupal installs one by default. The file overrides Apache settings and can include overrides for PHP if your hosting service allows PHP overrides in .htaccess. The hosting service can also allow PHP overrides but ban or limit specific PHP settings. You can add a line to the .htaccess file to increase an upload size if the hosting company allows that change.
The file is only a text file and can be edited in almost any text editor. If you make a minor mistake, Apache should ignore the line with the unrecognised setting. Almost everything else will make Apache do something strange and will often result in an empty Web page. You have to search through logs to find the error.
Some operating systems give special treatment to files starting with a . and the .htaccess file becomes a hidden
file. You might have to turn on an option to see the file in whatever application you use to access your files. I use Filezilla for FTP access and Filezilla displays hidden files by default.
.htaccess has the disadvantage of being read every time Apache processes a page request, which is an overhead you can avoid. If you have good control of your Web server, moving everything out of .htaccess into php.ini and the Apache configurations files because those files are read only once when Apache starts up. You can then delete .htaccess.
.htaccess has the advantage that Apache looks for .htaccess in every directory from the Web root down to the page you request. When you have several Web sites in different subdirectories, you can have a different .htaccess in each subdirectory. Using the Upload module override in each Web site is easier.
Administer » Site building » Modules
Switch on the Upload module in Administer » Site building » Modules then configure uplad limits for your Web site in the Drupal administration pages.
Upload
This information is based on the Upload supplied in Drupal version 6.16. The module description says Allows users to upload and attach files to content
. The module is not listed as a prerequisite for other upload options and you do not need it for uploads but it does give you the following page to change some of the default PHP related settings in Drupal. Using this option keeps you in the Drupal administration pages and away from .htaccess.
Administer » Site configuration » File uploads
General settings
Maximum resolution for uploaded images:
[0] WIDTHxHEIGHT
The maximum allowed image size (e.g. 640x480). Set to 0 for no restriction. If an image toolkit is installed, files exceeding this value will be scaled down to fit.
List files by default:
[Yes]
Display attached files when viewing a post.
Default permitted file extensions:
[jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp]
Default extensions that users can upload. Separate extensions with a space and do not include the leading dot.<.em>
Default maximum file size per upload:
[1] MB
The default maximum file size a user can upload. If an image is uploaded and a maximum resolution is set, the size will be checked after the file has been resized.
Default total file size per user:
[1] MB
The default maximum size of all files a user can have on the site.
Your PHP settings limit the maximum file size per upload to 8 MB.
That last bit, 8 MB, should change to 100 MB after you change things in WHM. If it does not change then you have to look elsewhere.
settings.php
Drupal has a settings.php file that can override the other upload settings if your hosting service allows overrides of those PHP settings from within an application. You should have nothing about upload sizes in your settings.php file because you should never have to edit the file. Use the Upload module to make the changes.
Changes to settings.php will be lost when you make a major upgrade to Drupal because you will start with a new default_settings.php file. Changes made by the Upload module should be carried across to the new version of Drupal in the database. Changes made in the database will also appear in your database backups, another good reason to make the changes using the Upload module instead of editing the settings.php file








