Hey guys.
So I have Mantis setup with SVN integration. When I commit to SVN, the commit notes are parsed and I use the php binary to push data to a php file via stdin.
Something like:
/usr/bin/php -q /webroot/mantis/scripts/checkin.php <<< "Comment String"
This works great when svn is on the webserver. What I'm doing now is trying to do this remotely. I've come to the conclusion that I'm going to have to actually post to this file, rather then let php on server 1 execute a script on server 2, but I'm hoping you guys have an explination why it doesn't work the way it doesn't.
I've mounted Server#2's directory to the local file system, so that it shows up as /remote/. I then run the comman just like how it works for the local file.
/usr/bin/php -q /remote/mantis/scripts/checkin.php <<< "Comment String"
At this time I get a connection error. Access denied for root@localhost using password. Now I didn't think this would work, but I can't understand why the database is crapping out? I get that it's got to be something to do with the fact that Server#1 is parsing the file, not server#2. Is the error because php is trying to connect to Server#1 with the Server#2 creditals? Because the remote script is parsed on Server#1, it translates 'localhost' to be mysql.server#1?
In easy fixes, or should I go ahead and edit it to accept post vars and use wget?