|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|