MaxRequestLen : Linux File size upload error

Download PDF

With new version of Linux distros I have noticed a lot of default configurations are set with really low values.

One of them is MaXRequestLen in Fast CGI.

It used to be set to 1Gb by default, with new distro installs its value is 128kb (Ubuntu, CentOS, RedHat, Fedora etc.).

In order to upload files larger then 128kb you will have to do the following:

First obviously make sure your php.ini settings are set first, for example:

upload_max_filesize = 100M
post_max_size = 150M
memory_limit = 128M

Next is to change MaXRequestLen in  /etc/apache2/conf.d/fcgid.conf

FcgidMaxRequestLen 2147483648

This will give you limit of 2Gb file uploads.


Have fun 🙂


How to change recursion limit (file limit list) in pure-ftpd

Download PDF

How to change recursion limit (file limit list) in pure-ftpd

By default, pure-ftp server has a limit on a number of files displayed through an ftp client. It is usualy 2000 or 7500, if you need more files displayed follow this quick tutorial.

Solution :- Just login to your Server with root user and do the following changes in your ftp configuration :-

1. Open the main ftp configuration file.
2. root@centos[~]# vi /etc/pure-ftpd/pure-ftpd.conf
3. Search or scroll till you see “LimitRecursion”


LimitRecursion 2000 8

2000 represents the number of files displayed and 8 number of subdirectories.

4. Change it to whatever you want for example:

LimitRecursion 75000 15

5. Just save the file after modification and restart the pureftp server with the following command :-

root@centos[~]# /etc/init.d/pure-ftpd restart

Now you can upload and view total 75000 files through ftp and 15 parallel subdirectories are allowed.

Enjoy 🙂


If you are running PURE FTPD on WHM & cPanel server, the location of the .conf file is:


If this change still has no effect, you can edit it here:


How to Manually Configure Outlook (Office 365)

Download PDF

After several attempts of trying to configure Outlook using the wizard – I decided to configure Outlook manually. I ran into a few speed bumps as the configuration for Office 365 is slightly different than an On-premise configuration:


Manually configure Outlook


To manually configure Outlook to connect to Exchange Online, follow these steps:

1. Determine the mailbox server name and the proxy server URL. To do this, follow these steps:

a. Sign in to the Office 365 portal.

b. Click Outlook to open Microsoft Outlook Web App.

c. In the upper-right corner of the page, click the Help icon (the question mark), and then click About.

d. On the About page, locate and then note the following items:

§ Mailbox server name: Example: TO get the server name you would need to go to OWA click on about copy the Exchange Client Access server name for example you would need to only keep the CH1PRD0602 and you would put as the server name.

§ Host name: This is the proxy server URL. Example


2. Manually configure Outlook to connect to Exchange Online. To do this, follow these steps:

a. Click Start, click Control Panel, and then click Mail.

b. Click Show Profiles and then click Add.

c. Type a name for the profile, and then click OK.

d. Click to select the Manually configure server settings or additional server types check box, and then clickNext.

e. Select Microsoft Exchange, and then click Next.

f. In the Server box, type the mailbox server name that you noted in step 1d.

g. Make sure that the Use Cached Exchange Mode option is selected.

h. In the User Name box, type your user name (for example,, and then click More Settings.

i. Click the Connection tab.

j. Make sure that the Connect to Microsoft Exchange using HTTP check box is selected, and then clickExchange Proxy Settings.

k. In the Use this URL to connect to my proxy server for Exchange box, type the proxy server URL that you noted in step 1d.

l. Make sure that the Only connect to proxy servers that have this principal name in their certificate check box is selected, and then type

m. Click to select the On fast networks, connect using HTTP first, then connect using TCP/IP check box, and then click to select the On slow networks, connect using HTTP first, then connect using TCP/IP check box.

n. Under Proxy authentication settings, select Basic Authentication.


Note Users can also select Negotiation Authentication if the administrator enabled this option in the Office 365 portal.


o. Click OK two times.

p. Click Check Names. When the server name and the user name are displayed with an underline, clickNext.

q. Click Finish



  • Microsoft Office 365 for enterprises
  • Microsoft Office 365 for small businesses

MySQL Table is marked as crashed and last (automatic?) repair failed

Download PDF

If you have a table in mysql that has crashed and your attempts to repair it using mysqlcheck have failed, then you may have to resort to the lower level myisamchk command.

To use this, you will need to stop the server process (usually service mysqld stop or /etc/init.d/mysqld stop) and then find the data files (usually in /var/lib/mysql/databasename).

You can then run the following command against the table:

myisamchk -r -v -f --sort_buffer_size=128M --key_buffer_size=128M /var/lib/mysql/database/table.MYI

Obviously replacing database/table with the correct database and table.