Toon posts:

[Plesk/apache] .pls executed as Perl? *

Pagina: 1
Acties:

Verwijderd

Topicstarter
Mijn Plesk-server blijft .pls files maar executen als Perl-files. In httpd.conf en perl.conf en andere include-files staat geen .pls

.pls => Winamp Playlist

MIME type text/plain leek ook niet te helpen dmv .htaccess

code:
1
2
3
[Fri Feb 13 16:27:03 2004] [error] 14346: ModPerl::Registry: syntax error at 
/home/httpd/vhosts/xxx.nl/httpdocs/playlist.pls 
line 2, near "]!numberofentries"!


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[root@server02 conf.d]# cat perl.conf
#
# Mod_perl incorporates a Perl interpreter into the Apache web server,
# so that the Apache web server can directly execute Perl code.
# Mod_perl links the Perl runtime library into the Apache web server
# and provides an object-oriented Perl interface for Apache's C
# language API.  The end result is a quicker CGI script turnaround
# process, since no external Perl interpreter has to be started.
#

LoadModule perl_module modules/mod_perl.so

# This will allow execution of mod_perl to compile your scripts to
# subroutines which it will execute directly, avoiding the costly
# compile process for most requests.
#
#Alias /perl /var/www/perl
#<Directory /var/www/perl>
#    SetHandler perl-script
#    PerlHandler ModPerl::Registry::handler
#    PerlOptions +ParseHeaders
#    Options +ExecCGI
#</Directory>
[root@server02 conf.d]#

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Dit lijkt mij een configuratieprobleem, en configuratieproblemen horen in SA.

Kijk trouwens ook even op het forum van plesk of je daar je antwoord kunt vinden :)

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
Ik heb zowel op het Plesk-forum als op Hostnexus (via Google) een thread gevonden waarbij men hetzelfde probleem had.

Geen oplossing echter :/

http://forum.plesk.com/sh...highlight=winamp+playlist
http://www.hostnexus.com/forum/showthread.php?threadid=3484

Bij een chmod 644 krijg ik ook een forbidden error. (Hij probeert te executen terwijl hij dat niet eens mag proberen)

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

je zou kunnen proberen .pls expliciet als application/winamp-playlist mimetype ofzo toe te voegen in je configuratie?

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
De moeite waard :)
Maar werkte niet.

=>
Deze bestaat niet, maar als plain-text zou ook moeten werken.

Ik weet alleen niet waarom mijn Apache denkt dat Perl .pls moet uitvoeren!

[ Voor 14% gewijzigd door Verwijderd op 13-02-2004 21:09 ]


  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Welke versie apache is het?
edit:
Overigens niet minder belangrijk: welke versie Plesk? wellicht kan ik het reproduceren, wij draaien ook Plesk nl.

[ Voor 71% gewijzigd door drm op 13-02-2004 21:54 ]

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
Plesk 6.0.2
Apache/2.0.40

Verwijderd

Topicstarter
Heeft behalve drm echt niemand enig idee hoe ik dit op moet lossen?

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Ik kan het inderdaad reproduceren. Ik kom er alleen niet achter hoe je er vanaf komt. Ik zou zeggen een .htaccess met
code:
1
RemoveHandler .pls
zou genoeg moeten zijn, maar kennelijk niet ;)

Ik heb ook geprobeerd in de vhost.conf PerlOption -Enable te zetten, zodat Perl niet uitgevoerd wordt op die vhost, maar dan krijg ik een segmentation fault van apache :X

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
Opgelost door de klant :9
het probleem zit in plesk 6.0, het schijnt een algemeen fout te zijn, dat de ftp programma in plesk sommige bestanden die voor ASCI bestemd zijn onder binair copieerd, en dat is de fout , je moet ze selectief overzetten naar ASCI en dan gaat het goed, ik heb het gepoogd, en het is gelukt.
Pagina: 1