All Questions
118
questions
-1
votes
1
answer
2k
views
Finding php location on MacOS Ventura
I'm using MacOS Ventura. PHP and Apache are running ok because i can access both on the browser localhost.
But how can i find out where the current PHP version is installed ? When i go to the prompt ...
1
vote
1
answer
329
views
I have openssl on my macOS, but when I compile PHP, I get error
I use this command compile the php on my macOS:
./configure \
--prefix=/opt/php-7.4.30 \
--with-config-file-path=/opt/php-7.4.30/etc \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--...
1
vote
1
answer
1k
views
PHP file read error on macOS Big Sur
I'm getting the following error from fopen and file_get_contents:
failed to open stream: Operation not permitted
This only occurs when accessing a script via localhost in a browser — on the command-...
0
votes
0
answers
466
views
Install XDebug On OSX
Trying to install xdebug on osx, but I get an error error: make failed when I run the command pecl install xdebug
What do I need to change so I can succesfully install xdebug on osx?
running: make
...
1
vote
1
answer
2k
views
How to copy text with font information as well?
I wonder, how to copying text with font information? Copying any text from the website below and paste to any document have the exact font style! What is the mechanism behind it?
https://coolfont....
3
votes
1
answer
1k
views
MacOS Mojave - remove PHP installation from php-osx.liip.ch
I followed this tutorial https://php-osx.liip.ch/ and installed the php 7.3 version on MacOSX Mojave, running
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
But now I changed my mind and I ...
2
votes
1
answer
6k
views
How to get zip extension working in PHP in MacOS 10.15.1?
I've cobbled the following procedure together from a couple of different questions here, and on the Apple support forums. None of them have worked on their own, but this appears to be close. The ...
0
votes
1
answer
224
views
OSX SPHP switch PHP version without reboot?
I installed the script sphp to switch my brew php installation on OSX.
I am not sure if this is normal but even with the script executing correctly I have to reboot in order for the new version of ...
0
votes
0
answers
443
views
Different PHP version in localhost folder
I have a Wordpress site which will not work with PHP 7. The dozens of other sites I have on my local machine are all fine with PHP 7. How can I change the PHP version in one folder on my localhost ...
3
votes
0
answers
433
views
Mongodb PHP Driver MacOS Unsigned package error
I installed MongoDB driver for PHP with the following command
sudo pecl install mongdodb
I had to disable "csrutil" at reboot to be able to run the above command. After installing the package I ...
0
votes
1
answer
2k
views
macOS won't use the right PHP version
I just updated macOS to Mojave, updated brew and reinstalled php (version 7.3, still via brew).
If I run php I get
-bash: /usr/local/opt/[email protected]/bin/php: No such file or directory
But if I do ...
0
votes
1
answer
8k
views
FCGI: attempt to connect to 127.0.0.1:9000 (*) failed Apache 2.4, PHP7.1-FPM with unix socket
I am trying to set up PHP7.1-FPM on MacOS Mojave! I followed this guide and got all the way through to the end when it stopped working.
During searching Google I decided to try and use unix sockets ...
0
votes
1
answer
9k
views
Upgrading PHP from 7.1 to 7.2 with Homebrew in macOS but still seeing PHP 7.1
I am trying to upgrade my PHP version from 7.1 to 7.2 on macOS and with Homebrew.
I did the following steps:
brew install php72
brew services stop php71
brew unlink php71
brew link php72
brew ...
5
votes
2
answers
1k
views
How to uninstall php70 or suppress homebrew error messages
Every time I open terminal on my mac, I get the following message from homebrew:
Error: No available formula with the name "homebrew/php/php70" Please tap it and then try again: brew tap homebrew/php
...
0
votes
1
answer
81
views
Is it necessary to set up apache, php and mysql?
I am developing mean-stack websites on my Mac. So I will need to use http://localhost:3000/..., https://localhost:3000/... to test the websites, and eventually http://localhost/localFile and https://...