How can I set php.ini values in a .htaccess file ?
Although we do not allow access to the php.ini files on our servers, many common php.ini settings can be changed in a .htaccess file. If you wish to make these changes site-wide, they should be made in the .htaccess file in your public_html folder. If you just wish a single directory and subdirectories to have these changes, create a .htaccess file in that directory.
There are two ways to change php.ini settings in a .htaccess file. The first is valid for boolean values (that is, settings that are either true or false). To set a boolean value use:
php_flag setting value
Where value can either be 0 (which also means off, or false) or 1 (which also means on, or true).
If you have a setting which requires a value or string (such as a timeout setting or error log directory), you’ll need to use:
php_value setting value
Where value is expressed just as it would be in a php.ini file.
Please see http://us2.php.net/manual/en/ini.php for more information on the various settings. Settings marked ‘PHP_INI_SYSTEM’ in the ‘Changeable’ column cannot be changed in .htaccess, they can only be changed by the system administrator.
Related articles
- Only .php files loop with .htaccess redirect (stackoverflow.com)
- Top 3 Plugins For Increasing WordPress Security (bloggingtips.com)
Static IP vs. Dynamic IP Address
Converted to SVG from the XFIG source quoted on the original PNG file’s page using XFIG. Edited and fixed using Inkscape. (Photo credit: Wikipedia)
A static IP address is one that remains fixed and never changes. The PC always sees the same address regardless if the session between the PC and ISP is broken or not.
Related articles
- How to Warm up an IP (sendgrid.com)
- Re: ISP ethics? (bitcointalk.org)
- How To Fix A DNS Leak When Connected To Your VPN (techfleece.com)
How to Optimize WordPress?
WordPress is one of the most popular blogging platforms available, and is used widely for different types of sites. However, depending on how your WordPress site is set up, it may not be running as efficiently as it could be. When your Wordress site is not running efficiently, it can load slowly and disrupt your visitors, and in more extreme cases, cause your site to consume more CPU and memory on the server.
There are some things you can do to optimize WordPress so that it loads quicker and uses less server resources. I’ve devised a list of 4 things you can do to make sure that your WordPress site is running in its peak condition.
1) Keep WordPress up to date
The WordPress developers are always making changes and optimizations, so it’s important that you keep your WP installation up to date. If you installed WP through Fantastico you can simply log into cPanel > Fantastico and upgrade there, or if you installed WP manually you can download the latest version at http://wordpress.org and follow their instructions for upgrading.
2) Watch your plugins
It’s also important to keep your plugins up to date (which newer WP versions allow you to do very easily), but it’s also important to not bog down your site with a ton of plugins. The more that the server has to load in a single page, the longer it’s going to take. Since WordPress has thousands of plugins available, it’s very tempting to install more plugins than you actually need. Unfortunately, having too many site-facing plugins (or known “bad” plugins) installed in your WP instance is the #1 cause of problems related to slow loading and CPU/memory overages that our customers have reported. Therefore, you should disable any plugins you’re not using or that you don’t need. Generally, plugins that collect data from remote sites or run interactively (like chat plugins) are the most problematic on shared and v-dedicated servers.
The follow plugins specifically are known to cause issues:
wp-forum, wp digg, geo-mashup, wassup
How To Clear Your Cache ?
A Cache is a block of memory used for temporary storage of data (ie: webpages, etc..) that is likely to be used again. Your CPU and hard drive frequently use a Cache, as do web browsers and web servers. A Cache is made up of a pool of entries. Each entry has a piece of data or copy of the original information which can be stored in multiple locations. Each entry also has a tag, which specifies the identity of that
particular peice of data in your storage. When the Cache client (web browser, ISP, oroperating system) wishes to access this data it first checks the Cache. This helps save time and reduces the workload on the system using the Cached client. If you use your web browser and an entry can be found with a tag matching that of the desired data, then the Cached version is used instead. This situation is known as a Cache Hit. When theCache is consulted and found not to contain data with the desired tag, it is known as aCache Miss.
So, for example, a web browser program might check its Local Cache stored on your computer to see if it has a local copy of the contents of a web page at based on a particular URL. In this example, the URL is
the tag, and the contents of the web page is the data. The percentage of accesses that result in Cache Hits or Cache Misses is known as the Hit Rate or Hit Ratio of the cache.
Most systems fetch and retrieve updated versions of your stored data or Cache every 18-72 hours. This means that your ISP and your local system can at anytime have an out of date version of your data (i.e. website) in its Cache. If you have updated your website, migrated servers or changed web hosts you may not immediately see the changes you made. This could be because your local system has an out of date copy or your ISP’s system has not clear their Master Cache. Follow the steps below to clear your local systems Cache first. If this does not do the trick then you may need to contact your ISP and request they manually flush their current cache. Depending on the ISP if they refuse you will have to wait for them to automatically clear their Cache which may take 18-72 hours for them to do.
How do I clear my browser cache?
For Internet Explorer 4.x and Above ![]()
- Click Tools from the Internet Explorer menu bar.
- Click Internet Options.
- Click the General Tab.
- Click the Delete Files button in the Temporary Internet files section.
- If you still have a problem, repeat the steps above and restart the computer.
For Internet Explorer 8.x and 9.x ![]()
- Click Tools from the Internet Explorer menu bar.
- Click Internet Options.
- Click Delete button from Browsing history.
- Click Delete files… button from Temporary Internet Files section.
- If you still have a problem, repeat the steps above and restart the computer.
For Firefox 1.5x and Above ![]()
- Click Tools from the Firefox menu bar.
- Click Clear Private Data Ctr+Shift+Del.
- Make sure the box is checked next to each option you wish to Clear Private Datafor.(Browsing History, Cache, Cookies, Authenticated Sessions)
- Click the Clear Private Data Now button.
- If you still have a problem, repeat the steps above and restart the computer.
For Netscape 4.x and Above ![]()
- Click Preferences from the Edit menu.
- Click Edit from Netscape menu bar.
- Expand the Advanced menu by clicking the triangle sign.
- Click Cache.
- Click both the Clear Memory Cache and the Clear Disk Cache buttons.
- If you still have a problem, repeat the steps above and restart the computer.
For Mozilla 1.x and Above ![]()
- Click Edit from the Mozilla menu bar.
- Click Preferences…from the Edit menu.
- Expand the Advanced menu by clicking the plus sign.
- Click Cache.
- Click ok to close the preferences menu.
- If you still have a problem, repeat the steps above and restart the computer.
For Opera ![]()
- Click Edit from the Opera menu bar.
- Click Preferences… from the File menu.
- Click the History and Cache Menu.
- Click Cache.
- Click ok close the Preferences menu.
- If you still have a problem, repeat the steps above and restart the computer.
For AOL 3.x and Above ![]()
- Start AOL from AOL menu bar.
- Select Keyword > Go to Keyword.
- Type the keyword preferences.
- Click Go. Dialog box: AOL Settings: Customize your AOL Enterprise.
- Select Essentials tab > Internet (Web) Options - Set Web Browser options and properties. Dialog box: Internet Options.
- Select General tab.
- Click Delete files. Dialog box: Delete Files: Delete all files in the Temporary Internet files.
- Select Delete all offline content.
- Click OK.
- Click OK.
- If you still have a problem, repeat the steps above and restart the computer.
For Safari 1.x for Macintosh OS X ![]()
- Open Safari.
- Click on Safari in the toolbar and select Preferences…
- Click on the Privacy Icon.
- Click the [clear] button next to the Cache option.
- Click OK.
- Exit your Safari browser completely and re-launch Safari.
- If you still have a problem, repeat the steps above and restart your computer.
















