Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin admin@example.com
- ServerName tst01.local
- DocumentRoot "/home/tst01/public_html"
- #for suexec
- SuexecUserGroup tst01 tst01
- ScriptAlias /php5-cgi /home/tst01/bin/php-cgi
- Action php5-cgi /php5-cgi
- AddHandler php5-cgi .php
- <Directory /home/tst01/public_html>
- Options Indexes FollowSymLinks
- AllowOverride all
- Require all granted
- </Directory>
- <Directory /home/tst01/bin>
- Options Indexes FollowSymLinks ExecCGI
- AllowOverride all
- Require all granted
- </Directory>
- ErrorLog /home/tst01/logs/error.log
- CustomLog /home/tst01/logs/access.log combined
- </VirtualHost>
- <?php echo "Output of the 'whoami' command:<br /><br />";
- echo exec('/usr/bin/whoami');?>
- #!/bin/bash
- /usr/local/php5p5/bin/php-cgi "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement