Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/71572-solved-php-problem/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/71572-solved-php-problem/#findComment-360408
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/71572-solved-php-problem/#findComment-361124
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/71572-solved-php-problem/#findComment-361957
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/71572-solved-php-problem/#findComment-362050
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.