#1 (permalink)  
Old 12-16-2005, 08:13 PM
Dub Dub is offline
Registered User
 
Join Date: Sep 2005
Posts: 5
Dub is on a distinguished road
Stop mail going out as Nobody

Hi,

I need to stop my mail server sending out mail as nobody from the forums i host as all the emails to aol are being rejected


how do i go about changing it from nobody to somthing else ?

Any help much appreciated

Dub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-16-2005, 08:44 PM
Registered User
 
Join Date: Nov 2002
Posts: 53
paint
Either use phpsuexec or do a loop back with AOL.
__________________
www.HostDome.com
MSN: Sales@HostDome.com
AIM: HDomeJosh
EMail: Paint@HostDome.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-16-2005, 09:36 PM
Dub Dub is offline
Registered User
 
Join Date: Sep 2005
Posts: 5
Dub is on a distinguished road
Thanks Izzee i tryed that and every site went down with a 500 error and i had searched the forums to find more info as you said i thaught i had the correct info but i couldent get it to work.

So ive build again without phpsuexec and all is back to normal gunna read more into it me thinks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-16-2005, 11:30 PM
Dub Dub is offline
Registered User
 
Join Date: Sep 2005
Posts: 5
Dub is on a distinguished road
thanks alot i will try this in the morning
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-17-2005, 03:21 AM
Registered User
 
Join Date: Sep 2001
Posts: 300
CoolMike
Hi

This is great, I tink only one part is missing or I did not see it:

if you had PHP values in the .htacces file, they where recursive. This means they where also valid for the subdirectories. If you use now a php.ini file, they are only valid for this directory where you place the file, but not in the subdirectory.

Michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-17-2005, 10:31 PM
Registered User
 
Join Date: Jul 2005
Posts: 74
fred123123 is on a distinguished road
won't it be less complex to just change the name from which apache is run ? Change the nobody user to something else... !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-17-2006, 01:08 AM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
I enabled phpsuexec on php 4.4.2 but now many sites show a popup dialog "save file as".

What could cause this?

I ran /scripts/chownpublichtmls and still getting

500 error
403 forbidden
save file as popups

Last edited by Secret Agent; 03-17-2006 at 01:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-17-2006, 05:21 AM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
I was successful on ANOTHER server but I got one client with this complaint

Sites down that use, User Defined Mime Types
Instead of executing a HTML as PHP I get a 500 error

What should I do in this case?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-17-2006, 07:31 AM
Registered User
 
Join Date: Mar 2006
Posts: 18
weblord is on a distinguished road
can someone tell me is there a way to monitor email messages (well not the actual email messages but only headers) of who sent to whom?
i just use this command:
tail -100 /var/log/maillog
but can tail offer more options as in indicating a particular email address to monitor something like in the format username@domain.com ? pls. advise.

i posted on this thread for i don't see any thing related to spam suspects or avoidance of it.
__________________
Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-19-2006, 03:29 PM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
I got a little confict as shown below from a copy/paste message from a client

PHP code inside of html pages will only work if the file is named with a php file extension (filename.php and not filename.html). You will have to edit other pages that link to filename.html to reflect the php extension change.

Example code for this issue:
<html>
<head>
<title>PHP Inside HTML Test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<?php print( "Hello" ); ?>
</body>
</html>
Save the code as test.html will display a blank page.
Save the code as test.php will display Hello on the page.

----------------------

This means a complete rebuild of all of my websites with a change between .HTML and .PHP extentions + this change will KILL all of my results in search engines, is there no way around this?

I have worked very hard to promote www.mysite.com – it uses HTML files with PHP syntax in them and right now I do not know what to do. (I repeat: changing of the filenames will make all the promotion work I’ve done and all the money spend on a complete waste, that is not good)

-----------------------


What can be done in this case if phpsuexec support is enabled?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 03-19-2006, 03:50 PM
dave9000's Avatar
Registered User
 
