• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

By Abhishek Ghosh February 16, 2015 7:06 am Updated on February 16, 2015

XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

Advertisement

Here is How to Setup a XCache Admin Page on Nginx-PHP5-FPM on Ubuntu Instance Running on HP Cloud. It Gives a Clear Graphical Idea of Caching. We have guide on setup of WordPress with XCache. We are taking that, it is a Nginx PHP5-FPM setup, not Nginx HHVM setup with PHP5-FPM fallback. It is very difficult to make XCache working with HHVM. If you are new to HP Cloud, You can read guides on how to install Nginx PHP5-FPM to run WordPress.

 

Steps to Create a XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

 

We are taking it granted that, you have XCache installed on your instance. You can check whether XCache is installed or not by running this command :

Advertisement

---

Vim
1
php –v

You can check which php.ini is working by running this command :

Vim
1
php –i | grep php.ini

You should follow our previous guides to have a uniform setup. It is becomes difficult for a new user to follow hundreds of guides. If you cd to /usr/share/xcache/, you’ll see a directory named htdocs. Within that htdocs you’ll see these files :

Vim
1
2
cacher  config.default.php  coverager  index.php
common  config.example.php  diagnosis

You should check the files if you need to modify. Normally, Nginx has the public directory root at /usr/share/nginx/html, but on HP Cloud, it can be /var/www/html. That htdocs should be symlinked at public directory root like at /usr/share/nginx/html.

The thing does not work mainly for wrong smymlink. It should be like :

/usr/share/nginx/html

Vim
1
2
3
cd /usr/share/nginx/html
ln –s /usr/share/xcache/htdocs xcache
# ln –s </path/to/xcache> </path/to/public/dir>

Restart once :

/usr/share/nginx/html

Vim
1
service php5–fpm restart && service nginx restart

If you are getting error with php5-fpm restart, you should use my git to fix the php5-fpm restart issue.

Now if you visit the IP based location via browser :

Vim
1
http://15.01.02.123/xcache

You will get the user login page. Password is non-MD5 password. After login, you can view the option screen, like it is diagnostic page :

XCache Admin Page on Nginx-PHP5-FPM

This can happen, if you use HHVM with PHP5-FPM. In that case, you have process PHP files via PHP5-FPM, you need this thing :

(HHVM plus PHP5-FPM settings, not for regular PHP5-FPM)

Vim
1
2
3
4
5
6
location ~ .php$ {
        try_files $uri /index.php;
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php5–fpm.sock;
        #fastcgi_pass 127.0.0.1:9000;
        }

fastcgi_pass 127.0.0.1:9000 is for HHVM and fastcgi_pass unix:/var/run/php5-fpm.sock is for PHP5-FPM. Your other location settings will remain the same. It is difficult to use this settings as it create issue with subdirectories. You can try location modifier of nginx. That is we said, it is very difficult to make XCache working with HHVM.

You can try this :

Vim
1
2
3
4
5
6
7
location /xcache/ {
        #alias /usr/share/xcache/;
        try_files $uri /index.php;
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php5–fpm.sock;
        #fastcgi_pass 127.0.0.1:9000;
        }

and restart the services :

Vim
1
2
3
nginx –t && service php5–fpm restart
# edit if nginx –t fails
service hhvm restart && service nginx restart

You’ll add it where the location directive for /doc/ is written. / means /usr/share/. Basically the compilation looks for .ini at PHP5’s location. HHVM is not hugely great. Tweaking PHP5-FPM can give far better result with good setup. Most importantly, PHP5-FPM has lot of docs. HHVM for WordPress is still risks. It is not easy to switch back. You can edit the CLI of php.ini to check your luck in making XCache working. But that web interface will not work.

Tagged With nginx admin page , paperuri:(872cca1b5adead826ff7c34048888080) , xcache nginx
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install WordPress on Nginx With HHVM on Ubuntu Cloud Server

    Here is Step by Step Guide to Install WordPress on Nginx With HHVM on Ubuntu Cloud Server. This simple and most easy standalone HHVM only guide. We talked about HipHop Virtual Machine or HHVM in order article. Normally, with Nginx, we use PHP5-FPM. This guide is how to install WordPress on Nginx with HHVM on […]

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Ubuntu Nginx PHP5-FPM UNIX Socket Configuration

    Some Extra Steps Needed to Perform in Ubuntu for the Right Nginx PHP5-FPM UNIX Socket Configuration. Else You’ll Face Random 502, 504 Error.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy