.htaccess Tips and Tricks for Argon Hosting Cloud Server

For a comprehensive explanation on how to use a .htaccess file and how to create one, please see one or both of the following links:

 

 
How do I change the post max size value on Cloud Sites?
 
Share this on:

How do I change the post max size value on Cloud Sites?

php_value post_max_size ?M

Replace "?" with the with the required value needed such as 16. Our default post_max_size value is set to 8MBs.

 

 

How do I change the default character set for PHP?

 

In an .htaccess file placed in the directory you want to have the character set changed on, include this line:

php_value default_charset ?

Replace the "?" with the character set required for your site, such as ISO-8859-1.

 

 

How do I change the PHP maximum execution time?

 

In an .htaccess file in the same directory as the executing script, include this line:

php_value max_execution_time ?

Replace "?" with the with the value you need to replace it with. Our default time is set to 30 seconds and a successful modification of the maximum execution will show in your PHP info file.

 

 

 

How do I change the PHP maximum upload file size?
 

n an .htaccess file in the same directory as the upload script, include this line:

php_value upload_max_filesize ?M

Replace "?" with the with the value you need to replace it with. Our default size is set to 2MB and a successful modification of the max upload size will show in your PHP info file. 

If you're running WordPress and continue to have problems after increasing the upload_max_filesize value you can try adding these settings as well:

php_value post_max_size ?M
php_value max_execution_time 200
php_value max_input_time 200
 

How Do I Change The PHP Memory Limit Value with htaccess?

 

Include this line in an .htaccess file in the same directory as the script:

 

php_value memory_limit ?M

 

Replace ? with the appropriate megabyte value. Our default size is set to 32MB, and a successful modification of the memory limit will show in your PHP info file.

 

 

 

How do I change the post max size value?

 

In an .htaccess file in the same directory as the executing script, include this line:

php_value post_max_size ?M

Replace "?" with the with the required value needed such as 16. Our default post_max_size value is set to 8MBs.


Magic_quotes 

The proper setting for magic_quotes in your .htaccess file is:

php_flag magic_quotes_gpc Off

 

 

 
 

 

 

 

 

 

Was this answer helpful?

 Print this Article

Also Read

Why are my emails not sending from my PHP script?

NOTE:  If you are using our Xenon Server cluster, you will need to make this change to...

Common server path information

Common CGI Paths Perl 5: #! /usr/bin/perl Qmail: /usr/sbin/sendmail Date: /bin/date Domain...

Simple .htaccess Tutorial

Introduction   In this tutorial you will find out about the .htaccess file and the power...

What is .htaccess?

.htaccess is a configuration file for use on web servers running the Apache Web Server software....

How do I connect to a mysql database that I have created in Plesk?

In order to connect to the database you just created in Plesk to your scripts or programs, you...