Hardware Secrets
Home | Audio | Case | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Gabriel's Blog
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Newsletter
Subscribe today!
Search




Recommended Book
Build Your Own Wi-Fi Network (Build Your Own...(McGraw))
By
McGraw-Hill/OsborneMedia
Price: $0.30

Home » Networking
How to Build a Web Server with PHP 5 and MySQL 5 Support
Author: Gabriel Torres
Type: Tutorials Last Updated: April 19, 2007
Page: 5 of 5
$ Check REAL-TIME pricing for Linksys WRT54GS Wireless Router $
eBay: $43.10 TECHONWEB: $70.99
Server Supply: $79.00 Dell: $65.99
Amazon.com Marketplace: $63.84 Jr: $59.99

Configuring and Installing Xcache

There are several PHP cache modules around – they help saving CPU resources from your server –, some also bringing PHP optimization, which improves PHP performance: PHP-Accelerator, Mmcache, APC and Xcache. We will show you how to configure and install Xcache, as it brings native support for PHP 5, so you won’t face any compatibility issue.

Look at http://210.51.190.228/pub/XCache/Releases/ for the latest Xcache release on the 1.2 series (1.2.0 at the time of this writing) on the tar.gz format.

The downloading, configuration and compilation sequence is the following:

cd /root
wget http://210.51.190.228/pub/XCache/Releases/xcache-1.2.0.tar.gz
tar –xvzf xcache-1.2.0.tar.gz
cd xcache-1.2.0
/usr/local/apache2/php/bin/phpize
./configure –enable-xcache –enable-xcache-optimizer –with-php-config=/usr/local/apache2/php/bin/php-config
make
make install

Please pay attention at the output to see where Xcache module was installed. In our case, it was installed under /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20060613/.

Now edit php.ini (vi /usr/local/bin/apache2/php/php.ini) and add the following lines. Change the first one according to where xcache module was installed.

[xcache-common]
zend_extension = /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20060613/xcache.so

; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off

[xcache.admin]
xcache.admin.user = “admin”
; paste the output of md5(”password”) below
xcache.admin.pass = “”

[xcache]
xcache.size = 32M
xcache.count = 1
xcache.slots = 8K
xcache.mmap_path = “/dev/zero”
xcache.cacher = On
xcache.optimizer = On

You can install a web admin interface that comes with Xcache. To do that, you need to fill the xcache.admin.pass with a password in MD5 format (click here to convert a text password into MD5) and then copy admin folder from the Xcache installation directory to a directory on your web server, for example:

cd /root/xcache-1.2.0
mv admin /www/your-website/xcache

With this Xcache admin panel will be accessible thru http://www.your-website.com/xcache

Restart Apache with /usr/local/apache2/bin/apachectl restart and check again your phpinfo output, this time looking for a Xcache session (“Xcache session: Enabled”). If it is there, you will have your webserver up and running with PHP 5, MySQL 5 support and PHP cache and optimization module. If not, repeat again the procedures described on this page.

Pages (5): « 1 2 3 4 [5]
Print Version | Send to Friend | | Bookmark Article | Comments (7)

Related Content
  • All Opteron Models
  • All Xeon Models

  • Recommended Deals
    Linksys WRT54GL Wireless Router


    eBay: $39.99 P.C. Richard & Son: $79.99
    Dell: $75.99 TECHONWEB: $63.70
    Singlefeed: $79.99 Amazon: $51.92
    Linksys Wireless-N WRT150N Router


    TigerDirect.com: $44.99 Server Supply: $70.00
    CompUSA.com: $44.99 Amazon: $45.90
    D-link Xtreme N™ DIR-655 Wireless Router


    CompUSA.com: $99.99 Best Buy®: $99.99
    BuyDig.com: $92.95 Beach Camera.com: $99.00
    Dell Small Business: $336.99 Tigerdirect: $99.99

    RSSLatest News
    OCZ Announces CrossOver USB Flash Memory
    December 4, 2008 - 6:34 PM PST
    NZXT Launches Zero 2 Case
    December 4, 2008 - 6:16 PM PST
    Cooler Master Launches Silent Pro M Power Supplies
    December 3, 2008 - 6:04 PM PST
    G.Skill Launches Triple-Channel DDR3-2000 kits
    December 2, 2008 - 3:48 PM PST
    ASUS Launches Eee PC 1002HA Netbook
    December 2, 2008 - 3:37 PM PST
    New Desktop Processors From Intel
    December 1, 2008 - 2:59 PM PST
    New Fans From Thermalright
    November 28, 2008 - 4:44 AM PST
    Glacialtech Launches UFO V51 CPU Cooler
    November 27, 2008 - 3:18 PM PST
    Lexar Media Launches Triple-Channel DDR3 kits for Core i7 Processors
    November 26, 2008 - 6:23 PM PST
    OCZ Intros Fatal1ty Power Supplies
    November 26, 2008 - 5:53 PM PST
    .:: More News ::.

    RSSLatest Content
    MSI Turbostream 600 W Power Supply Review
    BFG MX-550 Power Supply Review
    Laptop Input Devices
    Tagan A+ El Diablo Advance Case Review
    Nintendo DS Lite Ice Blue Pack Review
    New Page: Awarded Products
    KeyScan KS810 Keyboard-Scanner Review
    Everything You Need to Know About Camera Sensors
    Zalman ZM750-HP Power Supply Review
    How does or would your notebook improve your quality of life? What role does or would it play in your life?
    SilverStone Decathlon 700 W Power Supply Review
    Antec Signature 650 Power Supply Review
    Seventeam ST-550P-AG Power Supply Review
    Logitech QuickCam Pro 9000 Review
    GeForce GTX 260 with 216 cores Video Card Review

    Our Most Popular Articles
    Maximum CPU Temperature
    831,384 views
    nVidia Chips Comparison Table
    518,570 views
    AMD ATI Chips Comparison Table
    456,085 views
    How to Find Out Your Motherboard Manufacturer and Model
    442,667 views
    ATI Radeon X1300 Pro Review
    431,996 views
    ATI Radeon X1600 XT Review
    425,329 views
    Connecting Two PCs Using a USB-USB Cable
    392,651 views
    How To Correctly Apply Thermal Grease
    375,997 views
    Sempron vs. Athlon XP
    292,301 views
    Sempron 3400+ Review
    284,275 views

    Latest Threads in Our Forums
    Access Denied (error message in Vista)
    by uncoil
    OCZ Announces CrossOver USB Flash Memory
    by Hardware Secrets Team
    NZXT Launches Zero 2 Case
    by Hardware Secrets Team
    vga cable ....no input signal
    by pupli
    MSI Turbostream 600 W Power Supply Review
    by Hardware Secrets Team
    Anatomy of Switching Power Supplies
    by Gabriel Torres
    BFG MX-550 Power Supply Review
    by Merman
    CWT 750VH 750 W Power Supply Review
    by Gabriel Torres
    Replacing Hard Drive
    by Fireman4u
    Need help with X-Fi Titanium Onboard Connectors
    by Gabriel Torres
    .:: Visit Our Forums ::.

    © 2004-8, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)