UserDirectoryPHP
Differences between revisions 1 and 2
|
⇤ ← Revision 1 as of 2006-04-28 08:02:50
Size: 660
Comment:
|
Size: 680
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| {{sudo apt-get install apache2 php5-cgi}} | {{{sudo apt-get install apache2 php5-cgi}}} |
| Line 7: | Line 8: |
| {{sudo update-binfmts --install PHP /usr/bin/php5-cgi --extension php}} | {{{sudo update-binfmts --install PHP /usr/bin/php5-cgi --extension php}}} |
| Line 10: | Line 12: |
| {{sudo cp /etc/apache2/mods-available/actions.* /etc/apache2/mods-enabled/actions.*}} | {{{sudo cp /etc/apache2/mods-available/actions.* /etc/apache2/mods-enabled/actions.*}}} |
| Line 13: | Line 16: |
| {{AddType application/x-httpd-php .php}} | {{{AddType application/x-httpd-php .php}}} |
| Line 16: | Line 20: |
| {{Action application/x-httpd-php /usr/bin/php5}} | {{{Action application/x-httpd-php /usr/bin/php5}}} |
Warning: This procedure does not work yet.
Install Apache 2 and PHP 5.
sudo apt-get install apache2 php5-cgi
Configure PHP 5 to run .php scripts from the shell.
sudo update-binfmts --install PHP /usr/bin/php5-cgi --extension php
Enable Apache's "Actions" module.
sudo cp /etc/apache2/mods-available/actions.* /etc/apache2/mods-enabled/actions.*
Enable Apache's handling of PHP files. Uncomment the following line from /etc/apache2/apache2.conf:
AddType application/x-httpd-php .php
Add an action to handle PHP files. Add the following line beneath the one just uncommented:
Action application/x-httpd-php /usr/bin/php5