PHP and Dreamhost

apps

#1

Hi,

I’ve been a dreamhost customer for 3+ years and Ive been using CGI/Perl programs up until now. I just started to use PHP scripts and have had problems with the email portion of the scripts…they simply dont work.

I’ve purchased two fairly expensive off-the-shelf scripts from 2 different established publishers and had them installed by the developer and everything about the scripts work except for the email features.

I understand if one doesn’t work for whatever reason – but 2 and its the same problem means there is a problem with my account somehow.

Has anyone else had this experience or could you provide some advice on what I should look for?


#2

Are you running PHP as CGI? If not, try that and see if your scripts work. DH turns off many PHP features unless you’re running it as CGI.

Also which version of PHP are you running, 4 or 5?

What are the scripts?

bryan | website


#3

Are you running PHP as CGI? If not, try that and see if your scripts work.

[/quote]

I dont want to push a button and have everything break.

Also which version of PHP are you running, 4 or 5?

[/quote]

What are the scripts?

[/quote]

They (the programmers) replied and said:
From Programmer One…
it looks like your servers’ PHP is
not permitted (or able) to send out emails at all.
If submitting a listing doesn’t send an email to the
address you specified in the main preferences
as your default email address, then you need to
be looking into your PHP’s setup and figure out
why it’s not allowed to send out emails

From Programmer Two…
Note that the email functions absolutely work right
on everyone elses’ installation, so if they’re not working
for you, there’s got to be some sort of setup/issue
with the server, or something that’s preventing it from
mailing out. There should be a log on the server
somewhere of all of the mailing attempts, which might
provide some insight.


#4

I just tried to run PHP as CGI and my PHP scripts stopped working.


#5

got a another message from one of the programs creators and he says

“Our email function uses the PHP sendmail”

I dont see anything about that in the KBAse


#6

Reply from DH -
Does anyone know what this means…

You are running your scripts as mod-php there is a high chance that you are going to be caught by policyd which is running on the server in order to limit the amount of exploited php mail being sent from our servers.
Using mod-php your scripts will send as the apache user rather than your user. Change your php script to report the envelope sender and the problems you are having should go away.

This should remove the block that is currently on you.