Archive

Archive for the ‘CMS’ Category

htaccess SuPHP php_value _flag php.ini

April 28th, 2010 admin Comments off

On suphp servers  you should remove the lines from .htaccess file that begin with “php_value” and “php_flag”. You will need to add the settings that you want to use to a file named php.ini and upload php.ini into your public_html directory.

You will need to remove php_value and php_flag from ALL .htaccess files you may have

In .htaccess under public_html, add the following:

suPHP_ConfigPath /home/AccountUserName/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>

In php.ini under public_html add the settings that you want to use:

register_globals = On
post_max_size 6M
upload_max_filesize 6M
max_execution_time 90
max_input_time 90
....
Categories: CMS, Hosting, Linux Tags: , , ,

How to Delete Existing WordPress Post Revisions

February 19th, 2010 admin Comments off

To remove all existing post revisions entries from WordPress database Posts table, simply login to MySQL phpMyAdmin. Select the appropriate WordPress database, and then issue the following command:

DELETE FROM wp_posts WHERE post_type = "revision";

it’s recommended to backup the database before performing the deletion SQL statements.

Categories: CMS Tags: , , , ,