Guest User

Untitled

a guest
Feb 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. root@ip-10-138-1-229 webapps]$ php -version
  2. PHP 5.3.29 (cli) (built: Aug 20 2014 16:41:34)
  3.  
  4. $ yum install php-5.4
  5. Loaded plugins: priorities, security, update-motd, upgrade-helper
  6. Setting up Install Process
  7. No package php-5.4 available.
  8. Error: Nothing to do
  9.  
  10. yum update php
  11. Dependencies Resolved
  12.  
  13. ===============================================================================================================================================================================
  14. Package Arch Version Repository Size
  15. ===============================================================================================================================================================================
  16. Updating:
  17. php x86_64 5.3.29-1.7.amzn1 amzn-main 2.8 M
  18. Updating for dependencies:
  19. php-bcmath x86_64 5.3.29-1.7.amzn1 amzn-main 52 k
  20. php-cli x86_64 5.3.29-1.7.amzn1 amzn-main 2.6 M
  21. php-common x86_64 5.3.29-1.7.amzn1 amzn-main 1.0 M
  22. php-gd x86_64 5.3.29-1.7.amzn1 amzn-main 219 k
  23. php-process x86_64 5.3.29-1.7.amzn1 amzn-main 66 k
  24. php-xml x86_64 5.3.29-1.7.amzn1 amzn-main 234 k
  25.  
  26. yum remove httpd*
  27. yum remove $(yum list installed | grep "php" | awk '{print $1}')
  28. yum install httpd24 php54
  29.  
  30. root@ip-10-138-1-229 nanoweb_2.2.6]$ php -S localhost:8000
  31. PHP 5.4.37 Development Server started at Fri Feb 20 20:31:22 2015
  32. Listening on http://localhost:8000
  33. Document root is /root/nanoweb_2.2.6
  34. Press Ctrl-C to quit.
Add Comment
Please, Sign In to add comment