Call to undefined function curl_init() php 5.6.7 without wamp - php

note: I am not using wamp or xampp
My system Windows 8 on azure vm
php-5.6.7-Win32-VC11-x32
Apache 2.4.12-win32-VC11
I did uncomment "extension=php_curl.dll" but still i am getting this error--->Call to undefined function curl_init()
To solve this issue I did alot of googling and also stackoverflow (obviously)
but I couldn't for any result that could help
php.ini
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_ldap.dll
extension=php_mbstring.dll
; Directory in which the loadable extensions (modules) reside.
; On windows:
extension_dir = "c:/php/ext/"
apache error log
[Mon Apr 06 13:51:13.407838 2015] [ssl:warn] [pid 3592:tid 560] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Apr 06 13:51:13.407838 2015] [mpm_winnt:notice] [pid 3592:tid 560] AH00455: Apache/2.4.12 (Win32) PHP/5.6.7 OpenSSL/1.0.1l configured -- resuming normal operations
[Mon Apr 06 13:51:13.407838 2015] [mpm_winnt:notice] [pid 3592:tid 560] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Mon Apr 06 13:51:13.407838 2015] [core:notice] [pid 3592:tid 560] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Mon Apr 06 13:51:13.407838 2015] [mpm_winnt:notice] [pid 3592:tid 560] AH00418: Parent: Created child process 1620
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_intl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Mon Apr 06 13:51:14.814069 2015] [ssl:warn] [pid 1620:tid 500] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Apr 06 13:51:14.814069 2015] [mpm_winnt:notice] [pid 1620:tid 500] AH00354: Child: Starting 64 worker threads.
is there anything am I missing,thanks for your time and also i am sure this is not a duplicate question, because i did lot of search before posting this question

Related

php_openssl.dll extension cannot load

I'm using the PHP version 7.0.26 on Windows Server 2008R2. I tried to enable the php_openssl.dll extension by following steps in php.ini:
1. uncomment line: extension=php_openssl.dll
2. set path: extension_dir = "D:/_SERVER/_php7/ext/"
3. copy: php.ini to C:\Windows
4. restart server: httpd -k stop, httpd -k start
Now, when I try which extensions are loaded in command prompt through php -m I see, that php_openssl extension is loaded.
But, when I try to check loaded extension in web browser though method get_loaded_extensions(), the extension is not loaded :-(
In error log, there are following lines:
The 'Apache2.4' service is restarting.
The 'Apache2.4' service has restarted.
winnt:notice] [pid 376:tid 456] AH00424: Parent: Received restart signal -- Restarting the server.
[Thu Nov 30 16:47:14.478831 2017] [ssl:warn] [pid 376:tid 456] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning: PHP Startup: Unable to load dynamic library 'D:/_SERVER/_php7/ext/php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/7.0.26 configured -- resuming normal operations
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00456: Apache Lounge VC15 Server built: Jul 7 2017 11:43:51
[Thu Nov 30 16:47:14.494431 2017] [core:notice] [pid 376:tid 456] AH00094: Command line: 'd:\\_SERVER\\_apache\\bin\\httpd.exe -d D:/_SERVER/_apache'
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00418: Parent: Created child process 6256
[Thu Nov 30 16:47:14.978047 2017] [ssl:warn] [pid 6256:tid 188] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning: PHP Startup: Unable to load dynamic library 'D:/_SERVER/_php7/ext/php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Thu Nov 30 16:47:15.461662 2017] [mpm_winnt:notice] [pid 6256:tid 188] AH00354: Child: Starting 64 worker threads.
[Thu Nov 30 16:47:17.021712 2017] [mpm_winnt:notice] [pid 3668:tid 188] AH00364: Child: All worker threads have exited.
I'm sure, that path to the php_openssl.dll is correct.
Thanks for each help.
Regards.
\php.ini
; Directory in which the loadable extensions (modules) reside.
; On windows:
extension_dir = "ext"
I removed PHP and Apache, download latest versions, configure and now it works. But I do not found right reason of this failure :-(
Thanks for each help.

cannot install wordpress, appache2 shows me errors

I'm using OpenSuse as OS and I want to setup wordpress,
When i go to the URL: localhost/wp-admin/install.php to install it, it shows me a blank web page.
a tail -f /var/log/apache2/error_log shows me the following:
[Thu Mar 09 09:42:19.791559 2017] [ssl:warn] [pid 1453] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Mar 09 09:42:19.905721 2017] [mpm_prefork:notice] [pid 1453] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1i-fips PHP/5.6.30 configured -- resuming normal operations
[Thu Mar 09 09:42:19.905770 2017] [core:notice] [pid 1453] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Thu Mar 09 19:52:23.863004 2017] [ssl:warn] [pid 1318] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1k 8 Jan 2015, version currently loaded is OpenSSL 1.0.1i-fips 6 Aug 2014) - may result in undefined or erroneous behavior AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux-kny7 AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Thu Mar 09 19:52:33.915213 2017] [ssl:warn] [pid 1318] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1k 8 Jan 2015, version currently loaded is OpenSSL 1.0.1i-fips 6 Aug 2014) - may result in undefined or erroneous behavior
[Thu Mar 09 19:52:33.915299 2017] [ssl:warn] [pid 1318] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Mar 09 19:52:35.175637 2017] [mpm_prefork:notice] [pid 1318] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1i-fips PHP/5.6.30 configured -- resuming normal operations [Thu Mar 09 19:52:35.175813 2017] [core:notice] [pid 1318] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D
I need help please.

