how to tell which process call sendmail
So, some idiot is using a cgi or php or something to send mail out of his website that he shouldn't be sending. With a bunch of sites on the server, can't tell who. System accounting can tell me that sendmail was executed 32,976 times, but is there a way to tell what process /file name called it each time? Since it's always called by the www user that doesn't help -- I need to distinguish between legit processes that call 5 or 10 in a day and the idiot who calls the other 31,000 times. Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
tar won't extract a dir
Hello all, never had tar refuse to extract a directory from an archive before. tar archive is: htdocs.1201.tar.gz tar tzf htdocs.1201.tar.gz | grep standrewsglenwood ...shows a list of files contained within the archived dir: htdocs/standrewsglenwood/many whatevers yet the command: tar xzf htdocs.1201.tar.gz htdocs/standrewsglenwood ...extracts nothing. I've tried an individual file in that dir with no success. I've tried other files and dirs with no success. ?? Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mysql_connect error
- Original Message - From: Michael Powell nightre...@hotmail.com To: freebsd-questions@freebsd.org Sent: Wednesday, June 15, 2011 1:30 AM Subject: Re: mysql_connect error Rodrigo Gonzalez wrote: On Tuesday, June 14, 2011 09:46:17 AM Glenn McCalley wrote: Seen other people have this problem but cannot get their resolutions to work for me. Fatal error: Call to oundefined function mysql_connect() in etc., etc. This began happening after an upgrade to php5 using the portmaster program. phpinfo page does -not- show the mysql_connect function anywhere. phpinfo page is at www9.bnetmd.net/index.php if you have the desire to look. It looks good, where are you getting the error? in a web page or using cli? Type php -v at a command prompt. It should return something like this: testbed# php -v PHP 5.3.6 with Suhosin-Patch (cli) (built: Mar 31 2011 11:08:23) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with XCache v1.3.2-rc1, Copyright (c) 2005-2011, by mOo If it does not, go to the php-extensions port, run make config and check the box which builds the CLI version. It is in addition to all the other extensions so it won't interfere with them. The CGI build option is also more commonly required when using FastCGI. I'm basing this on the report that mysql_connect works OK in a web page but is failing when run at CLI. If I am misunderstanding something please excuse. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Mike, your understanding is correct - works in a web page but fails from cli. php -v output below: www9# php -v PHP 5.2.17 with SUhosin-Patch 0.9.7 (cli) (built: ar 13 2011 17:46:12) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies This is FreeBSD, in my ports the Build CLI verson option appears in the config for the php5 port itself, not the extensions. It is, however, checked along with Build CGI version. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mysql_connect error
Seen other people have this problem but cannot get their resolutions to work for me. Fatal error: Call to oundefined function mysql_connect() in etc., etc. This began happening after an upgrade to php5 using the portmaster program. phpinfo page does -not- show the mysql_connect function anywhere. phpinfo page is at www9.bnetmd.net/index.php if you have the desire to look. Suggestions from lists/boards seem to all point to mysql.so not being in the php library, yet a find shows it is in there. pkg_info shows php5-mysql-5.3.5 The mysql shared extension for php extensions.ini shows extension=mysql.so Is there anywhere/anything else to look/do? Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mysql_connect error
- Original Message - From: Damien Fleuriot m...@my.gd To: freebsd-questions@freebsd.org Sent: Tuesday, June 14, 2011 10:35 AM Subject: Re: mysql_connect error On 6/14/11 2:46 PM, Glenn McCalley wrote: Seen other people have this problem but cannot get their resolutions to work for me. Fatal error: Call to oundefined function mysql_connect() in etc., etc. This began happening after an upgrade to php5 using the portmaster program. phpinfo page does -not- show the mysql_connect function anywhere. phpinfo page is at www9.bnetmd.net/index.php if you have the desire to look. Suggestions from lists/boards seem to all point to mysql.so not being in the php library, yet a find shows it is in there. pkg_info shows php5-mysql-5.3.5 The mysql shared extension for php extensions.ini shows extension=mysql.so Is there anywhere/anything else to look/do? Thanks! Glenn. If I were you, I would reinstall the php5 mysql extension like so: cd /usr/ports/lang/php5-extensions make config # make sure you tick the MYSQL option make clean make make deinstall make reinstall Then, restart your web server or PHP FCGI process, as applicable. You should be cool. Thanks Damien, Did so, mysql definitely checked, no help. I did see that gd was not checked so checked that, did the make process and that cured another problem so I'd say the reinstall did in fact take. The error happens when being run from the command line. Does that make a difference? Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mysql_connect error
On Tuesday, June 14, 2011 09:46:17 AM Glenn McCalley wrote: Seen other people have this problem but cannot get their resolutions to work for me. Fatal error: Call to oundefined function mysql_connect() in etc., etc. This began happening after an upgrade to php5 using the portmaster program. phpinfo page does -not- show the mysql_connect function anywhere. phpinfo page is at www9.bnetmd.net/index.php if you have the desire to look. It looks good, where are you getting the error? in a web page or using cli? Rodrigo Ahh hadn't thought of that. It's cli. Does that have to be installed separately?Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mysql_connect error
- Original Message - From: Rodrigo Gonzalez rjgonz...@estrads.com.ar To: freebsd-questions@freebsd.org; glar...@freebsd.org Cc: Glenn McCalley gl...@bnetmd.net Sent: Tuesday, June 14, 2011 11:46 AM Subject: Re: mysql_connect error Hi Glenn, Try running this command in your shell: php -i | grep -i php.ini Does the reported path match the one reported by your phpinfo page (viewed in the web browser)? Also, is it possible you have multiple php executables installed? What is the output of the following commands? Also run php -m and see that mysql is in list You should check that it is using the same php.ini as Greg said, and if required symlink the files or add extension=mysql.so to the php.ini used by cli ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Rodrigo, The php.ini path and file match the phpinfo page. However, php -m does NOT report a mysql module, and I get the same Undefined symbol error our of lubmysqlclient.so.16 that I mentioned in my answer to Greg's post. The line extension=mysql.so IS is the extensions.ini file. Thanks, Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mysql_connect error
- Original Message - From: Rodrigo Gonzalez rjgonz...@estrads.com.ar To: freebsd-questions@freebsd.org; Glenn McCalley techl...@mail.bnetmd.net Cc: glar...@freebsd.org Sent: Tuesday, June 14, 2011 12:45 PM Subject: Re: mysql_connect error On Tuesday, June 14, 2011 12:56:11 PM Glenn McCalley wrote: Rodrigo, The php.ini path and file match the phpinfo page. However, php -m does NOT report a mysql module, and I get the same Undefined symbol error our of lubmysqlclient.so.16 that I mentioned in my answer to Greg's post. The line extension=mysql.so IS is the extensions.ini file. Thanks, Glenn. I would start reompiling mysql client libraries and then php-mysql extension again ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org OK! Something new! Rebuilt everything I could think of and no joy. The genesis of this thing is a php page that is executed out of cron as a command. It worked great until mysql 5.5 installed. I've been testing from the command line. Then had a brainstorm, and ran the php page from the address line of a browser instead of the command line and it works. Should of thought of that test before. So why is it OK thru a browser but not as a command? That leads me to believe it's not mysql_connect's problem at all but the php cli isn't working properly. Thoughts? ...and thanks folks for all your help. Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
MySQL update
Trying to update MySQL from 4.1 to 5.5. Updating mysql-client first. Make works great, but make install refuses to install saying 5.5 conflicts with 4.1, run pkg_delete for 4.1. pkg_delete for 4.1 refuses to deinstall as all the php52 packages (extensions, mysql, mysqli, pdo_mysql etc.) depend on mysql 4.1. Question: Do I have to deinstall everything, and then put it all back together, or can I force the mysql 5.5 client and 5.5 server to install? Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: MySQL update - Done
Chris, portmaster was the key. Installed that (yes, read the manpage, and your -o syntax was OK anyway) and MAGIC! -- update went fine. Matthew and Robert's comments regarding updating taken to heart as well. THANKS guys, much appreciated. Glenn. - Original Message - From: Chris Rees utis...@gmail.com To: Glenn McCalley gl...@mail.bnetmd.net Cc: freebsd-questions@freebsd.org Sent: Tuesday, June 07, 2011 8:37 AM Subject: Re: MySQL update On 7 June 2011 12:56, Glenn McCalley gl...@mail.bnetmd.net wrote: Trying to update MySQL from 4.1 to 5.5. Updating mysql-client first. Make works great, but make install refuses to install saying 5.5 conflicts with 4.1, run pkg_delete for 4.1. pkg_delete for 4.1 refuses to deinstall as all the php52 packages (extensions, mysql, mysqli, pdo_mysql etc.) depend on mysql 4.1. Question: Do I have to deinstall everything, and then put it all back together, or can I force the mysql 5.5 client and 5.5 server to install? I'm at work at the moment, so I can't test these, sorry. Firstly, get portmaster: # pkg_add -r portmaster Then read the manpage: % man portmaster Try something like: # portmaster -o databases/mysql55-client mysql-client # portmaster -o databases/mysql55-server mysql-server Then, because you haven't read the manpage you'll have to confirm everything. Read the manpage! If it doesn't work (because I made a mistake with the -o syntax), read the manpage and then let us have the output. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
MRTG vs. character of traffic
OK so the data center says my traffic is unreasonable. Turns out they may be correct. MRTG is showing one server with a totally unreasonable level of outbound traffic so now I know which machine to study. Are there recommendations for a tool to tell me what KIND of traffic, not just the gross bit rate? I want to find that idiot that's causing all the bandwidth. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
coldfusion alternative
OK so a good customer of long standing wants a coldfusion website. Some developer, the husband of one of his staff (so that makes him a trusted advisor, right?), has convinced him it's the only way to do it. My position is maybe that's the only way -he- can do it but there's a whole wide world of alternatives out there. Looking at it, he wants to collect some data on an input form, then hash it over a couple of ways and present the results. Pretty graphics maybe as well. Looks to me like Perl... don't even need a real database, heck DB_File would work just fine for this. OK with me... ...but what's the argument to present other than you don't need coldfusion? I'd even put CF on the system and be done with it if there was a FreeBSD version (anyone have any luck with that?). Tracked down BlueDragon but that's apparently Win only as well. Ammunition wanted. Thanks Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
star micronics sp200 printer
Hi there, anybody have a printcap entry for a Star Micronics SP200 receipt/badge/POS printer? Or a pointer to programming info for this thing would be appreciated as well. Looking to print trade show badges. Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to tell what ran what
Hi there, Is there a way to find out -which- -process- calls another process? OK, for instance, I know that user userid called sendmail 3 times because sa or lastcomm or whatever tells me so, but what -program- issued the call. Something like: usercalledcalled from nobodysendmail/usr/local/apache/cgi-bin/program Failed attempts would be nice to know as well. Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to tell what ran what
- Original Message - From: Björn König [EMAIL PROTECTED] To: Glenn McCalley [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Wednesday, February 15, 2006 11:13 AM Subject: Re: how to tell what ran what Glenn McCalley schrieb: Is there a way to find out -which- -process- calls another process? Each process is associated with a parent; look at the ppid column: ps axo user,pid,ppid,command Björn Thanks, I stated the question poorly. My fault. Is historical info available and is it available by file name? I trying to find out (for example) what (unknown) program ran another (known) program between 0900 and 1000 yesterday - something like that. I've got a customer sending our emails that he shouldn't - I don't know which customer it is. The program that sends the mail is running as a cgi so it all shows up as user nobody. If I can get a list of what programs, path and file name, called sendmail over (say) the last 24 hours, one of them should jump off the page with an unreasonable level of activitiy. Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to tell what ran what
Glenn McCalley schrieb: Is there a way to find out -which- -process- calls another process? Each process is associated with a parent; look at the ppid column: ps axo user,pid,ppid,command Björn Thanks, I stated the question poorly. My fault. Is historical info available and is it available by file name? I trying to find out (for example) what (unknown) program ran another (known) program between 0900 and 1000 yesterday - something like that. I've got a customer sending our emails that he shouldn't - I don't know which customer it is. The program that sends the mail is running as a cgi so it all shows up as user nobody. If I can get a list of what programs, path and file name, called sendmail over (say) the last 24 hours, one of them should jump off the page with an unreasonable level of activitiy. The web server logs don't tell you anything in the URL data? A CGI script usually has some parameters which might provide some assistance. brian -- Brian Sobolak http://www.planetshwoop.com/ Thanks Brian, that's already tonights project to run through those logs and see if anything jumps out there. What I think he might be doing is either POSTing the parameters (which won't show up) or he's loaded a file of email addresses and just triggers the mailer with a simple cgi request. Either way he's got to be calling sendmail or mail to get it out the door I believe. Thanks! Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
top display weirdness
When I run top, the summary and memory lines at the top of the display are updating in the next line down, overwriting that line. The process #'s are showing up in the state line, state #'s in the memory line, memory #'s in the swap list. I saw a post recently about something similar caused by compiling with different userland and core versions or something: this is a straight 5.3 install from the CD set. Only disk 1 was needed. This is also the 3rd install from this same disk and the other 2 system do not exhibit the incorrect behavior. 1 of the other 2 system has the same MB, drives, etc. Ideas appreciated. Glenn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Domain registration
We use BulkRegister.com $12 I think, and if you've got something oddball you can easily get a real live human being on the phone who knows what they're doing. The online mgmt interface is pretty good and it works like you'd expect it to. Had --lots-- of problems with NSI/Verisign that evaporated when we went to these guys. We do our own DNS, hosting, mail etc so I don't know about their products in these areas. Glenn. - Original Message - From: Sean [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Monday, February 21, 2005 8:53 PM Subject: Domain registration Can anyone recommend the better companies for domain registration? Thanks Sean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Different OS's? Marketshare
I think he said break point not break even In a previous life, our stats guys in banking considered anything that had 2% share (although I think we used 3%, whatever) of a population was significant and worth breaking out for study. Glenn. - Original Message - From: Ted Mittelstaedt [EMAIL PROTECTED] To: Robert Kim, Wireless Internet / Wifi Hotspot Advisor [EMAIL PROTECTED]; List Free Bsd freebsd-questions@freebsd.org Sent: Wednesday, February 23, 2005 7:30 AM Subject: RE: Different OS's? Marketshare -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Kim, Wireless Internet / Wifi Hotspot Advisor Sent: Tuesday, February 22, 2005 7:49 AM To: List Free Bsd Subject: Different OS's? Marketshare Different OS's? Marketshare... any idea how many major OS's are out there today and what market share they have? i think WIN 70% Lin 20% Apple 5% so who is the other 5 % ??? you realze the statisticians and economists hold that 2 percent is the break point... Break even for what? Oh I get it - break even to make a profit, right? Hmm I wonder who gets the profits from the sale of FreeBSD? Do you suppose they would be overly concerned with the 2% rule? This is one of the (many) problems with trying to hold a free OS up to a measuring stick designed for measuring commercial OSes. Note that Linux is doing much better against these measuring sticks because the Linux community, for all their loud proclamations about being GPL, has been steadily making Linux less and less distinguishable from the commercial OSs. When for example was the last time you saw a Linux enthusiast with a burned CDROM of an ISO he downloaded somewhere? The ones I see all have colorful cardboard boxes with penguins on them that they bought at Fry's. Consider that even if FreeBSD had 50% of all running computers - if those 50% of computers all belong to people that never buy software and only run freeware, the people that create these measuring sticks would bend over backwards to be sure those 50% were not counted. Not because they have anything against FreeBSD, but simply because the customers of the data these measuring sticks produce cannot sell anything to that 50% - thus they don't care if that 50% exists or not. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]