<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Is the e-mail trying to e-mail something to somewhere?
<br />(I suppose because it's called 'reservations.php').
<br />
<br />Then its probably needed to add an e-mailadress to the php.ini for that site.
<br />
<br />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:
<br />
<br />1. First you need suphp enabled (then you have a seperate php.ini file).
<br />2. Login to the server and go to the site directory containing php.ini. Do 'chattr -i php.ini' (this removes the immutable bit)
<br />3. Edit php.ini and find the sendmail line. There make it look like this sendmail -t real@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).
<br />4. Do 'chattr +i php.ini' to set the file to immutable again.
<br />5. Restart apache (it will still give some NameVirtualHost warning, thats no problem).
<br />6. Try the script!
<br />
<br />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.
<br />
<br />Wisja
<br />
<br /><font size="2"><b>On Mon, 07 Oct 2013 21:29:39 -0500, Bob Wickline wrote</b>
<br />>
On 10/07/2013 09:23 PM, Gerald Waugh wrote:
<br />>
> On 10/07/2013 06:33 PM, Bob Wickline wrote:
<br />>
>> Having an issue with a users webpage. They have a php script that
is
<br />>
>> not executing correctly. The site was working correctly on a
Solaris
<br />>
>> host running apache 2 webserver. I copied the files from the site
to
<br />>
>> the "web" directory for the site. All the other times
I've done this it
<br />>
>> has worked fine. Here's an excerpt from the error_log (see last
line):
<br />>
>>
<br />>
>> [root@bowebserver ~]# tail -20 /etc/httpd/logs/error_log
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.204:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.204:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.204:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.205:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.205:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.205:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.205:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.205:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.208:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.208:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.208:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.208:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] NameVirtualHost xxx.xxx.xxx.208:80
has
<br />>
>> no VirtualHosts
<br />>
>> [Mon Oct 07 18:20:59 2013] [notice] Digest: generating secret for
digest
<br />>
>> authentication ...
<br />>
>> [Mon Oct 07 18:20:59 2013] [notice] Digest: done
<br />>
>> [Mon Oct 07 18:20:59 2013] [warn] No JkShmFile defined in httpd.conf.
<br />>
>> Using default /etc/httpd/logs/jk-runtime-status
<br />>
>> [Mon Oct 07 18:20:59 2013] [notice] Apache/2.2.15 (Unix) DAV/2
<br />>
>> mod_jk/1.2.32 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips
mod_perl/2.0.4
<br />>
>> Perl/v5.10.1 configured -- resuming normal operations
<br />>
>> [Mon Oct 07 18:21:17 2013] [error] [client xxx.xxx.xxx.92] malformed
<br />>
>> header from script. Bad header=/home/.sites/112/site7/.users/:
<br />>
>> contact.php, referer: <a target="_blank" href="http://www.somedomain.com/reservations.php">http://www.somedomain.com/reservations.php</a>
<br />>
>> [root@bowebserver ~]#
<br />>
>>
<br />>
>> The error message on the screen is:
<br />>
>>
<br />>
>> "Internal Server Error: The server encountered an internal
error or
<br />>
>> misconfiguration ad was unable to complete your request. Your
<br />>
>> adminstrator may not have enabled CGIaccess to this directory."
<br />>
>>
<br />>
>> Any ideas would be appreciated. I have tried it with both suPHP
enabled
<br />>
>> and disabled and neither works. CGI is enabled.
"contact.php" is in the
<br />>
>> sites "web" directory.
<br />>
>>
<br />>
>> _
<br />>
> Check the ownership of the script and other files in the web directory
<br />>
> for suphp try site admin
<br />>
>
<br />>
<br />>
Yes I checked that. Files are owned by site admin.
<br />>
<br />>
_______________________________________________
<br />>
Blueonyx mailing list
<br />>
Blueonyx@mail.blueonyx.it
<br />>
<a target="_blank" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
<br />
<br />
<br />
</font>
</BODY>
</HTML>