Asked by duncanb7
at 2024-11-13 06:04:10
Point:500 Replies:2 POST_ID:828787USER_ID:11059
Topic:
PHP Scripting Language;C++ Programming Language;Facebook
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
=================
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
=================