Ich bin gerade dabei, ein Formmailer cgi - script zu installieren, wobei ich damit bisher keine Erfahrungen habe und daher gestern früh das Buch "cgi-Scriptprogrammierung - Das Einsteigerseminar" gelesen habe.
Soweit so gut. Ich benutze die xampp 1.4.13, in der auch das Unterverzeichnis sendmail existiert.
Ich habe die xamp in d:\xampp
sendmail ist dann analog d:\xampp\sendmail\sendmail.exe
In der php.ini hab ich eingetragen
- Code: Select all
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;GG sendmail war auskommentiert
sendmail_path = d:\xampp\sendmail\sendmail -t i
In meinem cgi-script steht:
- Code: Select all
sub send {
✓
unless($mailprog){
foreach ("/bin/sendmail","/sbin/sendmail","/usr/lib/sendmail","/usr/bin/sendmail","/usr/share/sendmail","/usr/sbin/sendmail","/usr/bin/sendmail.restart","/sendmail/sendmail", "./../sendmail/sendmail", "D:\xampp\sendmail\sendmail", "/etc/sendmail.cw","/usr/man/man8/sendmail.8","/var/qmail/bin/qmail-inject")
In der xampp\apache\conf\httpd.conf hab ich eingetragen
- Code: Select all
#GG hier wohl wg was als cgi - Verzeichnis genommen wird.
#
ScriptAlias /cgi-bin/ "/xampp/htdocs/cgi-bin/"
#
# "/xampp/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/xampp/htdocs/cgi-bin">
AllowOverride None
Options Includes ExecCGI
AddHandler server-parsed .shtml
AddHandler cgi-script .cgi .pl
Order allow,deny
Allow from all
</Directory>
da ich die cgis im htdocs drin hab.
Mercury Mail funktioniert auch beim Testmail - Verschicken.
Also ich glaube, ich (als Nichtprogrammierer) komme hier ohne Eure Hilfe beim besten Willen nicht weiter.
Bitte seid so gut und helft mir, bittttttteeeee!
P.S:
Was ich auch nicht verstehe, ist, warum ich im URI das cgi-Verzeichnis groß schreiben muss, obwohl das Verzeichnis klein angelegt ist
- Code: Select all
http://localhost/CGI-BIN/mailer/mailer.cgi
Bei der physikaisch eigentlich richtigen Kleinschreibung kommt die Meldung
- Code: Select all
The requested URL /cgi-bin/mailer/mailer.cgi was not found on this server.