Join Date: Apr 2003
Location: arkansas
Posts: 889
dave9000 is an unknown quantity at this point
to run html pages with php embedded into them put these commands into the .htaccess file in the public_html folder for the site

Quote:
AddHandler application/x-httpd-php .htm
AddHandler application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
and then go into the cpanel for the site and then into the apache handlers section and add .htm and .html as server-parsed

this will enable you to use embedded php inside .htm and .html files while using phpsuexec
__________________
Dave Browning
Intersite Technologies
Greenbrier Ar
dave@isitetech.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-20-2006, 11:07 AM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
Thanks what about this?

Client gets an error 500

All I can see in the error log is

[Mon Mar 20 09:13:47 2006] [error] [client 68.142.xxx.xxx] Premature end of
script headers: /home/client/public_html/client/index.php

and index.php is a symlink 2 levels deep.


I had alrady ran all the commands for chmodding

There is no htaccess file in public_html
php.ini is there with

memory_limit = 128M
upload_max_filesize = 10M
default_charset = UTF-8
safe_mode = Off
mbstring.internal_encoding = UTF-8
mbstring.encoding_translation = 1
mbstring.http_output = UTF-8
allow_url_fopen = 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-20-2006, 01:15 PM
dave9000's Avatar
Registered User
 
Join Date: Apr 2003
Location: arkansas
Posts: 889
dave9000 is an unknown quantity at this point
check for any .htaccess files in the web and make sure they do not have any php directives in them as phpsuexec will error out

also make sure no directories or files are 0777 permissions

beyond that without a lot more specific detail its going to be hard to tell

also check your /usr/local/apache/logs/suexec_log for any errors
__________________
Dave Browning
Intersite Technologies
Greenbrier Ar
dave@isitetech.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 03-20-2006, 01:22 PM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
Another problem:
(quoting client)

Since the security upgrade on server4 this morning, I am no longer able to access the mailing list archives.

This URL is encountering the error code 500 that your note warned about, however the script is not contained in my home directory. I assume that you have aliased this to point to a server-wide installation.

and

Existing symbolic links are no longer working. Is there a work around for this?

The index.html file is simply a symbolic link to passwordmaker.html, which is simply an HTML page with permissions of 644. I am not sure why this is now giving me an HTTP error code of 500


drwxr-xr-x 2 dmorlitz dmorlitz 4.0K Feb 14 19:34 password/

Last edited by Secret Agent; 03-20-2006 at 01:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-20-2006, 01:25 PM
Registered User
 
Join Date: Oct 2004
Posts: 1,134
Secret Agent is on a distinguished road
As for the other problem with the 500

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@client.com.es and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I tailed /usr/local/apache/logs/suexec_log

[2006-03-20 12:20:24]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: index.php
[2006-03-20 12:20:24]: error: cannot stat program: (index.php)

[2006-03-20 12:20:29]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: viewtopic.php

[2006-03-20 12:20:57]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: viewforum.php
[2006-03-20 12:20:57]: info: (target/actual) uid: (client/client) gid: (client/client) cmd: demo.php


htacess

<Limit GET HEAD POST>
order allow,deny
deny from cogentco.com
deny from anonymizer.com
deny from wideopenwest.com
deny from proxad.net
deny from sexnet24.tv
deny from frb.org
deny from 38.113.234.
allow from all
</LIMIT>

# BLOCK blank referrer -AND- UA except for HEAD
RewriteCond %{REQUEST_METHOD} !^HEAD$
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule .* bad_referrer.php [L]

# BLOCK *Faked* blank referer -OR- UA
RewriteCond %{HTTP_REFERER} ^-$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^-$
RewriteRule .* bad_referrer.php [L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>


htaccess.org

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.client.com
AuthUserFile /home/client/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/client/public_html/_vti_pvt/service.grp

Last edited by Secret Agent; 03-20-2006 at 01:31 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc