Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to run HIPHOP/HHVM on browser from VPS server CentOS6

Posted on 2013-11-13
2
Medium Priority
?
837 Views
Last Modified: 2013-11-17
Dear Experts,

After finishing complicated hiphop HHVM  installation on CentOS successfully, I can run
simple php script like as follows with hhvm command. I save the script it in test.php.

<?php echo "This is first HIPHOP example test on browser<br>"; ?>

At my VPS server's linux shell, I run the command at hhvm direcotory as follows

root@vps[/home/dev/hiphop/hiphop-php/hphp/hhvm/]# ./hhvm test.php

and it successfully echo out "This is first HIPHOP ...."  that is no issue
and it prove my  hiphop HHVM installation is done correctly.

Now My question is how I can echo out the test.php output on my browser ?
after I create configure file,  /etc/hhvm.hdf , and change its port from 80 to 8080 that change help not to  affect apache port 80 wbeserver operation, and
add "test.php" at line 27 in  code area

And then I did command for

root@vps[/home/dev/hiphop/hiphop-php/hphp/hhvm/]#hhvm -m server -c /etc/hhvm.hdf
where mylogin is my VPS server user acoount

And I go to browser and type www.mysite.com:8080  but it didn't
echo the test.php output result and report no file is found.

Why ?

Coud you provide simple instruction to finish my "hhvm  test.php "  on browser
as on linux shell ?

Please advise and appreciated your help

Duncan

HHVM.HDF file
=================
Server {
  Port = 8080
  SourceRoot = /var/www/
}

Eval {
  Jit = true
}
Log {
  Level = Error
  UseLogFile = true
  File = /var/log/hhvm/error.log
  Access {
    * {
      File = /var/log/hhvm/access.log
      Format = %h %l %u %t \"%r\" %>s %b
    }
  }
}

VirtualHost {
  * {
    Pattern = .*
    RewriteRules {
      dirindex {
        pattern = ^/(.*)/$
        to = $1/test.php
        qsa = true
      }
    }
  }
}

StaticFile {
  FilesMatch {
    * {
      pattern = .*\.(dll|exe)
      headers {
        * = Content-Disposition: attachment
      }
    }
  }
  Extensions {
    css = text/css
    gif = image/gif
    html = text/html
    jpe = image/jpeg
    jpeg = image/jpeg
    jpg = image/jpeg
    png = image/png
    tif = image/tiff
    tiff = image/tiff
    txt = text/plain
  }
}

Open in new window

0
Comment
Question by:duncanb7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 0 total points
ID: 39654384
during some experts to solve the yum install issue in following link , the suddenly hiphop is up
http://www.experts-exchange.com/Programming/Languages/C/Q_28296049.html#a39653816
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 39654385
Author has solved it finally
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question