Erreurs 500 avec apache2/php5
Bonjour,
J'ai installé apache2 et php5 sur ubuntu 7.10.
Lorsque j'essaie d'exécuter un script hello.php, l'erreur "500 Internal Server Error" apparaît :
Citation:
<< Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log. >>
Que se passe-t-il ?
Voici mon script et les packages installés :
php hello.php
Code:
1 2 3 4 5 6 7 8 9
| <html>
<head>
<title>Test PHP</title>
</head>
<body>
<H1 align="center">
Hello</H1>
</body>
</html> |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| root@jfact-laptop:~# dpkg -l | grep apache
ii apache2 2.2.4-3build1 Next generation, scalable, extendable web se
ii apache2-doc 2.2.4-3build1 documentation for apache2
ii apache2-mpm-prefork 2.2.4-3build1 Traditional model for Apache HTTPD
ii apache2-threaded-dev 2.2.4-3build1 development headers for apache2
ii apache2-utils 2.2.4-3build1 utility programs for webservers
ii apache2.2-common 2.2.4-3build1 Next generation, scalable, extendable web se
ii libapache2-mod-auth-mysql 4.3.9-4 Apache 2 module for MySQL authentication
ii libapache2-mod-auth-plain 2.0.48-4-2.2ubuntu1 Module for Apache2 which provides plaintext
ii libapache2-mod-fastcgi 2.4.2-8build1 Apache 2 FastCGI module for long-running CGI
ii libapache2-mod-log-sql 1.100-10 Use SQL to store/write your apache queries l
ii libapache2-mod-log-sql-mysql 1.100-10 Use SQL to store/write your apache queries l
ii libapache2-mod-log-sql-ssl 1.100-10 Use SQL to store/write your apache queries l
ii libapache2-mod-perl2 2.0.2-2.4ubuntu1 Integration of perl with the Apache2 web ser
ii libapache2-mod-perl2-dev 2.0.2-2.4ubuntu1 Integration of perl with the Apache2 web ser
ii libapache2-mod-perl2-doc 2.0.2-2.4ubuntu1 Integration of perl with the Apache2 web ser
ii libapache2-mod-php5 5.2.3-1ubuntu6 server-side, HTML-embedded scripting languag
ii libapache2-mod-python 3.3.1-2 Apache 2 module that embeds Python within th
ii libapache2-mod-python-doc 3.3.1-2 Apache 2 module that embeds Python within th
ii libapache2-mod-suphp 0.6.2-1ubuntu1 Apache2 module to run php scripts with the o |
Code:
1 2 3 4 5 6 7 8
| root@jfact-laptop:~# dpkg -l | grep php5
ii libapache2-mod-php5 5.2.3-1ubuntu6 server-side, HTML-embedded scripting languag
ii php5 5.2.3-1ubuntu6 server-side, HTML-embedded scripting languag
ii php5-cgi 5.2.3-1ubuntu6 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.3-1ubuntu6 command-line interpreter for the php5 script
ii php5-common 5.2.3-1ubuntu6 Common files for packages built from the php
ii php5-gd 5.2.3-1ubuntu6 GD module for php5
ii php5-mysql 5.2.3-1ubuntu6 MySQL module for php5 |