Jump to content
The Uniform Server Community


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About danp84

  • Rank
  1. I am running Uniform Server 3.3 (standard configuration) on a Windows XP platform. (This includes PHP, Apache 2.0.58 as it comes straight from the download site). There are questions all over the web that pertain to enabling the additional functionality that has been built into php5. I seem to be having the same problems as all of these people, and I'm not quite sure why the implementation of PHP extensions is so hard! Specifically, I am failing to enable Javascript properly in PHP (using the php_java.dll extension). Here is what I am doing: - uncomment php_java.dll in my php.ini file - ensure that: extension_dir = "/usr/local/PHP/extensions" - download the PECL files for - unzip and extract php_java.dll into the /extensions file in diskw/usr/local/php/extensions - I also extracted php_java.jar to the extensions directory as well, even though I do not think it must be there When I try to run the following script (that I named example.php): <?php // get instance of Java class java.lang.System in PHP $system = new Java('java.lang.System'); // demonstrate property access echo 'Java version=' . $system->getProperty('java.version') . '<br />'; echo 'Java vendor=' . $system->getProperty('java.vendor') . '<br />'; echo 'OS=' . $system->getProperty('os.name') . ' ' . $system->getProperty('os.version') . ' on ' . $system->getProperty('os.arch') . ' <br />'; // java.util.Date example $formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); echo $formatter->format(new Java('java.util.Date')); ?> I get the commonly found error: Fatal error: java() [function.java]: Unable to load Java Library jvm.dll, error: The specified module could not be found. in W:\www\example.php on line 3 I understand that jvm.dll is a file that is required for PHP<=4.x, why is it being called in PHP5? I would entertain using a plugin, but the link for the Tomcat and Resin downloads lead nowhere on the Uniform Server website. In summary, why is it that these extensions rarely work and people have so many problems with them? Can someone maybe provide a list of common mistakes that are encountered, and corrections to misconceptions on these fixes? Thanks in advance.
  2. danp84

    Launching the PHP CLI

    I implemented the last changed you mentioned, which was: Change the line in php.ini: From: extension_dir = "/usr/local/PHP/extensions" To: extension_dir = "./extensions" ...and the PHP-CLI worked! Thanks for your help! ----------------------------------------------------------------------------------------------------------------------------- I'm still a bit confused about the Stunnel/OpenSSL other issue I mentioned in the post as well...
  3. danp84

    Launching the PHP CLI

    I am running uniform server 3.3 (standard configuration) on a Windows XP platform. I continue to get error messages whenever I launch the PHP CLI. The error messages say: "PHP Startup: Unable to load dynamic library '/usr/local/PHP/extensions\php_curl.dll' - The specified module cannot be found" This message is repeated for php_gd2.dll, php_mbstring.dll, php_mysql.dll, php_openssl.dll, and php_sockets.dll. Note that I have tried to enable cURL and SSL functions to interact with common api's, which is why I am doing this. All of these files are in the "/extensions" directory, and are all versions, which is the version of PHP I am trying to run. I have also edited the php.ini file to "uncomment" these extensions. Also, I have copied the appropriate files to my system32 folder on my Windows machine. I've tried copying the missing files to a number of different locations in the PHP folder, and tried searching for different ideas around the web but none of the permutations seem to work. -------------------------------------------------------------------------------------------------------------------------- In a related note, I have had success running the Stunnel plugin to establish SSL connections, but am having trouble making the integrated SSL functionality that comes with uniform server 3.3 which uses OpenSSL work. I have resigned to using the Stunnel plugin, but I would like to at least know how to configure uniform server 3.3 to do this without the aid of the plugin. Is there some modifications that have to be made to the Apache (ver 2.0.55) .conf files or do I have add the mod_ssl.so file in? Or is it something else entirely? -------------------------------------------------------------------------------------------------------------------------- Can anyone be of any help? Totally confused noob.
  • Create New...