Stop Microsoft
Miscellaneous => Programming & Networking => Topic started by: Laukev7 on 3 June 2004, 19:04
-
I have PHP on my webserver, and I am testing my webpages. It seems to work, but when I try to use the guestbook, it returns me the following message:
quote:
Method Not Allowed
The requested method POST is not allowed for the URL /addguest.php.
Is the problem in the PHP code? Or is there some configuration I have to change in my server?
Here is the file:
http://laukev7.sytes.net/addguest.php (http://laukev7.sytes.net/addguest.php)
-
I think you should chmod 777 addguest.php and try again...
-
Great! Thanks! But I now I get this message:
quote:
Warning: mail(): SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html (http://help.yahoo.com/help/us/mail/pop/pop-11.html) in c:\website\www\addguest.php on line 16
OK, this is PHP code. How do you do the authentification in PHP?
-
I think that php is configured by default to use sendmail to send mail (lol?). And I do not believe you have sendmail installed as you are using windows right now.
quote:
php.net says:
Requirements
For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.
http://us4.php.net/manual/en/ref.mail.php (http://us4.php.net/manual/en/ref.mail.php)
[ June 03, 2004: Message edited by: xyle_one ]
-
The server is on a Slackware box right now.
-
So why does the error message give a windows path name?
-
Oops. I forgot to transfer it! (http://redface.gif)
[ June 03, 2004: Message edited by: Laukev7 ]
-
Argh.
quote:
Method Not Allowed
The requested method POST is not allowed for the URL /addguest.php.
Apache/1.3.28 Server at laukev7.sytes.net Port 80
Back to the beginning. :mad: And yes, I did chmod the addguest.php to 777.
[ June 03, 2004: Message edited by: Laukev7 ]
-
Why can we view the php code for that page? Does the server actually support php?
-
quote:
Originally posted by flap:
Why can we view the php code for that page? Does the server actually support php?
Yeah, I'm trying to get that to work. I just set it up. Oh, wait, it was on the Windows computer that I set up PHP. I didn't even configure PHP on the Linux server yet...
Oh, damn, I'm so mixed up in my configurations...
[ June 03, 2004: Message edited by: Laukev7 ]
-
Aha, solved the problem! Yup, I had simply forgotten to configure PHP on the Linux server! Silly me. :D