Having problems with installing composer in Xampp - php

today i decided to start working with larvel so i started installing composer
and when i tried to composer it gave me a error of
php.exe-System Error
the program can't start because php5.dll is missing from your
computer.Try reinstalling the program to fix this problem
So i looked up in some sites and blogs and some pointed out that by renaming or removing php.ini will solve the problem .so i gave that a try (Renamed it php_old.ini) and the error was cleared...but during installation there was a new error that appeared called
Composer Download Error
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
So seeing it i changed back my php.ini file to its original filename and dont know what to do next
im currently using Xampp and there was alot of posts regarding wamp composer installation which didn't help
So Could someone give me instruction in installing the composer tool ..
it would be a great help
thanks in advance

Related

PHP Cassandra module not working

I carefully read all Q&A here for about 2 days but could not resolve my issue, so please do not say that i should read something in first 20 strings of search.
My problem is:
I use Xubuntu, apache2 and php5. Cassandra itself installed and working, cassandra service is running, cassandra cpp installed.
Command
pecl install cassandra
works ok, physically cassandra.so exist. When i add extension=cassandra.so in php.ini Apache crashes on start.
When i try run
php -r " Cassandra::cluster()->build();"<br>
it returns:
PHP Fatal error: Class 'Cassandra' not found in Command line code on line 1
I try add extension that not exist in 'php.ini'(like extension = sdbcibsdbc.so) but it simply ignored, so problem is not in mistakes or something - cassandra.so makes crash. Also previous version(cassandra-1.0.0) simply ignored, not crash Apache but not work too.
What can it be?
I resolve issue, but details still unclear.
This situation, when you can install cassandra php driver but cant add into 'php.ini' means that some of C++ driver dependences not resolved, in my case it was libuv. Have no idea how it possible: libuv-dev without libuv and why pecl throw no errrors.
I remove libuv 1.8.0 and install 1.7.5 - and all OK! Then i try 1.8.0 again and it works too. So, probably i miss some step in installation process but it goes without errors or warnings.
As always, most problems will disappear with carefully reinstall.
After installing Cassandra you must add extension=cassandra.so to php.ini to enable it:
Build process completed successfully
Installing '/opt/rh/rh-php71/root/usr/lib64/php/modules/cassandra.so'
install ok: channel://pecl.php.net/cassandra-1.3.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=cassandra.so" to php.ini

PHP installation appears to be missing the MySQL extension which is required by WordPress. 4

My site keeps giving the error "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
I have rhel6 + php5.3.3 + php-mysql + wordpress + apache installed on one server. On a seperate server we have mysql + mysql-server installed.
In wp-config.php I configured our mysql server.
I have been seeking for solutions for over a day now but I cannot seem to fix it.
I tried adding/ uncommenting the extension=mysql.so & mysqli.so line in php.ini but that didn't do anything either.
The phpinfo.php page gives info back, only thing is that scan dir for additional ini's is not looking at the right dir. Don't know if that can cause this problem though.
Anyone an idea?
With kind regards,
Bram
I found out that an installation of PHP via yum install has a default config and disables a lot, like this config option --without-mysql.
I downloaded PHP from their site and compiled it myself with my own config and this worked.
I also found that this problem does not occure on CentOS7, a yum install of php, php components and mariadb works fine with wordpress.
Your PHP installation appears to be missing the MySQL extension which is required.
Only one thing causes that error. Your PHP.INI doesn't have the mysql line uncommented, so it's not loading the mysql module (or the module is simply missing entirely).
Restart your webserver after you fix the PHP.INI file.

Install Composer fails "openssl extension is missing" error

I've been trying to install Composer for about a month now on a Windows 10 computer. Every time I run the Windows OS installer, it gives me this error:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
I've checked in my php.ini file (C:\Bitnami\wampstack-5.4.39-0\php\php.ini) and it is not commented out. I've checked for the DLL itself in the ETC folder, it's there. I've restarted my Apache Web Server several times. Heck, I've reinstalled PHP and my WAMP Servers. Nothing is working. I've tried downloading a fresh Composer installer thinking maybe my original one got corrupted some how. Still doesn't work. Am I missing something here?
After about another week of research and talking with a University professor about it, I ultimately found that the issue stemmed from my Bitnami installation path. Installing the wampstack as it defaulted by the installer (wampstack-version#) seems to cause problems in composers ability to install. Make sure to install it without the version on the end of the wampstack path.

Can't install Composer from Symfony2 official page on windows 8

I'm beginer with Symfony2 Framework and php. I have started doing a SF2 tutorial and i stopped on setting up the project. I can't install Composer from SF official page on Windows 8, when i choose a php.exe from my php file and click install, then i see following error:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
I'm working with WebServ 2.1. I have added to php.ini DEVELOPMENT following code
extension_dir = C:\WebServ\php\ext
extension=php_openssl.dll
C:\WebServ\php\ext is a path to folder with extension files and it contain php_openssl.dll.
It still doesn't work. Do anybody knows how to fix it?
Print phpinfo() and make sure SSL is present there.
Don't forget to restart the webserver after editing php.ini

Instaling composer for laravel framework

I have a problem with instaling composer for laravel framework:
I have this error:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
I try everything I find on net - change php.ini, instal via CMD but nothing work...
I really dont understand what can be a problem here. Please help.
Here is a image of what I try:
You have the wrong PHP Version.
Personally, I wouldn't bother to fix it. Use Homestead to create a virtual ubuntu instance. Everything will be up and running in minutes

Categories