PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache and PHP/Perl not work
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache and PHP/Perl not work

Réponse
 
LinkBack Outils de la discussion
Vieux 07/05/2007, 11h30   #1
Bastie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache and PHP/Perl not work

Hello,
I try to use a self configured apache server with php and perl on
windows XP prof. I unpacked the apache 2.2.4, active perl 5.8.8 and
php 5.2.1, change the httpd-win.conf and start the apache with -f
option. It is a development pc and I need later some versions from
php, perl and tomcat.

I take my browser and start and the sun is shining. Now the URL of
Perl script and the rain ...:

-------------------------------------------------------------------------------
Browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator,
Sebastian.Ritter@senfin.verwalt-berlin.de 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.

Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
-------------------------------------------------------------------------------

The self answer com with PHP - so I hope and living in pain - the self
configuration error. The error log says nothing more than:
-------------------------------------------------------------------------------
error log:
[Mon May 07 11:54:35 2007] [error] [client 127.0.0.1] Premature end of
script headers: perl.exe, referer: http://localhost
[Mon May 07 12:01:19 2007] [error] [client 127.0.0.1] Premature end of
script headers: php.exe, referer: http://localhost
-------------------------------------------------------------------------------

The httpd-win.conf has some line and here are - so I hope - the
important:
-------------------------------------------------------------------------------
ServerRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
program files/Apache Software Foundation/Apache2.2"
Listen 80
ServerName localhost:80
DocumentRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
program files/Apache Software Foundation/Apache2.2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
Satisfy all
</Directory>
<Directory "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
program files/Apache Software Foundation/Apache2.2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mime_module>
...
#Perl
ScriptAlias /perl/ "C:/Dokumente und Einstellungen/xyz/Desktop/
ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/bin/"
AddType application/x-httpd-perl .pl
Action application/x-httpd-perl "/perl/perl.exe"

# PHP
ScriptAlias /php/ "C:/Dokumente und Einstellungen/xyz/Desktop/
php-5.2.1-Win32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php/php.exe"

</IfModule>

-------------------------------------------------------------------------------

thanx
Sebastian

  Réponse avec citation
Vieux 07/05/2007, 14h21   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache and PHP/Perl not work

On May 7, 11:30 am, Bastie <Real.Bas...@googlemail.com> wrote:
> Hello,
> I try to use a self configured apache server with php and perl on
> windows XP prof. I unpacked the apache 2.2.4, active perl 5.8.8 and
> php 5.2.1, change the httpd-win.conf and start the apache with -f
> option. It is a development pc and I need later some versions from
> php, perl and tomcat.
>
> I take my browser and start and the sun is shining. Now the URL of
> Perl script and the rain ...:
>
> -------------------------------------------------------------------------------
> Browser:
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator,
> Sebastian.Rit...@senfin.verwalt-berlin.de 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.
>
> Additionally, a 500 Internal Server Error error was encountered while
> trying to use an ErrorDocument to handle the request.
> -------------------------------------------------------------------------------
>
> The self answer com with PHP - so I hope and living in pain - the self
> configuration error. The error log says nothing more than:
> -------------------------------------------------------------------------------
> error log:
> [Mon May 07 11:54:35 2007] [error] [client 127.0.0.1] Premature end of
> script headers: perl.exe, referer:http://localhost
> [Mon May 07 12:01:19 2007] [error] [client 127.0.0.1] Premature end of
> script headers: php.exe, referer:http://localhost
> -------------------------------------------------------------------------------
>
> The httpd-win.conf has some line and here are - so I hope - the
> important:
> -------------------------------------------------------------------------------
> ServerRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
> program files/Apache Software Foundation/Apache2.2"
> Listen 80
> ServerName localhost:80
> DocumentRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
> program files/Apache Software Foundation/Apache2.2/htdocs"
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> Order allow,deny
> allow from all
> Satisfy all
> </Directory>
> <Directory "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
> program files/Apache Software Foundation/Apache2.2/htdocs">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> <IfModule mime_module>
> ...
> #Perl
> ScriptAlias /perl/ "C:/Dokumente und Einstellungen/xyz/Desktop/
> ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/bin/"
> AddType application/x-httpd-perl .pl
> Action application/x-httpd-perl "/perl/perl.exe"
>
> # PHP
> ScriptAlias /php/ "C:/Dokumente und Einstellungen/xyz/Desktop/
> php-5.2.1-Win32/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> Action application/x-httpd-php "/php/php.exe"
>
> </IfModule>
>
> -------------------------------------------------------------------------------
>
> thanx
> Sebastian


