Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # list of available packages on C9
- $ c9pm list
- # install PHP 5.4 (5.4.14 in this case)
- $ c9pm install php-5.4.14
- # make sure we got it
- $ php --version
- PHP 5.4.14 (cli) (built: May 1 2013 13:35:32)
- Copyright (c) 1997-2013 The PHP Group
- Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
- # let's test
- $ mkdir test && cd test
- $ echo '<?php echo "test";' > test.php
- # run the server
- $ php -S $IP:$PORT
- Listening on http://111.111.111.111:8080
- Document root is /var/lib/something/cfb5b00024d/app-root/data/857528/test
- Press Ctrl-C to quit.
- # now you should be able to access that server here
- https://[your-webapp-name]-c9-[your-user-name].c9.io/test.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement