Page 1 of 1

Windows 7 Setup Issue

Posted: Mon Nov 10, 2014 5:27 am
by dean
I'm attempting do an install on my Windows machine, I already have a number of other sites sites installed and running off php and mysql so I'm not using the exe installer to do any of this. I get to the point of checking the requirements which all pass however I get the error:
error screen
error screen

Code: Select all

 Warning: PHP CLI requirements failed while executing 
""C:\workdata\appdata\php\php.exe" "C:\workdata\code\php\timetrex\/tools/unattended_upgrade.php" --config "C:\workdata\code\php\timetrex\includes\..\timetrex.ini.php" --requirements_only --web_installer"
Likely caused by having two PHP.INI files with different settings.
Running from the command line works fine:

Code: Select all

C:\Users\dean.mowat\Documents\cmder>"C:\workdata\appdata\php\php.exe" "C:\workdata\code\php\timetrex\/tools/unattended_upgrade.php" --config "C:\workdata\code\php\timetrex\includes\..\timetrex.ini.php" --requirements_only --web_installer
Requirements all pass successfully!
I have noticed in the apache logs I am getting these errors while the checks a running:

Code: Select all

The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
However I can't see any issues with any of the paths I have put in place in the timetrex.ini.php file.

I have attached copies of timetrex.ini.php, php.ini and timetrex.log (the entries in the log will be most relevant as some entries before that are from the times I was testing from the command line)

I seen an earlier thread about an issue with apache being unable to run php.exe however I created the below test page within my timetrex directory:

Code: Select all

<?php
if ( is_executable( 'C:\workdata\appdata\php\php.exe' ) ) {
  echo "Works!\n";
} else {
  echo "Does not work!\n";
}
?>
And I return works when hitting the page.

Any ideas what might be wrong?

Cheers

Re: Windows 7 Setup Issue

Posted: Mon Nov 10, 2014 8:14 am
by shaunw
Did you try running the following command as the same user/environment your web server runs as? It would appear to me that is the only difference causing the problem.

Code: Select all

C:\Users\dean.mowat\Documents\cmder>"C:\workdata\appdata\php\php.exe" "C:\workdata\code\php\timetrex\/tools/unattended_upgrade.php" --config "C:\workdata\code\php\timetrex\includes\..\timetrex.ini.php" --requirements_only --web_installer

Re: Windows 7 Setup Issue

Posted: Wed Nov 12, 2014 4:55 am
by dean
yeah running a command prompt as the system user which is what apache is running as gives the below:

Code: Select all

C:\workdata\appdata\php>"C:\workdata\appdata\php\php.exe" "C:\workdata\code\php\
timetrex\/tools/unattended_upgrade.php" --config "C:\workdata\code\php\timetrex\
includes\..\timetrex.ini.php" --requirements_only --web_installer"
Requirements all pass successfully!
So it does appear to be working with that user as well.

I can create a virtual machine with a 32bit linux version to run it of so I think will do that instead.

Cheers