Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin admin@example.com
  3. ServerName tst01.local
  4. DocumentRoot "/home/tst01/public_html"
  5.  
  6. #for suexec
  7. SuexecUserGroup tst01 tst01
  8. ScriptAlias /php5-cgi /home/tst01/bin/php-cgi
  9. Action php5-cgi /php5-cgi
  10. AddHandler php5-cgi .php
  11.  
  12.  
  13. <Directory /home/tst01/public_html>
  14. Options Indexes FollowSymLinks
  15. AllowOverride all
  16. Require all granted
  17. </Directory>
  18.  
  19. <Directory /home/tst01/bin>
  20. Options Indexes FollowSymLinks ExecCGI
  21. AllowOverride all
  22. Require all granted
  23. </Directory>
  24.  
  25. ErrorLog /home/tst01/logs/error.log
  26. CustomLog /home/tst01/logs/access.log combined
  27. </VirtualHost>
  28.  
  29. <?php echo "Output of the 'whoami' command:<br /><br />";
  30. echo exec('/usr/bin/whoami');?>
  31.  
  32. #!/bin/bash
  33. /usr/local/php5p5/bin/php-cgi "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement