Preserved Topic: Sendmail, PHP and Apache (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden |
posted 03-23-2001 19:41
I've been trying to get the mail function in PHP to work, which is doesn't, so I figured this must the problem, right? |
Neurotic (0) Inmate Newly admitted |
posted 03-23-2001 19:52
my boyfriend says: edit your php.ini, and look for the path to sendmail. dont you mean "which sendmail" instead of "which perl"? |
Bipolar (III) Inmate From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden |
posted 03-23-2001 22:43
No, I mean sendmail, I'm not using Perl. I can't find a php.ini file, isn't that just for Windows? I forgot to mention, the server is a Linux machine. I was hoping to find a text file that tells me the path (like an ini file) but I don't know if there is one or where to look for it. Really, the server admin should fix this, but it takes forever and since I have access, I wanna fix it (or muck it up? heh) myself. |
Neurotic (0) Inmate Newly admitted |
posted 03-23-2001 22:51
my boyfriend says: "updatedb" will update the locate database and then "locate php.ini" will tell you where it is. php.ini isn't always in the same spot, depending on the OS and the way php was installed. its usually in /usr/local/lib though. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-23-2001 23:04 |
Nervous Wreck (II) Inmate From: Ontario |
posted 03-24-2001 04:29
I know you mean sendmail dude, that's what I was saying. You wrote "but the command which perl says it's in /usr/bin/sendmail". Which perl will give you the location of perl, obviously. Hence the "don't you mean which sendmail, instead of which perl". |
Bipolar (III) Inmate From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden |
posted 03-24-2001 07:19
Thanks GenericPlayer, and welcome to the Asylum, I really appreciate your help. Sorry, I meant to write which sendmail ... you are absolutely right. I sometimes read what I *think* it says, not what it *really* says. I tried "locate php.ini " but it didn't return anything though. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2001 08:02
GenericPlayer, I never said that php.ini is available anywhere (read my reply again). On older systems (i.e. RH6), php.ini is located in the same folder where Apache configuration files are. Using "/usr/local/lib" is a new trend (and not widely used, yet), before it was "/etc" (for configuration files).... |
Neurotic (0) Inmate Newly admitted |
posted 03-24-2001 10:39
Hey GenericPlayer...on your site "my-balls.com"...you might not want to leave phpinfo() in your index page...some "malicious person" could have quite a bit of fun with all of that pretty information...and by the way...calm down, the wise ass crack wasn't needed, take a joke... |
Nervous Wreck (II) Inmate From: Ontario |
posted 03-24-2001 15:47
Did you do an "updatedb" first? Locate just looks through a pre-built database to find what you are looking for, so if that database is old, you won't find what you want that way. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2001 16:38
Packages can save some time (especially when tracking dependencies). Anyway, I was talking about RPMs from RedHat's RawHide, so it was RedHat's decision to put config files in /etc and not someone else's. Oh, and when I said "new trend", I was meant to say that RedHat has changed some locations in their packages for the latest release(s) of RH Linux. |
Nervous Wreck (II) Inmate From: Ontario |
posted 03-24-2001 16:49
Redhat is someone else, that's what I mean. RPMs are bad because they don't let you control your system, and as a packing sytem, it has alot of issues with different versions of different dependencies breaking too many things. I misunderstood your new trend comment because I sometimes forget people think unix is redhat and redhat is unix. What redhat does with their packages is meaningless, there are still filesystem hierarchy standards, just because a certain package by a certain company does things weird, doesn't make it a trend. |
Bipolar (III) Inmate From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden |
posted 03-24-2001 19:12 |
Nervous Wreck (II) Inmate From: Ontario |
posted 03-24-2001 20:00
Doh! I should have thought of that. Did you get the mail function working now? |
Bipolar (III) Inmate From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden |
posted 03-24-2001 20:18
You know, this is bloody strange. I've been trying to get the so simple mail function in php to work for me, and it used but somehow stopped functioning. So I've been messing around plenty trying to figure out why it doesn't work. The php3.ini file was fine, so I just happened to try with Netscape instead of with IE. Then it worked... it seems that IE 5.5 was using the cached script file instead of the fresh version on the website. I haven't changed anything except emtying the IE cache, and it now works fine. |
Nervous Wreck (II) Inmate From: Ontario |
posted 03-24-2001 21:07
Yep, auth directives will protect your whole directory, and depending on how you set it, can also protect subdirectories. If someone knows the name of the file, and they try to go to it directly, it'll still prompt for their password. You can either put it in a .htaccess, or you can just stick it right in the httpd.conf if you are on your own server. |