Ubuntu 14.04 Server: Apache2 issue with phpMyAdmin

I have installed Apache 2, and it is working fine. I have installed PHP 7, and everything works fine, But when I install phpMyAdmin, Apache 2 stops working. When checking Apache 2, it even does not load the default page.
When I restart Apache 2, the following error comes up:
root#ip-172-31-30-202:~# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
Segmentation fault (core dumped)
Action 'configtest' failed.
The Apache error log may have more information.
The error log has:
[Mon Jul 18 12:54:10.668017 2016] [mpm_event:notice] [pid 13665:tid 140077033654144] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 12:54:10.668089 2016] [core:notice] [pid 13665:tid 140077033654144] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 12:54:23.642421 2016] [mpm_event:notice] [pid 13665:tid 140077033654144] AH00491: caught SIGTERM, shutting down
[Mon Jul 18 12:54:24.689367 2016] [mpm_prefork:notice] [pid 14802] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 12:54:24.689425 2016] [core:notice] [pid 14802] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 12:54:25.869852 2016] [mpm_prefork:notice] [pid 14802] AH00169: caught SIGTERM, shutting down
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xml.so' - /usr/lib/php/20151012/xml.so: cannot open shared object file: No such file o$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/dom.so' - /usr/lib/php/20151012/dom.so: cannot open shared object file: No such file o$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/simplexml.so' - /usr/lib/php/20151012/simplexml.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/wddx.so' - /usr/lib/php/20151012/wddx.so: cannot open shared object file: No such file$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xmlreader.so' - /usr/lib/php/20151012/xmlreader.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xmlwriter.so' - /usr/lib/php/20151012/xmlwriter.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xsl.so' - /usr/lib/php/20151012/xsl.so: cannot open shared object file: No such file o$
[Mon Jul 18 12:54:26.942086 2016] [mpm_prefork:notice] [pid 14888] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 12:54:26.942120 2016] [core:notice] [pid 14888] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 12:55:36.014664 2016] [:error] [pid 14891] [client 103.255.6.72:60140] script '/var/www/html/info1.php' not found or unable to stat
[Mon Jul 18 12:56:38.672883 2016] [mpm_prefork:notice] [pid 14888] AH00169: caught SIGTERM, shutting down
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xml.so' - /usr/lib/php/20151012/xml.so: cannot open shared object file: No such file o$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/dom.so' - /usr/lib/php/20151012/dom.so: cannot open shared object file: No such file o$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/simplexml.so' - /usr/lib/php/20151012/simplexml.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/wddx.so' - /usr/lib/php/20151012/wddx.so: cannot open shared object file: No such file$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xmlreader.so' - /usr/lib/php/20151012/xmlreader.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xmlwriter.so' - /usr/lib/php/20151012/xmlwriter.so: cannot open shared object file: No$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/xsl.so' - /usr/lib/php/20151012/xsl.so: cannot open shared object file: No such file o$
[Mon Jul 18 12:56:39.724500 2016] [mpm_prefork:notice] [pid 14954] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 12:56:39.724533 2016] [core:notice] [pid 14954] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 12:57:41.945362 2016] [mpm_prefork:notice] [pid 14954] AH00171: Graceful restart requested, doing restart
[Mon Jul 18 12:57:42.017483 2016] [mpm_prefork:notice] [pid 14954] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 12:57:42.017497 2016] [core:notice] [pid 14954] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 12:57:42.610599 2016] [mpm_prefork:notice] [pid 14954] AH00169: caught SIGTERM, shutting down
[Mon Jul 18 13:02:11.030749 2016] [mpm_prefork:notice] [pid 20227] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 13:02:11.030808 2016] [core:notice] [pid 20227] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 13:05:14.256971 2016] [mpm_prefork:notice] [pid 20227] AH00169: caught SIGTERM, shutting down
[Mon Jul 18 13:05:34.584056 2016] [mpm_prefork:notice] [pid 21762] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 13:05:34.584096 2016] [core:notice] [pid 21762] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 13:08:45.103877 2016] [mpm_prefork:notice] [pid 21762] AH00171: Graceful restart requested, doing restart
[Mon Jul 18 13:08:45.197300 2016] [mpm_prefork:notice] [pid 21762] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 18 13:08:45.197313 2016] [core:notice] [pid 21762] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 18 13:08:45.779038 2016] [mpm_prefork:notice] [pid 21762] AH00169: caught SIGTERM, shutting down
I am using Ubuntu 14.04 (Trusty Tahr).
This worked for me:
cd /etc/apache2/mods-enabled
rm php5.conf
rm php5.load
sudo service apache2 start;
It worked :)))))
See also apache2 segfault after update.
Apache does not dump core by default. Have a look at http://www.omh.cc/blog/2008/mar/6/fixing-apache-segmentation-faults-caused-php/.
Run these command in the terminal:
vim /etc/apache2/apache2.conf
Add the following to the bottom of the file:
# phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf
Then restart Apache:
sudo service apache2 restart
The issue is solved by uninstalling Apache 2:
sudo apt-get purge apache2
The I installed phpMyAdmin:
sudo apt-get -y install phpmyadmin
Then I installed apache2:
sudo apt-get install apache2

