Heine

  • Home
  • Drupal
  • About
Home

PHP

Cache or PHP-info is none of your business

Heine —Sat, 2007/02/24 - 09:41

I've a few extra scripts in the webroot of several sites to provide me with server information when I need it. These scripts tend to provide too much information to just anyone. Here's how you can quickly limit access to the Drupal admin user (the first user created on the site).

Create a file restrict.php. The example assumes all files (restrict.php, info.php and apc.php) are in the Drupal root directory. You need to adapt the include paths if you save the files elsewhere. You can make the access criteria as baroque as you need; the example simply checks on user id.

  • Drupal
  • PHP
  • Read more about Cache or PHP-info is none of your business
  • 3 comments

Alternative PHP cache on SUSE 9.3 Professional

Heine —Wed, 2007/02/21 - 04:17

Forget about # pecl install apc (Alternative PHP Cache on Debian Sarge). This is going to hurt.

All steps in this short overview were necessary on a Strato V-PowerServer. Depending on your installation, your mileage may vary.

  • PHP
  • Performance
  • V-PowerServer
  • Read more about Alternative PHP cache on SUSE 9.3 Professional
  • 1 comment

Alternative PHP Cache on Debian Sarge

Heine —Tue, 2007/02/20 - 22:40

This is a repost about a different (now defunct) server.

Khalid wrote a small guide to Installing the Alternative PHP Cache on Ubuntu Dapper and Debian. The installation on Debian 3.1 (Sarge), requires a few extra steps though.

Make sure you have the proper permissions (# denotes the root prompt) and issue the following commands:

  • Drupal
  • PHP
  • Performance
  • Read more about Alternative PHP Cache on Debian Sarge
  • 2 comments
Subscribe to PHP

Recent posts

  • Teampassword manager's password generator is biased
  • Other vectors for SA-CORE-2014-005?
  • Lazy loading: hook_hook_info is for hook owners only.
  • "Always offline" problem in EA's Origin due to antivirus
  • From bug to exploit - Bakery SSO
more

Security reviews

I provide security reviews of custom code, contributed modules, themes and entire sites via LimoenGroen.

Contact us for a quote.

Follow @ustima

Copyright © 2021 by Heine Deelstra. All rights reserved.

  • Home
  • Drupal
  • About