Luciano Furtado wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Check if you have those on your /etc/
lrwxrwxrwx 1 root root 27 2010-12-08 11:47 php5.load ->
../mods-available/php5.load
lrwxrwxrwx 1 root root 27 2010-12-08 11:47 php5.conf ->
../mods-available/php5.conf
lrfurtado@lrfurtado:/etc/apache2/mods-enabled$ cat php5*
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
lrfurtado@lrfurtado:/etc/apache2/mods-enabled$
I've got php5.load, php5.conf as describe above.
But
/etc/apache2/mods-enabled$ car php5* does not show quite the same result
as above :
cgvy@nom-9d3520e2b5c:/etc/apache2/mods-enabled$ cat php5*
<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>
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
cgvy@nom-9d3520e2b5c:/etc/apache2/mods-enabled$
My attention got caught by the three lines of comments : "# To re-enable..."
So, I went to /etc/apache2/mods-available/, and edited php5.conf so as
to comment the five said lines. Since then, my index.php files seem to
be reckognized as such, I still have to work on it, but I know think
that it will be OK.
Thanks to everyone for your help
On 11-03-18 15:59, Bernard wrote:
Hi to Everyone,
I just finished installing Apache, mysql and php on a new laptop on
Squeeze. The server works fine (http://localhost sends a "it works"
message), MySQL also works fine, as I have been able to copy a database
from my Desktop under Lenny. PHP 5.3.3-7 ('with suhosin v0.9.32.1') has
been installed.
Problem is:
http://localhost/MyDirectory/index.php => doesn't work ! The system
proposes that I download the file 'index.php' ! *.html files are
treated, but not *.php. The same system does operate allright on my
Desktop under Lenny (not the same versions of php an mysql though)
Am I missing something ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNg8q8AAoJENgwSj9ZOOwrSd0IAKNvMzN0lLSMQOKPuxMXJbYu
msyaRJZvQ9hdrojZXDLJbtBA+NOhNqJ3aAxzNQPWfHQisM8Z1g4GgZNNiPtS9TcQ
8RPST10QvIP4sZjbzQYIfa6AcjM4ww49tRSSbJKZtqCeUjR8RuCLw0BkgQqWCy+P
/Q5Y1yu82icUYohCqhLwa+VgCeah+cblsps9X1YR1Rh0VvnJiwOEuYqToYBsa7Uc
NZ/fzzzxBmIXP7N4D6OGZojEX5mYwdCujDqOSLO4w5v41ucSh9eYeIzgb7xMOux3
c35WgvLR/0Z8eowO64czdDJb0ibIUdrL3msdCq8s7nLK/ADRlg6dOAmuVAOVa1U=
=J6e1
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d85030c.6090...@teaser.fr