[BlueOnyx:13825] Re: PHP issue with site

Bob Wickline wick at bobwickline.com
Thu Oct 10 09:09:35 -05 2013


You might be on to something.  I noticed that I am not able to send unix 
mail from the system:

$ mailx -v -r reservations at domain.com -s "test" user at someemail.com
testing
1
2
3
.
EOT
user at someemail.com... Connecting to [127.0.0.1] via relay...
220 localhost ESMTP Sendmail Ready; Thu, 10 Oct 2013 08:59:56 -0500
 >>> EHLO host.hostingdomain.com
250-host.hostingdomain.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
 >>> STARTTLS
220 2.0.0 Ready to start TLS
 >>> EHLO host.hostingdomain.com
250-host.hostingdomain.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
 >>> MAIL From:<reservations at domain.com> SIZE=337 
AUTH=reservations at domain.com
553 5.3.0 <reservations at domain.com>... No such user here
reservations at domain.com... Using cached ESMTP connection to [127.0.0.1] 
via relay...
 >>> RSET
250 2.0.0 Reset state
 >>> MAIL From:<> SIZE=1361
250 2.1.0 <>... Sender ok
 >>> RCPT To:<reservations at domain.com>
 >>> DATA
553 5.3.0 <reservations at domain.com>... No such user here
503 5.0.0 Need RCPT (recipient)
 >>> RSET
250 2.0.0 Reset state
 >>> RSET
250 2.0.0 Reset state
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
 >>> MAIL From:<> SIZE=2385
250 2.1.0 <>... Sender ok
 >>> RCPT To:<postmaster at host.hostingdomain.com>
 >>> DATA
550 5.1.1 <postmaster at host.hostingdomain.com>... User unknown
503 5.0.0 Need RCPT (recipient)
 >>> RSET
250 2.0.0 Reset state
Closing connection to [127.0.0.1]
 >>> QUIT
221 2.0.0 host.hostingdomain.com closing connection
$

I am not hosting email on the BlueOnyx box.  All user email is on Google.

What do I need to do to get unix mail working???

On 10/08/2013 02:49 AM, Wisja.net Computers wrote:
> Is the e-mail trying to e-mail something to somewhere?
> (I suppose because it's called 'reservations.php').
>
> Then its probably needed to add an e-mailadress to the php.ini for 
> that site.
>
> I don't know why (did some research without a real awnser) the server 
> doesn't accept the outgoing phpmail (It thinks there is a bad header) 
> but this is what I do:
>
> 1. First you need suphp enabled (then you have a seperate php.ini file).
> 2. Login to the server and go to the site directory containing 
> php.ini. Do 'chattr -i php.ini' (this removes the immutable bit)
> 3. Edit php.ini and find the sendmail line. There make it look like 
> this sendmail -t real at emailadress.com (all php mail sent from scripts 
> on this site will be going out with this adress!, normal mail will 
> have it's own user and mail ofcourse).
> 4. Do 'chattr +i php.ini' to set the file to immutable again.
> 5. Restart apache (it will still give some NameVirtualHost warning, 
> thats no problem).
> 6. Try the script!
>
> When there are changes made to the php settings of the site with the 
> adminpages the setting could be lost and made again! Thats the 
> downsite, but your client will at least be up and running.
>
> Wisja
>
> *On Mon, 07 Oct 2013 21:29:39 -0500, Bob Wickline wrote*
> > On 10/07/2013 09:23 PM, Gerald Waugh wrote:
> > > On 10/07/2013 06:33 PM, Bob Wickline wrote:
> > >> Having an issue with a users webpage.  They have a php script 
> that is
> > >> not executing correctly.  The site was working correctly on a 
> Solaris
> > >> host running apache 2 webserver.  I copied the files from the 
> site to
> > >> the "web" directory for the site.  All the other times I've done 
> this it
> > >> has worked fine.  Here's an excerpt from the error_log (see last 
> line):
> > >>
> > >> [root at bowebserver ~]# tail -20 /etc/httpd/logs/error_log
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.204:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.204:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.204:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.205:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.205:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.205:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.205:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.205:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.208:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.208:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.208:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.208:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost 
> xxx.xxx.xxx.208:80 has
> > >> no VirtualHosts
> > >> [Mon Oct 07 18:20:59 2013] [notice] Digest: generating secret for 
> digest
> > >> authentication ...
> > >> [Mon Oct 07 18:20:59 2013] [notice] Digest: done
> > >> [Mon Oct 07 18:20:59 2013] [warn] No JkShmFile defined in 
> httpd.conf.
> > >> Using default /etc/httpd/logs/jk-runtime-status
> > >> [Mon Oct 07 18:20:59 2013] [notice] Apache/2.2.15 (Unix) DAV/2
> > >> mod_jk/1.2.32 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips 
> mod_perl/2.0.4
> > >> Perl/v5.10.1 configured -- resuming normal operations
> > >> [Mon Oct 07 18:21:17 2013] [error] [client xxx.xxx.xxx.92] malformed
> > >> header from script. Bad header=/home/.sites/112/site7/.users/:
> > >> contact.php, referer: http://www.somedomain.com/reservations.php
> > >> [root at bowebserver ~]#
> > >>
> > >> The error message on the screen is:
> > >>
> > >> "Internal Server Error:  The server encountered an internal error or
> > >> misconfiguration ad was unable to complete your request.  Your
> > >> adminstrator may not have enabled CGIaccess to this directory."
> > >>
> > >> Any ideas would be appreciated.  I have tried it with both suPHP 
> enabled
> > >> and disabled and neither works.  CGI is enabled. "contact.php" is 
> in the
> > >> sites "web" directory.
> > >>
> > >> _
> > > Check the ownership of the script and other files in the web 
> directory
> > > for suphp try site admin
> > >
> >
> > Yes I checked that.  Files are owned by site admin.
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at mail.blueonyx.it
> > http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
>
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20131010/2f867adb/attachment.html>


More information about the Blueonyx mailing list