use xampp, it works out of the box.
http://www.apachefriends.de

  Réponse avec citation
Vieux 07/05/2007, 14h35   #3
André, PE1PQX
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache and PHP/Perl not work

shimmyshack beweerde :
> On May 7, 11:30 am, Bastie <Real.Bas...@googlemail.com> wrote:
>> Hello,
>> I try to use a self configured apache server with php and perl on
>> windows XP prof. I unpacked the apache 2.2.4, active perl 5.8.8 and
>> php 5.2.1, change the httpd-win.conf and start the apache with -f
>> option. It is a development pc and I need later some versions from
>> php, perl and tomcat.
>>
>> I take my browser and start and the sun is shining. Now the URL of
>> Perl script and the rain ...:
>>
>> -------------------------------------------------------------------------------
>> Browser:
>> Internal Server Error
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>
>> Please contact the server administrator,
>> Sebastian.Rit...@senfin.verwalt-berlin.de 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.
>>
>> Additionally, a 500 Internal Server Error error was encountered while
>> trying to use an ErrorDocument to handle the request.
>> -------------------------------------------------------------------------------
>>
>> The self answer com with PHP - so I hope and living in pain - the self
>> configuration error. The error log says nothing more than:
>> -------------------------------------------------------------------------------
>> error log:
>> [Mon May 07 11:54:35 2007] [error] [client 127.0.0.1] Premature end of
>> script headers: perl.exe, referer:http://localhost
>> [Mon May 07 12:01:19 2007] [error] [client 127.0.0.1] Premature end of
>> script headers: php.exe, referer:http://localhost
>> -------------------------------------------------------------------------------
>>
>> The httpd-win.conf has some line and here are - so I hope - the
>> important:
>> -------------------------------------------------------------------------------
>> ServerRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
>> program files/Apache Software Foundation/Apache2.2"
>> Listen 80
>> ServerName localhost:80
>> DocumentRoot "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
>> program files/Apache Software Foundation/Apache2.2/htdocs"
>> <Directory />
>> Options FollowSymLinks
>> AllowOverride None
>> Order allow,deny
>> allow from all
>> Satisfy all
>> </Directory>
>> <Directory "C:/Dokumente und Einstellungen/xyz/Desktop/Apache_2.2.4/
>> program files/Apache Software Foundation/Apache2.2/htdocs">
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>> </Directory>
>> <IfModule mime_module>
>> ...
>> #Perl
>> ScriptAlias /perl/ "C:/Dokumente und Einstellungen/xyz/Desktop/
>> ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/bin/"
>> AddType application/x-httpd-perl .pl
>> Action application/x-httpd-perl "/perl/perl.exe"
>>
>> # PHP
>> ScriptAlias /php/ "C:/Dokumente und Einstellungen/xyz/Desktop/
>> php-5.2.1-Win32/"
>> AddType application/x-httpd-php .php
>> AddType application/x-httpd-php .php3
>> AddType application/x-httpd-php .php4
>> Action application/x-httpd-php "/php/php.exe"
>>
>> </IfModule>
>>
>> -------------------------------------------------------------------------------
>>
>> thanx
>> Sebastian

>
> use xampp, it works out of the box.
> http://www.apachefriends.de


Also WAMP-server works very good: www.wampserver.com/en


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h15.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15661 seconds with 11 queries