I would like to run a cron job. Scheduling it is easy and works.
My problem is that I don't know how to only have one version of itself running at a time.
Any ideas?
G-Man
I've got the latest version of sphinx installed. I have created the index with no problems and searchd starts up with no problems.
However, whenever I try to create a test table (straight from the docs I might add) mysql crashes.
I'm at wits end here.
Any ideas are appreciated.
G-Man
Here's the query:
CREATE TABLE t1 ( id INTEGER UNSIGNED NOT NULL, weight INTEGER NOT NULL, query VARCHAR(3072) NOT NULL, group_id INTEGER, INDEX(query) ) ENGINE=SPHINX CONNECTION="sphinx://localhost:9312/test";
Is there a good application that will run on osx (GUI) that would let me monitor the queries and other mysql server settings on a remote server?
G-Man
I am trying to get xdebug working on my snow leopard box.
It uses port 9000.
When I ask slickedit to monitor this port is gives an error that the address is not available.
I've gone to canyouseeme.org to see if the port is open.
It says the port is NOT open.
I've verified that I have that port forwarding to my box from the router and i do NOT have the mac firewall running.
I'm stumped. Any ideas?
I am trying to run macports like thus:
port install php5
When I do so, however, I get this error:
Error: Unable to open port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
So I looked at my path:
declare -x PATH="/Developer/usr/bin:/opt/subversion/bin:/opt/local/bin:/opt/local/sbin:/usr/local/php5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
and then looked to make sure make was in one of those dirs:
ls -l /Developer/usr/bin/make
$ lrwxr-xr-x 1 root admin 7 Aug 7 16:47 /Developer/usr/bin/make -> gnumake
And typing:
make
produces:
make: *** No targets specified and no makefile found. Stop.
So I know that it's there.
But macports can't find it. Any ideas?
G-Man
I have a wordpress blog that is installed on the root of my domain.
I have put another piece of software in a subdirectory.
When I try to access the subdirectory (http://www.blah.com/abc) I get a 404 error from wordpress.
I've done some reading and it looks like I need to have a rewritecond and a rewrite rule before the rewritebase below:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
But I have no clue what I need there.
G-Man
I've configured my httpd.conf using:
Directory "/Users/GMan/Public/Source/LC2">
I've stopped the apache server with:
apachectl stop
And then restarted it with:
apachectl -f /path/to/my/httpd.conf
And yet when I browse to my ip:
http://1.1.1.1
I see the default index.html which contains:
It Works!
I'm using a Mac with OS 10.5. I am totally stumped and would appreciate some ideas!
G-Man
I have a file called 'log.txt' that I would like to move to the logs folder on a nightly basis.
The problem is that I want to keep track of the files so I would actually need to move it to a log1.txt, log2.txt, log3.txt and so on.
Is there a unix command or a bash script way to do this?
G-Man
I am seeing this error in my nginx log.
[error] 4383#0: *10160 connect() failed (111: Connection refused) while connecting to upstream, client:
Anyone have any idea what this means and how to fix it?
G-Man
What does the following error mean and how can I fix the problem? THis is on Fedora 9:
Time: Wed Sep 30 10:07:18 2009 -0400
Account: haldaemon
Resource: Process Time
Exceeded: 461956 > 1800 (seconds)
Executable: /usr/libexec/hald-addon-keyboard
Command Line: hald-addon-keyboard: listening on /dev/input/event1
PID: 3112
Killed: No
G-Man