Error setting up Xdebug with Xampp (Windows 7) - server certificate does NOT include an ID which matches the server name

I have been trying to setup Xdebug to work with Xampp but it gives me an error loading the file.
Error log:
[Wed Mar 25 23:00:50.218514 2015] [core:warn] [pid 4144:tid 248] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Failed loading C:\Users\tara\workspace\php_xdebug-2.3.2-5.6-vc11-x86_64.dll.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 25 23:00:50.438521 2015] [mpm_winnt:notice] [pid 4144:tid 248] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured -- resuming normal operations
[Wed Mar 25 23:00:50.438521 2015] [mpm_winnt:notice] [pid 4144:tid 248] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Wed Mar 25 23:00:50.438521 2015] [core:notice] [pid 4144:tid 248] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Mar 25 23:00:50.440521 2015] [mpm_winnt:notice] [pid 4144:tid 248] AH00418: Parent: Created child process 5964
[Wed Mar 25 23:00:50.964551 2015] [ssl:warn] [pid 5964:tid 260] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
This is what I have in my php.ini file:
[XDebug]
zend_extension = "C:\Users\tara\workspace\php_xdebug-2.3.2-5.6-vc11-x86_64.dll"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
I ended up finding out that I had the wrong version of XDebug installed. I installed the newest one for my version of Windows and looked at the TS vs not TS) + PHP, but they have a custom installer that told me to go with a slightly older version and then it worked! Here's the site:
http://xdebug.org/wizard.php
After this fix, I still had an error with the session not starting when I ran Eclipse (it would freeze at the load forever and say it was waiting for the XDebug session). I fixed that by adding the following line to my php.ini file:
xdebug.idekey=ECLIPSE_DBGP

XAMPP + PostgreSQL = Errors

I installed XAMPP and PostgreSQL on a Windows 7 machine.
I configured the apache httpd.conf and PHP.ini files just fine, and they work.
I uncommented the "extension php_pgsql.dll" line in the php.ini file and added \php, \php\ext, and the PostgreSQL \bin and \lib directories to my PATH variable.
C:\Program Files\PostgreSQL\9.2\lib;C:\Program Files\PostgreSQL\9.2\bin;C:\xampp\php\ext;C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\php;C:\xampp\php;
I downloaded the php_pgsql.dll file that is compatible with windows and copied it to \php\ext
When I attempt to start the apache server, I get two errors:
"The procedure entry point _regexec#20 could not be located in the dynamic link library php5ts.dll."
and
"PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found."
So, these errors are obviously not fatal, meaning the server then continues to start and completes starting.
Also, if I comment out the "extension php_pgsql.dll" line in php.ini, the error disappears.
Here are the relevant error logs from PHP and apache:
Apache:
[Thu Nov 15 10:48:11.763770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Thu Nov 15 10:48:11.763770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00456: Server built: Aug 18 2012 12:41:37
[Thu Nov 15 10:48:11.763770 2012] [core:notice] [pid 5420:tid 320] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Nov 15 10:48:11.764770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00418: Parent: Created child process 5728
[Thu Nov 15 10:48:13.489869 2012] [ssl:warn] [pid 5728:tid 328] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 15 10:48:16.520042 2012] [mpm_winnt:notice] [pid 5728:tid 328] AH00354: Child: Starting 150 worker threads.
PHP:
[15-Nov-2012 15:48:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found.
in Unknown on line 0
[15-Nov-2012 15:48:16 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found.
in Unknown on line 0
I want to get this set up so I can write a PHP interface for a PostgeSQL database. This is just for fun, not in a professional context.
Try this, i had this problem with Windows 7 (64bit), i added the full path of libpq.dll from the PostgreSQL server installation path into httpd.conf, and the problem was solved.

Categories