Knowledgebase

Please Login or Register

.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.

 

 

 



 

 

 

 

 



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Argon Solutions
Language: