savaries Posted October 2, 2007 Share Posted October 2, 2007 Im new to php and am having some trouble that i am hoping you will all be able to help me with. I have installed php on a windows 2003 server and set it up correctly(i believe) to run becuse i can make this test page http://www.blogofshadows.net/test.php work. The problem starts there, im trying to install some php software and im getting this strange message at the top of the page. Warning: popen(whereis php,r) [function.popen]: No such file or directory in D:\Websites\Blog Of Shadows\install\index.php(1561) : runtime-created function on line 3 being new to this im totally at a loss on what is needed here. Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
trq Posted October 2, 2007 Share Posted October 2, 2007 Looks to me like the application you are trying to install may be made for Linux. I'm not sure the whereis command exists for windows. What are you trying to install? Quote Link to comment Share on other sites More sharing options...
savaries Posted October 2, 2007 Author Share Posted October 2, 2007 dolphin its a community software but i think my problem may lie in this bit of code. $confFirst['dir_mogrify'] = array( name => "Path to mogrify", ex => "/usr/local/bin/mogrify", desc => "If mogrify binary doesn't exist please install <a href='http://www.imagemagick.org/'>ImageMagick</a>", def => "/usr/local/bin/mogrify", def_exp => " if ( file_exists(\"/usr/X11R6/bin/mogrify\") ) return \"/usr/X11R6/bin/mogrify\"; if ( file_exists(\"/usr/local/bin/mogrify\") ) return \"/usr/local/bin/mogrify\"; if ( file_exists(\"/usr/bin/mogrify\") ) return \"/usr/bin/mogrify\"; if ( file_exists(\"/usr/local/X11R6/bin/mogrify\") ) return \"/usr/local/X11R6/bin/mogrify\"; if ( file_exists(\"/usr/bin/X11/mogrify\") ) return \"/usr/bin/X11/mogrify\"; return '';", check => 'return strlen($arg0) >= 7 ? true : false;' ); i think its actually asking me where these files are but im not sure what the full path its checking is. here is some info that might help you to figure out if i am right or not. my website directory is D:\websites\<sitename> anyway in the site i have the /usr/bin/mogrify file but im not sure if that code is looking there or not like is it just checking d:/usr/bin/mogrify or the d:\websites\<sitename>/usr/bin/mogrify. is there a way i can change that code to check that spacific location maby that would fix it? sorry agian for the strange question im new to php Quote Link to comment Share on other sites More sharing options...
trq Posted October 2, 2007 Share Posted October 2, 2007 Beside the fact that that code looks pretty terrible, all those paths are Linux paths, not windows. As far as I can tell, you would probably need to do a few modifications to get said app installed on windows. Quote Link to comment Share on other sites More sharing options...
savaries Posted October 3, 2007 Author Share Posted October 3, 2007 This software is said to work on windows and the majority of the page works. how would i make if ( file_exists(\"/usr/bin/X11/mogrify\") ) return \"/usr/bin/X11/mogrify\"; point to d:/Website/usr/local/bin/mogrify they way i tried if ( file_exists(\"D:/Website/usr/local/bin/mogrify\") ) return \"D:/Website/usr/local/bin/mogrify\"; dose not seam to work. Quote Link to comment Share on other sites More sharing options...
savaries Posted October 3, 2007 Author Share Posted October 3, 2007 i figured out what i was doing wrong with two of them but, and i know this is a really noob question, i don't know what file its referring to when it asks for the php interpretor. Quote Link to comment Share on other sites More sharing options...
trq Posted October 3, 2007 Share Posted October 3, 2007 Have you installed php's cli (command line interface)? I'm not sure where this would be in windows (im a linux user) but I think you'll be looking for a php.exe file. Quote Link to comment Share on other sites More sharing options...
savaries Posted October 4, 2007 Author Share Posted October 4, 2007 yep i found it and i think i might have finally found my problem. For some reason i cant get php 5.4.2 to recognize my Mysql database installed. it only have the MsSql one for our Warehouse site. If it would help at all i could post some info shots from the server, but so far if i run this script <?php $mysql = function_exists('mysql_connect') ? "mysql is here2" : "mysql NOT here2"; $mysqli = (function_exists('mysqli_init') || extension_loaded('mysqli')) ? "mysqli is here" : "mysqli NOT here"; $pgsql = function_exists('pg_connect') ? "pgsql is here" : "pgsql NOT here"; print "$mysql<br />"; print "$mysqli<br />"; print "$pgsql<br />"; return; ?> they all come back as not there. Quote Link to comment Share on other sites More sharing options...
trq Posted October 4, 2007 Share Posted October 4, 2007 Then your version of php does not have support for mysql or postgres. You will need to configure it before you try and install this application. I'm sorry, I can't be of much help with windows configurations but there is a sticky thread at the top of PHP Help that addresses this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.