On MacOSX when using MAMP GUI to start, MySQL starts but Apache doesn't start and gives the following error
Apache couldn't be started. Please check your MAMP installation and configuration
running sudo /Applications/MAMP/Library/bin/apachectl start gives
httpd: Syntax error on line 135 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so into server: dlopen(/Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libcrypto.1.0.0.dylib\n Referenced from: /Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so\n Reason: image not found
Additional info
- I've downloaded PHP 7.0.10 from https://www.mamp.info/en/downloads/
- I'm using MAMP not MAMP Pro
EDIT:
I've tried
Renaming the file “envvars” located in /Applications/MAMP/Library/bin into “_envvars”
Changing ports
Related
I have the SQLAnywhere PHP extension installed and it's working fine, right up until Apache restarts.
After Apache has restarted, any attempt to access any website on the server generates the following error in the Apache error log and throws a 500 internal server error on the page:
AH01215: PHP Warning: request_startup() for sqlanywhere module failed in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
To resolve it, I can explicitly stop and start Apache, but restarting Apache (apachectl restart) doesn't.
This is generally fine until an automated process (such as a cPanel update) causes Apache to restart.
The SQLAnywhere PHP extension was configured as follows:
Install the SQLAnywhere client
Download the PHP extension to the extensions directory
Add LD_LIBRARY_PATH=[sqlanywhere/lib64] to /etc/environment
Log out and back in for the LD_LIBRARY_PATH to take effect
Add the extension to the php.ini (or sqlanywhere.ini in php.d folder)
Stop then start Apache
My current thinking for a workaround is to modify the cPanel update script to perform an Apache restart by explicitly doing a stop then a start as this would cover the immediate issue, but I'm hoping that somebody might know of an actual fix for this to avoid any other automated restarts causing problems.
The stack I'm running is:
CentOS Linux release 7.3.1611 (Core)
cPanel 60.0 (build 28)
Apache/2.4.23 (cPanel)
PHP 5.6 (using cPanel's MultiPHP and EasyApache4)
SQLAnywhere12 Client
Thanks in advance for any suggestions!
I've suddenly started having a problem with Apache2 and PHP after a recent update. Apache won't start, giving me the following error:
apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Cannot load mods-enabled/mod-php5.so into server: /etc/apache2/mods-enabled/mod-php5.so: cannot open shared object file: No such file or directory
I've followed advice on a couple sites, leading me to do the following things:
In apache2.conf:
Changed /etc/apache2/modules to /etc/apache2/mods-enabled
Changing mod-php5.so to mod-php55.sp
Reinstall libapache2-mod-php5
ldconfig
whereis mod-php5.so (no results, also tried mod-php55.so and mod-php.so)
WHere is mod-php*.so located, and why is Apache suddenly not finding it?
EDIT: Sorry, forgot to say I'm running Linux Mint 17 x64.
I am trying to connect to a Azure data base. I have read many other stack overflow answers but they did not work for me:
-I have downloaded all the drivers that Azure offers to you. They are in
C:\wamp\bin\php\php5.5.12\ext folder:
-I have added to the system variable the path to extensions folder.
-I have set the extension in both php.ini files (inside the apache and php folders).
-Extensions have been set like
extension=php_sqlsrv_5X_ts.dll
extension=php_pdo_sqlsrv_5X_ts.dll and like extension=C:/wamp/bin/php/php5.5.12/ext/php_sqlsrv_5X_ts.dll extension=C:/wamp/bin/php/php5.5.12/ext/php_pdo_5X_ts.dll
Where X means that I have tried 53, 54, 55 and 56.
-I restart all wamp services every single time that I try new changes.
-I have even tried with IISExpress.
-It is still giving me this error and I can't see "sqlsvr" when I use phpinfo().
what more I should do? I have been suffering this for weeks.
I use this XAMPP with PHP 5.5.34 at https://www.apachefriends.org/download.html to have the test to enable the sqlsrv extension of PHP.
You can refer my steps:
After install the XAMPP application, run xampp-control.exe, click config=>PHP(php.ini) to check the extension folder.
Download the MSSQL driver for PHP in 3.2 version from https://msdn.microsoft.com/en-us/library/cc296170%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396. Uncompress it.
Copy php_pdo_sqlsrv_55_ts.dll and php_sqlsrv_55_ts.dll from the uncompressed driver folder to the PHP extension folder (X:\xampp\php\ext in my scenario).
Add extension=php_pdo_sqlsrv_55_ts.dll and extension=php_sqlsrv_55_ts.dll in PHP.ini file.
Start Apache.
Meanwhile, you can use phpinfo() to check the setting of Loaded Configuration File and extension_dir to make sure whether you have configured the correct settings in the definite files and the DLL files in the right folder.
I refer to the practice of Jordi's message in this post: Fatal error:
Call to undefined function sqlsrv_connect() in C:\xampp\htdocs
xampp3.2.1 + php 5.5 + sql server 2014 Express, x64.
My situation is, transplant xampp folder to a brand new computer.
Done all things need to do. (Download SQLSRV 5.6 (or 5.3 or..), check php.ini path, ...)
Download and install OBDC Driver 13(x64) (or maybe you can try OBDC Driver 11(x64))
Download and install SQL Server® 2014 Service Pack 3 (x64), need to restart the computer.
Download and install Visual C++ Redistributable VS2012 Update4 (x86)
Restart Apache
Then it can work!!!!!
I have been searching for a solution to this problem for several days and hope to help more people.
I know this is my fault. What I did was upgrade my php 5.3 to the latest php5.5. But due to some important reason I need to roll back to my previous php version which is 5.3.10. Upgrading to the latest php5 gave me no sweat but when I roll back it gave me this error:
$ sudo service apache2 start
* Starting web server apache2 apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/access_compat.load:
Cannot load /usr/lib/apache2/modules/mod_access_compat.so into server: /usr/lib/apache2/modules/mod_access_compat.so: cannot open shared object file: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
Please help anyone.
Comment line 2 in /etc/apache2/mods-enabled/access_compat.load and all other include problems, 3 for me
I had this problem when downgraded apache from 2.4 to 2.2, so i had to disable the modules there enabled in the 2.4 installation.
a2dismod <module-name>
Here are the details of my PHP installation:
PHP Version: 5.3.8
Apache Version: 2.2.21
PHP Extension Build: API20090626,TS,VC9
XAMPP location: C:\xampp.
File name: php_mongo.dll. (downloaded file for mongodb extension for
php "php_mongo-1.3.1-5.4-vc9")
I moved php_mongo.dll file to C:\xampp\php\ext and added the extension (extension=php_mongo.dll) in php.ini file. When I'm trying to restart the Apache server I'm getting the below error:
title:http.exe- Entry Point Not Found
The procedure entry point zend_new_interned_string could not be
located in the dynamic library php5ts.dll
When I click the OK button, the Apache server stops.
Use below extension
mongo-1.1.4-php5.3vc9ts
from https://github.com/mongodb/mongo-php-driver/downloads
Hope it will work for you.