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.
Related
Version:
OS lsb_release -a : Ubuntu 18.04.5 LTS
PHP php -v : 8.0.5 Apache
pache2 -v : 2.4.29 (Ubuntu)
mysql --version : mysql Ver 14.14
Distrib 5.7.32
Problem:
I'm trying to install LAMP Stack using following article. However, I was getting HTTP 500 Error while accessing phpmyadmin from browser.
And installed phpmyadmin using below command.
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
Tried:
So, I checked with Error Log tail -f /var/log/apache2/error.log and found that Phpmyadmin was running on depreciated version of PHP.
[Sun May 16 21:11:57.057418 2021] [core:notice] [pid 2711] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 16 21:12:49.262658 2021] [mpm_prefork:notice] [pid 2711] AH00171: Graceful restart requested, doing restart
[Sun May 16 21:12:49.280421 2021] [alias:warn] [pid 2711] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Sun May 16 21:12:49.307986 2021] [mpm_prefork:notice] [pid 2711] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun May 16 21:12:49.308000 2021] [core:notice] [pid 2711] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 16 21:24:43.439480 2021] [mpm_prefork:notice] [pid 2711] AH00169: caught SIGTERM, shutting down
PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /usr/lib/php/20200930/json.so (/usr/lib/php/20200930/json.so: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/json.so.so (/usr/lib/php/20200930/json.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Sun May 16 21:24:43.547262 2021] [mpm_prefork:notice] [pid 2888] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun May 16 21:24:43.547290 2021] [core:notice] [pid 2888] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 16 21:24:47.635162 2021] [php:error] [pid 2895] [client 84.251.85.6:56332] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/phpmyadmin/libraries/url_generating.lib.php on line 231
If you have installed php mysql and apache directly on your system. Uninstall them and install only lamp. By so doing there will be no conflict and you stop having internal server error due too deprecated php version.
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.
I am having a strange error (system is Ubuntu 16.04):
[Mon Sep 04 13:07:17.219992 2017] [mpm_prefork:notice] [pid 27798] AH00169: caught SIGTERM, shutting down
[Mon Sep 04 13:07:17.302181 2017] [so:warn] [pid 27874] AH01574: module php7_module is already loaded, skipping
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Sep 04 13:07:17.322006 2017] [mpm_prefork:notice] [pid 27875] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Mon Sep 04 13:07:17.322026 2017] [core:notice] [pid 27875] AH00094: Command line: '/usr/sbin/apache2'
PHP version is 7.1.19. I installed curl (apt-get install php7.1-curl), in the php.ini I added extension=curl.co (and commented out extension=php_curl.dll), restarted the apache service, and the error is still there (I tried commenting out extension=curl.co but the error is still there).
This is an error I am getting on the page (Laravel setup):
Call to undefined function App\curl_init()
Everything is installed and config files are as required and I don't know what could be wrong here.
The /etc/php/7.1/mods-available/curl.ini file content should be:
extension=curl.so
Please notice the extension is .so, and not .co.
Then you can enable the module in your PHP by running:
$ sudo phpenmod curl
Finally, you may need to restart your Apache:
$ sudo systemctl restart apache2
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
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