Re: [PHP] Php.ini file missing

2002-01-20 Thread Michael Sciascia

Hi everybody,
I've finally been able to read the e-mails sent by the little script I was
using.

The problem was the address where the script was trying to send the e-mail.
Instead of a *normal* e-mail (i.e. [EMAIL PROTECTED]) like was written in
the book I wrote my *local* address (mitch@localhost) and it worked :-)
I got the e-mail both in the terminal and using the application "Mail" where
I configured an UNIX account.

I am still not able to let the script send e-mails to normal e-mail
addresses, but I think I will now install "postfix" which, as I read, should
be easier to use and configure than "sendmail".

Thanks to you all for the tips and resources you gave me.

Bye,
Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Php.ini file missing

2002-01-17 Thread Michael Sciascia

mike cullerton14-01-2002 21:49

> on 1/14/02 12:06 PM, Michael Sciascia at [EMAIL PROTECTED] wrote:
> 
>> The last and *most important* thing left to do is to start sendmail, but I
>> always get errors like:
>> 
>> 
>> A) "Failed to start sendmail : 451 4.0.0 /etc/mail/sendmail.cf: line 81:
>> fileclass: cannot open /etc/mail/local-host-names: Group writable directory"
>> 
>> B) "Failed to start sendmail : /etc/mail/sendmail.cf: WARNING: dangerous
>> write permissions 451 4.0.0 /etc/mail/sendmail.cf: line 81: fileclass:
>> cannot open /etc/mail/local-host-names: Group writable directory"
 

Hi everybody,
Yesterday I created a new partition on my HD just to work with php, mysql
and apache.

I installed again everything and also Webmin to manage more easily the
various servers settings.
I also changed, in the Apache httpd.conf  file, the "ServerAdmin" (to my
e-mail address) and "ServerName" (to Localhost or 127.0.0.1) values.

I activated sendmail following your tips and the one found in the web and
this time it started regularly without giving me the messages written above.

So I believe that before I might have had made something wrong trying to
change the configurations settings :-)

Unfortunately I still got an annoying problem. When I use a php script to
send e-mails via a form on a web page I get the right message "e-mail has
been sent", as it always did, but I still can't get this e-mail anywhere :-(
I also created an UNIX mail account in the "Mail" application according to
some other tips I found to better work with sendmail, but I didn't get
anything there too.

Looking in the sendmail configuration with Webmin I see that the message
sent by the php script is queued and that it isn't possible to send it
because the host "www@localhost" isn't correct.
In some web sites I found that I should change, in the hostconfig file, the
value "Hostname = AUTOMATIC" to "Hostname = my domain" (which should be my
IP or DNS) 

What isn't really clear to me is which domain I have to write here.
I have an ISDN connection, so I don't have a static IP address and I don't
know about the DNS.

How do you usually check if a php script has really sent the e-mail to the
address in the script?
In the book I am using to approach to php this isn't explained, so I believe
it should be something really easy to do. The book is for really and
*absolute* beginners and everything is explained in a clear and exhaustive
way. It also has a CD-ROM with mysql, php & apache and it clearly explains
how to install them, but there isn't written anything about setting
something special to let the e-mail scripts work (well actually something
just for Windows and not for Linux or other *nix based systems like Mac OS
X) 
Which values do you think I should write in the hostconfig file? My usual
provider domain (i.e. www.tiscali.it)?

Sorry to bother you again with so many question I would really appreciate
any help you would give me, as I don't seem so good at looking for
information on the web :-(

Thanks again a lot for the previous and useful replies.

Have a great time.

Ciao,
Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Php.ini file missing

2002-01-14 Thread Michael Sciascia


> 
> ahhh, if this is indeed the problem, then you (michael from the original
> message) need to enable sendmail in /etc/hostconfig by changing the line
> 
> MAILSERVER=-NO-
> 
> to
> 
> MAILSERVER=-YES-
> 
> (isn't everything different in macosx)
> 
> again, you need to do this from an administrator account. this will start
> sendmail each time you reboot. i'm not exactly sure how to start sendmail
> correctly from the command line, but one of the sites i mentioned earlier
> might have something.
> 
> mike
> 
> -- mike cullerton
> 
> 

I would like to thank you all for all the info you gave me and the php.ini
file! 
Your suggestions have been really useful and I made some progresses, but
I've still got problems :-(

I changed the MAILSERVER line to YES as you said, and now sendmail should
start every time I reboot, but I haven't yet resolved some configurations
problems.

As you all suggested I looked again in several websites and followed many
instructions I've finally found. However it still doesn't work :-(

The last and *most important* thing left to do is to start sendmail, but I
always get errors like:


A) "Failed to start sendmail : 451 4.0.0 /etc/mail/sendmail.cf: line 81:
fileclass: cannot open /etc/mail/local-host-names: Group writable directory"

B) "Failed to start sendmail : /etc/mail/sendmail.cf: WARNING: dangerous
write permissions 451 4.0.0 /etc/mail/sendmail.cf: line 81: fileclass:
cannot open /etc/mail/local-host-names: Group writable directory"


I've got this errors either trying to start sendmail using the terminal or
an interesting applications called "Webmin" I've found looking around for
more information. Webmin allows to manage from your browser various items
like Apache, sendmail and similar stuff, more easily than doing it through
the terminal (at least for a beginner like me).

I always get the same errors and I believe it is because of the file
"local-host-names" privileges. I tried changing them in any combination, but
it still doesn't work...

I will continue trying and hope to get it fixed , if not I will download
another mail server I found looking for info. It is called "post fix" and,
as I read, should be easier to configure and use than sendmail.

Do you think this could be a valid solution?

Thanks again for the patience and the kindness.

Bye,
Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Php.ini file missing

2002-01-13 Thread Michael Sciascia

Hi, 
I am new to this list and also to php and I am sorry to already bother you
with a question you might find really stupid, but I looked around for this
information several days now and I couldn't find some good resources.

I installed php 4.1.0 on Mac OS X 10.1.2 and everything seems to work well,
also with mySQL and Apache.

I am learning php from a book for beginners full of explanations and
scripts, so in the last days I wrote some scripts which make possible to
send e-mails filling a form on the browser. The scripts worked out well, but
I haven't been able to read the e-mails and understand where I should be
able to. 

I believed I had to change the SMTP settings of php or some sort of mail
server in the system and  reading some articles found in several web sites I
think the solution would be to change some settings in the "php.ini" file.

The build I downloaded doesn't have any "php.ini" file and in the faq
section of the website from where I downloaded it
(http://www.entropy.ch/software/macosx/php/) there is simply written to
create the "php.ini" file in the "/usr/local/lib/php.ini", including the
intermediate /lib/ directory that doesn't exist already on my system.

I would like to know how I can create the "php.ini" file or if there is a
easier way to get  and read the e-mails sent by the php scripts without
working on the php configuration.

I am sorry to disturb you all, but I don't have any experience and I haven't
been able to find anything clear about this question.

I would really appreciate if you could give me some tips or some web site's
addresses where I can find easy information, or where I can download a copy
of the "php.ini" file.

I thank you in advance for the kindness and the attention.


Greetings,
Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]