Spinal
MB Enthusiast
- Joined
- Sep 14, 2004
- Messages
- 4,806
- Location
- between Uxbridge and the Alps
- Car
- x254, G350, Duster, S320, Mach1, 900ss and a few more
Howdy! First and foremost, if you clicked on this thread; congratulations! You are either curious enough to wonder what the acronyms mean - or you know what they mean and may be able to help me! Either way... keep reading!
I've enabled PHP and mysql on one of the boxes I'm administering. The box runs as an internal-website (i.e. DNS entry on our internal DNS server, but no port forwarding specifically to the box so the outside world can't "see" the box).
The box runs OsX (10.4.8); apache (some version) (neither installed by me) - and now Apache's php and mysql add-ons. I configured php and mysql this afternoon, and both are working quite happily. php I did as such (in httpd.conf)
Uncommented:
Added:
Now, I typed up a quick html page; something on the lines of:
and a quick php script:
(the *** replace my email at work)
Now, if I give the whole thing a blast, it happily replies with "Congratulations your email has been sent" - which is good... php hasn't crashed, no errors, bla bla...
BUT... nothing ever comes through on the mail client side... I've tried alternative email addresses... nada... My first idea was that as the box is behind a proxy, the proxy might be filtering everything out (the proxy is set up in such a way that EVERYTHING needs to go through a specific IPORT to get to the outside world)... But the box is configures to go through that proxy (and can connect to the net). Does apache or unix's sendmail need their own proxy configs?
If not, any ideas? I'm at a total loss...
Michele
I've enabled PHP and mysql on one of the boxes I'm administering. The box runs as an internal-website (i.e. DNS entry on our internal DNS server, but no port forwarding specifically to the box so the outside world can't "see" the box).
The box runs OsX (10.4.8); apache (some version) (neither installed by me) - and now Apache's php and mysql add-ons. I configured php and mysql this afternoon, and both are working quite happily. php I did as such (in httpd.conf)
Uncommented:
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
Added:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.htm
</IfModule>
Now, I typed up a quick html page; something on the lines of:
<form method="get" action="sendmail.php"><br />
Email: < input name="email" type="text" /><br/>
Message:<textarea name="message" rows="10" cols="30"></textarea><br />
<input type="submit" /></form>
and a quick php script:
<?$email = $_GET['email'] ;
$message = $_GET['message'] ;
mail( "***@***-england.co.uk", "Email Subject", $message, "From: $email" );
print "Congratulations your email has been sent";
?>
(the *** replace my email at work)
Now, if I give the whole thing a blast, it happily replies with "Congratulations your email has been sent" - which is good... php hasn't crashed, no errors, bla bla...
BUT... nothing ever comes through on the mail client side... I've tried alternative email addresses... nada... My first idea was that as the box is behind a proxy, the proxy might be filtering everything out (the proxy is set up in such a way that EVERYTHING needs to go through a specific IPORT to get to the outside world)... But the box is configures to go through that proxy (and can connect to the net). Does apache or unix's sendmail need their own proxy configs?
If not, any ideas? I'm at a total loss...
Michele