I did everything described here (for OS X)
https://docs.phalconphp.com/en/latest/reference/install.html#mac-os-x
https://phalconphp.com/en/download
I also added extension=phalcon.so to the php.ini and restarted the webserver.
I copied the compiled lib to /Applications/XAMPP/xamppfiles/lib/php/extensions
But when I search for "phalcon" in phpinfo there is no entry, so phalocn was not installed.
Has anyone an idea what I can do to fix this problem?
PS: I use xampp as web server (PHP Version 5.5).
Related
I followed a guide which used home-brew to install the lastest version of php (5.4.8) on OSX Mountain Lion.
I then followed a guide which showed me how to setup and use the pre-installed apache on OSX.
However when I try running up a base Symfony 2 project I get a bunch of errors relating to missing date.timezone in the php.ini.
However I have this correctly setup the php.ini but doing a quick phpinfo() in the Symfony project shows that its using the old preinstalled version of php (5.3) rather than the new one.
In terminal if I type which php & php -v, It shows the correct new version is being used.
But the phpinfo() shows
Did you follow all the instructions provided in the Caveats?
Run brew info php54 to see them again.
Especially the line:
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php5_module /usr/local/Cellar/php54/5.4.8/libexec/apache2/libphp5.so
Apache is not aware of the homebrew version of PHP (i.e. /usr/bin/php). You see it on the command line because you've likely modified your PATH (i.e. /usr/local/bin/php).
You can modify this in your httpd.conf file.
I am not a fan of homebrew or other package libraries. Primarily because Mac OS X is built atop Unix. Furthermore, all but MySQL are installed natively. Here's an article on installing Apache, MySQL, and PHP on Mac OS X.
Disclaimer: I wrote that article.
Today I have same issue for updating php 7.2 to 7.3 as requirement of Laravel 6. Here is my solution.
Open your httpd.conf file in "/etc/apache2/http.conf"
Search (Ctrl + w) for "LoadModule php"
Uncomment that row
Restart your apache with "sudo apachectl restart"
Then, your php version in local web server (apache2) will be updated
Environment in local system
MAMP 3.2.2
PHP 5.6.24
Webserver Apache
Mongodb for caching is installed successfully and found running in MongoDBservice.
I Downloaded Mongodb drivers from https://pecl.php.net/package/mongodb (used thread safe versions PHP5.6 "php_mongodb.dll") selected php_mongo-1.1.8-5.6-ts-vc11-x64.zip, Made changes to php.ini as extension=php_mongo.dll
I just copied and pasted .dll file in my C:\MAMP\bin\php\php5.6.24\ext
So far good... After restarting my MAMP I cannot see mongo in phpinfo ---->This is my issue
Any idea about this?
Thank you
Just copying the DLL file to the correct directory is not enough. You also need to add the following line to your php.ini file before the MongoDB extension is available:
extension=php_mongo.dll
After that restart Apache and MongoDB should show up as an available extension in phpinfo().
By the way, that is also mentioned on the official PHP website for installing the MongoDB driver: http://www.php.net/manual/en/mongodb.installation.windows.php
Should be extension="php_mongodb.dll instead of extension="php_mongo.dll as it is the name of the file you copied.
In my case, I first downloaded a x64 version of php_mongo.dll, which did not show in phpinfo page. Then i downloaded a x86 version and everything works fine. Hope this helps.
PS. Make sure you pick the right php version.
I have installed MAMP 3.5 with Apache 2.4.16 on Yosemite 10.10.5 and have run into some obstacles that I find hard to solve.
The first issue was that virtual host settings have changed in Apache but that I managed to fix.
The remaining problem is with extensions. I use gettext in an application and it can not be found.
php -v says PHP 5.6.10 (cli)
phpinfo() says PHP 5.5.27
php --ini says /Applications/MAMP/bin/php/php5.6.10/conf/php.ini
The php.ini path seems to be correct although phpinfo() says that extension_dir is /usr/lib/php/extensions/no-debug-non-zts-20121212
This seems very strange to me? The gettext extension is not in this directory but is found along with all other relevant extensions in the directory listed in the php.ini file for PHP 5.6.10 which is the one that should be used...
Any ideas what has gone wrong and how I can make PHP use the correct ini file?
CLI uses the installed version of OSX, MAMP uses it's own version.
The easiest way to use same version for both is to add the MAMP version first in your path in ~/.bash_profile.
export PATH=/Applications/MAMP/Library/bin/:/Applications/MAMP/bin/php/php7.0.0/bin/:~/bin:$JAVA_HOME/bin:$PATH
of course you need to replace the php7.0.0 part with the version you want to use.
Quit your terminal app and reopen it, and try php -v again.
I've been baffled and frustrated that I've been trying to update one of our servers that my supervisor installed and when I run any PHP installed module, it starts with wrong version of PHP. The server always starts with PHP Version 5.4.19. Regardless of what module I installed and checked that the files run with, it always starts with that version according to phpinfo. Server runs MS Server 2008 R2. My objectives are to 1) Update PHP to Version 5.6. and 2) Use ZeroXI controller for modularity of the server.
Here's what I've found and checked so far:
Supervisor installed two types of Uniservers while trying them out: Uniserver Coral don't know which version, but I tried updating to Coral 8.9.2... Initially, I uninstalled the original services but cannot verify (1) What is the name of the service in order to verify that? Also all of the apache and mysql modules are stopped and ZeroXI can peacefully start apache and mysql.
The other uniserver is Uniserver ZeroXI 1.1.6. Oddly enough, there was an installed service that wasn't running so I uninstalled that as well. I can verify that us_apache_1 service is not running. I installed php_5_6_0 which the documentation says that it supports. However, even if php56 is selected and phpinfo verifies that
Loaded Configuration File C:\uniserver\core\php56\php_production.ini
Apache Environment:
PATH C:\uniserver\core\apache2\bin;C:\uniserver\core\mysql\bin;C:\uniserver\core\php56;C:\uniserver\core\openssl;C:\uniserver\core\msmtp;C:\uniserver\utils;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.6\bin
Core:
extension_dir C:/uniserver/core/php56/extensions
Environment:
PHP_SELECT php56
Well, Apparently:
PHP Version 5.4.19
(2) Are there any other causes why the uniserver zeroxi uses 5.4.19 although it is set as php 5.6.0?
I have tried installing a new uniserver zeroxi controller under a different folder name, but to no avail, it consistenly still uses the same php version. Please let me know what other things that could point me to what is causing this.
Thanks in advance.
Just to update what happened and our solution and this may apply to various WAMPP installations as well...
We thought that
Configuration File (php.ini) Path C:\Windows
had nothing to do with our install of Uniserver. Apparently there is this errant php5ts.dll in the Windows folder. This file loaded the wrong version of php. As soon as we copied the dir/to/php/folder/php5ts.dll (c:\uniserver\core\php56\php5ts in our case), all of the modularity of unizerver zeroxi worked again.
For other WAMPP installs, you might want to check the same php.ini path in you phpinfo and if you have C:\Windows as the path, you can backup then copy the php5ts.dll file from the php installation folder to the Windows folder.
So I've tried almost all the tutorials I've found here and on other sources but the problem is always the same. The extension is not installed when I call the phpinfo method.
I've added the file mongo.so to the extensions folder and I've called it on the php.ini as extension=mongo.so.
I'm using MAMP 2.2 on Mavericks and the php version is 5.5.3.
Appreciate any kind of help.
The output of phpinfo() will tell you which php.ini file (if any) is in use.
You have to modify that php.ini file and add extension=mongo.so and then restart your webserver.
One thing you need to keep in mind when you are installing the MongoDB driver for MAMP is the pecl command you are using is actually the MAMP command, not some alternative PHP install you may have on your system.
To do this, locate the PHP binary distributed with MAMP, and the use the full path to the pecl command of the MAMP installation.