• 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

This Article Has Been Shared 732 Times!

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)

  • Cloud Computing is not a file hosting service and PaaS is not a CDN!

    Cloud Computing is Not synonymous with File hosting service and there is difference between a PaaS and a dedicated Content Delivery Network (CDN).

  • Cloud Computing and Airline Industry

    Cloud Computing Airline Industry might appear to most as separate and unrelated. Fact is, Airline Industry needs space on centralized host and softwares.

  • Cloud Server and Cloud Storage : Overview of Cloud Market

    Cloud Server and Cloud Storage right now has quite good competition.Appropriately it can be compared with virtual marketplace.Here is overview of Cloud Market.

  • Is It Reasonable to Consider Google Paid Cloud Services ?

    Is It Reasonable to Consider Google Paid Cloud Services ? When it is about Paid Hosting Services from Google Cloud, definitely it is a bad option unlike free.

  • Running Micro Cloud Foundry on localhost : Basics

    Running Micro Cloud Foundry on localhost has the advantage of getting a standalone virtualized environment for testing purpose. Here is a brief startup guide.

Additionally, 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

  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023
  • What is COB LED? How LED Chip On Board Works January 20, 2023

About This Article

Cite this article as: Abhishek Ghosh, "XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)," in The Customize Windows, February 16, 2015, January 27, 2023, https://thecustomizewindows.com/2015/02/xcache-admin-page-nginx-php5-fpm-ubuntu-hp-cloud/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT