PHP Warning: PHP Startup: Unable to load dynamic library 'php_ssh2.dll' (tried: C:\xampp\php\ext\php_ssh2.dll (%1 is not a valid Win32 application - apache

I am trying to use php_ssh2.dll(thread safe version-1.1.2) using xampp on Apache Server in PHP 7.2 running on Windows 10. My phpinfo() shows Compiler is MSVC15 (Visual C++ 2017), Architecture is x86 and Thread Safe is enabled. After downloading i kept php_ssh2.dll on C:\xampp\php\ext folder and also added extension=php_ssh2.dll to php.ini file. After that i restarted my Apache Server. But the problem isn't resolved. Some posts suggest to use libssh2.dll but failed to find that dll inside the package(php_ssh2-1.1.2-7.1-ts-vc14-x86.zip) I downloaded. Can anyone help me on this one? Thanks.

For PHP 7.2 you would need to use version compiled with VC15 compiler. Unfortunately it is not available for download at pecl.php.net, but you can download it from https://github.com/nufue/pecl-ssh2-windows

Related

XAMPP tomcat service is not starting with error as "Tomcat Started/Stopped with errors, return code: 1"

I have installed XAMPP 7.2.10 on my Win 10 and other services like Apache and MySQL are working fine.
But the Tomcat service is not starting and is throwing an error as:
"Tomcat Started/Stopped with errors, return code: 1,
Make sure you have Java JDK or JRE installed and the required ports are free,
Check the "/xampp/tomcat/logs" folder for more information"
XAMPP Tomcat error image
I have installed Java JDK in "C:\Program Files\Java" and have set the environment variables path.
I have set the "JAVA_HOME" variable path as "C:\Program Files\Java\jdk-10.0.2"
Also, no other program is using the required ports.
When I run the "catalina_start.bat", I get error as:
"ERROR: The system was unable to find the specified registry key or value.
. [XAMPP]: Cannot find current JDK installation!
. [XAMPP]: Cannot set JAVA_HOME. Aborting ..."
What mistakes have I made here?
I had the same problem (XAMPP 7.3.0 / Windows Server 2016 / Java 11). I first checked the environment variables, the java installation - all seemed to be fine.
Sadly the XAMPP error message is not very meaningful, so i looked inside of tomcat installation. To my surprise XAMPP 7.3.0 uses a very old version of Apache Tomcat (7.0.56 from 2014!), that don’t work well with Java 9+. The reason is Tomcat 7.0.56 uses the "-Djava.endorsed.dirs" option, that is no longer supported in Java 9+. Up-to-date Tomcat versions have no problem with java 9+. To solve this you can just stay with Java 8 (if possible for you) or try to fix this on your own by modify Tomcat start-up: Go to your \xampp\tomcat\ folder and see this fix in Tomcat 7.0.73 doesn't work with java 9.
But i would recommend you to install a up-to-date version of tomcat and don’t use the XAMPP one (what i finally did) - at least until XAMPP updates there tomcat version .

XAMPP Can't Start Apache After Upgrading to PHP7.1.17 "Attempting to start Apache service..."

I have XAMPP installed on Windows 7 virtual machine. My old PHP version was 7.0.9 with Apache 2.4
I needed to upgrade the PHP version to 7.1.x and I set out reading about how to best to this. In end, I settled with the simple plan:
Stop Apache service
Downloaded new PHP version from official php website. For PHP 7 the 7.1.17 version was listed. I downloaded the thread safe version, as my Apache has thread safety enabled.
I extracted the contents of the downloaded archive to a folder.
I copied and replaced all files in the appropriate folders from C:/Server/php with the new php version files from the extracted archive.
I attempted to start Apache from the XAMPP control panel and the server will not start.
The message "Attempting to start Apache service..." just hangs and nothing happens.
The last entry in the error.log file in C:\Server\apache\logs shows the event when the server was stopped and that's it.
When I check the php version from CLI with the command php -v, the console returns installed php version 7.1.17
I tried different suggestions I read from similar questions, like changing ServerName localhost:80 to ServerName localhost:8080 and copying php7apache2.dll to apache/bin ( as suggested here: Upgrading PHP in XAMPP for Windows? ), alas the issue is not fixed and Apache does not start.
Of course, I also restarted the virtual machine, all the same.
At this point, I'm dumbfounded. Don't know what to do.
I need to get Apache running with php 7.1, as it is required by Magento 2.2.4. I do not want to reinstall XAMPP, as this will be a lenghty process with a lot of risk for more things to go wrong.
Any help is much appreciated!
Alright, so after checking Windows Logs > Application in Event Viewer I saw the error ".. the Apache service named is not a valid win32 application". I downloaded the x86 version of PHP from official website PHP for Windows
Then copied and replaced files as described above, and Apache started successfully.
To see if your Apache version is x64 or x86 open command prompt and cd to your Apache bin directory, in my case C:/Server/apache/bin , then run:
file httpd

Having trouble to configure the php_crack.dll‏ with Phalcon

I'm new to this Phalcon framework and just started working on it.
It is configured on XAMPP. Phalcon developer Tools also has been setup.
XAMP 1.8.3 for windows 7, 32 bit
PHP 5.5.9
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
But, now, I want to configure the php_crack.dll but constantly getting below error.
httpd.exe - Entry Point Not Found
The procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll.
OK
Warning
PHP Startup: Unable to load dynamic library 'D:\xampp2\php\ext\php_crack.dll' - The specified procedure could not be found.
OK
Kindly help me out and let me know what I m doing wrong.
Thanks in advance
Regards,
Virda
After wasting a lot of time I found a solution of this problem.
The problem was the php_crack.dll and php version was mismatch, when I downloaded the correct version of crack.dll then the error resolved.
To download the correct version of crack.dll
open the below link and click on DLL under windows section.
According to php version download the file.
http://pecl.php.net/package/crack

Mono on Fedora mscorlib cant install gtk-sharp-2.12.11

When I compile a simple web application on my machine it works without problems.
However when I publish to the server always gives me the following error:
Could not load type 'System.Collections.Generic.Dictionary `2' from assembly 'mscorlib, Version = 4.0.0.0,
In my local machine I have the following directory that does not exist on the server:
/usr/lib/mono/4.0/
I've tried to install gtk-sharp-2.12.11 but in the end gives the following error:
Requested 'gtk + -2.0> = 2.12.0' but version of GTK + is 2.10.4
Please help me
Thanks
Paulo Santos
The gtk# binding, in its version 2.12, simply depends on gtk+ version 2.12.
You need to upgrade your Fedora if you want to use that version.
However, take in account that the gtk platform is only useful for desktop development, not web development, so I think you're mixing things up.
Try installing the "dmcs" compiler in Fedora. (You may have a very old version of Mono that doesn't include this 4.0-profile compiler, what version of Mono do you have installed?)

Getting "not a dynamic executable" running "ldd mod_wsgi.o" on CentOS 5.5

I've installed Python 2.7.1 on 64-bit CentOS 5.5 and compiled mod_wsgi against 2.7.1. I'm building a DJango web application and need Python modules from 2.7 (CentOS built-in version of Python is only 2.4.3 and sorely lacking). I've basically followed the procedure on this great link:
http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/
So, I've now got a working version of Python 2.7.1 installed in /opt/python2.7.1. But, when I install my mod_wsgi.o module in Apache, Apache fails to start with:
Cannot load /etc/httpd/modules/mod_wsgi.so into server:
/etc/httpd/modules/mod_wsgi.so: only ET_DYN and ET_EXEC can be loaded
So, I ran the ldd command against my version of mod_wsgi.o and, instead of seeing the expected list of shared libraries, I see:
[root#ac5w15tps01 modules]# ldd mod_wsgi.o
not a dynamic executable
Currently, my web application is running with mod_wsgi working fine against Python 2.4.3. Someone else set that up so not sure if they needed to do anything special - I inherited the setup. I've read everything related to building and installing mod_wsgi from http://code.google.com/p/modwsgi/ and searched the web for answers. Can't see to find anything on this error.
Any help would be greatly appreciated!