HOME IRC
gelignite
Promotion
Nutzloses Wissen
Deine IP:
3.238.90.95

Dein Host:
ec2-3-238-90-95.compute-1.amazonaws.com

Seitenaufbau dauerte:


Aktuelle Uhrzeit (UTC):
05-10-2022 19:07:22

Letzten Lottozahlen [?]:
1, 3, 19, 37, 43, 49
SZ: 0
Tipps und Tricks
zurück

PHP scripts are offered for download instead of being processed


Direct link:
Tips und Tricks #13
Bezug:
PHP 5, Apache (Zend, ASF)

Details:
Assuming you have every package required installed and PHP scripts are still offered for download instead of being processed, you want to check the following:
  1. sudo a2enmod php5 (in a shell) to activate PHP module in Apache
  2. Reconfigure /etc/apache2/mods-available/php5.conf as shown below
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
</IfModule>
Remember to restart Apache afterwards. (To make that clear: Restart means stop followed by start!)
Letzte Meldungen
13.08.2011 - Counter-Strike GO ...[more]

10.04.2011 - Monday Night Combat ...[more]

25.02.2011 - Humorvolles ...[more]

23.01.2011 - 1.5 GHz, 3 GB Speicher, ... ...[more]

20.01.2011 - Liste der QuakeNet Achievements und wie man sie bekommt bereitgestellt ...[more]

31.12.2010 - Guten Rutsch ...[more]

16.12.2010 - gelignAIte - Official Release ...[more]

11.11.2010 - openTTD AI ...[more]

26.10.2010 - Zeitreisen scheinen möglich ...[more]

04.09.2010 - Abschaltung "index.php4" ...[more]

Umfrage
Lieber ATI oder NVidia?

Legal notes
© 2000 - 2021 The Black Eagle Eyes, Alle Rechte vorbehalten