Advertisement
imehesz

PHP 5.4 server on Cloud9 (C9)

May 11th, 2014
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # list of available packages on C9
  2. $ c9pm list
  3.  
  4. # install PHP 5.4 (5.4.14 in this case)
  5. $ c9pm install php-5.4.14
  6.  
  7. # make sure we got it
  8. $ php --version
  9.  
  10. PHP 5.4.14 (cli) (built: May 1 2013 13:35:32)
  11. Copyright (c) 1997-2013 The PHP Group
  12. Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
  13.  
  14. # let's test
  15. $ mkdir test && cd test
  16.  
  17. $ echo '<?php echo "test";' > test.php
  18.  
  19. # run the server
  20. $ php -S $IP:$PORT
  21.  
  22. Listening on http://111.111.111.111:8080
  23. Document root is /var/lib/something/cfb5b00024d/app-root/data/857528/test
  24. Press Ctrl-C to quit.
  25.  
  26. # now you should be able to access that server here
  27. https://[your-webapp-name]-c9-[your-user-name].c9.io/test.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement