Questions tagged [php]

PHP is a server-side scripting language used to build dynamic web pages.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Unable to use PHP in Apache on Big Sur

After using brew to install Apache version 2.4.46 on Mac OS Big Sur 11.2.3, and using brew to install PHP 8.0.6, I am unable to run PHP. I am running Apache from /usr/local/etc/httpd, and my Document ...
1
vote
1answer
21 views

Where does homebrew install a legacy php version?

In order to make some old software work, I need to downgrade my PHP version from 8 to 7.4. I run this command without any problems: brew install php@7.4 ... and homebrew buzzes and whirs and ...
0
votes
1answer
18 views

How to access Shortcuts for Forward and Backwards in PhpStorm when using a German keyboard on a Mac

I currently switched from a PC to a Mac. I'm working a lot in PhpStorm and there use the keyboard-shortcuts for Forward and Backwards - which on windows are Ctrl + Alt + Left/Right Key. Now I read ...
0
votes
0answers
46 views

Cant install php redis extension on Mac XAMPP

After typing sudo ./pecl install redis In terminal I am getting this error: ERROR: '/private/tmp/pear/install/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=no --enable-...
0
votes
1answer
30 views

Subscribed calendars not shown on my device, but they can be opened manually [iOS 14.4.2]

I am trying to write a PHP service to make calendars from some data. Anyway, the example it returns (it is static during the test) shows up normally when trying to get it by http://my_domain.com/ics....
0
votes
0answers
13 views

Launchct GD Extension with Freetype support not working on php

I'm Running a .plist php file previously, I've installed phpbrew and use 7.3.11 php version. Then I've just installed GD extension with freetype support I can running my php files into Macos terminal ...
0
votes
1answer
65 views

osx port install of php74 crashes with Illegal instruction: 4

I have an issue with php74 compiled by macports that is crashing with illegal instruction 4 when i run phpunit for unit testing my project. uname -v Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 ...
1
vote
0answers
434 views

How to install latest php without brew or is it possbile?

I have some old mac machines that can not update to Big Sur. So when using brew to install php@7.4 brew will complain "no bottle available". I updated brew to latest 2.7.5, brew then ...
0
votes
2answers
177 views

How can I easily run multiple sites with PHP, Apache and mySQL for free on mac?

How can I easily run multiple sites with PHP, Apache and mySQL for free on mac with OSX? I use XAMPP on Windows and it works really well. When I want to add a new site on XAMPP in windows, I only ...
0
votes
0answers
65 views

Get mediawiki (enwikibooks) with restbase and mathoid to work on macOS (High Sierra)

I recently decided to save the english wikibooks for offline access, and I went with setting up mediawiki, importing a xml dump, and configuring it to work. I had done the first two, following ...
1
vote
1answer
28 views

Bluetooth app with XAMPP permission problem in Mac OS 11

I using a web GUI for controlling some Bluetooth devices. I use PHP shell_exec command to run our created Bluetooth terminal app. My fiction was work until Mac OS 11. My customers upgrade Mac OS 10.15 ...
0
votes
0answers
285 views

.htaccess not working after upgrading to php 8

Mac OS Catalina. I was using Apache with the default PHP shipped with the OS (7.3.11). I installed PHP 8 using Homebrew, replaced the PHP module in httpd.conf, and added the following code: <...
6
votes
3answers
7k views

PHP Version 7.3.22 to be removed in future macOS

I just attempted to load a new development page without having created the httpdconf entry, & got the PHPinfo page with the following in the header... PHP Version 7.3.22-(to be removed in future ...
1
vote
0answers
98 views

trying to install php fails because of python dependency?

I just wanted to install php on Mac brew install PHP ... ==> Installing php dependency: python@3.8 ==> Pouring python@3.8-3.8.6.catalina.bottle.tar.gz Error: The `brew link` step did not ...
0
votes
0answers
228 views

env: php: Bad CPU type in executable

I Worked before on my MacBook Pro on php applications and it was work smoothly , after I upgrade it to Catalina, when i use composer update it gives me an error , after reading about it I found that I ...
0
votes
0answers
11 views

Unexpected behavior with php in Catalina + Apache2 — classic “phpinfo.php” script produces a “Save” dialogue box, but no error msgs

I am using the default installations of Apache2 and php7 that came with Catalina on a Mac AIR. I am trying to run the classic phpinfo.php script: <?php phpinfo.php ?> My https.conf file ...
0
votes
0answers
495 views

SMTP ERROR: Failed to connect to server: Connection timed out (110) when using phpmailer

This works perfectly in my old server. 2020-07-18 16:37:45 SMTP ERROR: Failed to connect to server: Connection timed out (110) SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/...
0
votes
0answers
295 views

Why does phpinfo() still show 7.1 after upgrading to php 7.3 on macOS Mojave (10.14.6)?

I've attempted to upgrade my version of PHP to 7.3 by running: curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 and then adding the new install to my PATH via the following line in my ~/....
0
votes
1answer
444 views

exec("php -v”) vs phpinfo() — different php version

I have upgraded PHP version on my Mac to 7.3 with a command curl -s http://php-osx.liip.ch/install.sh | bash -s 7.3 and then export PATH=/usr/local/php5/bin:$PATH When I type php -v in terminal the ...
0
votes
0answers
68 views

Is there a working alternative for mysql on Sierra (10.12.6) that can be used with php?

Does mariadb function properly on Sierra? I can't get mysql to work and since Sierra isn't supported by mysql I'm giving up on trying to get it to function. does anyone have Sierra working as a ...
0
votes
0answers
71 views

launchd running php script fails under Catalina on exec diskutil

I have a php script that worked perfectly under Mojave from the terminal and as a launchd job. After changing to Catalina, the php script continues fine from the terminal, but the launchd job fails on ...
0
votes
2answers
3k views

mcrypt for PHP 7.4 on Catalina

First of all, I was born and raised using a PC so I'm kind of new to Mac. I was hoping if someone can help me out. I'm using Catalina and trying to get the PHP extension mcrypt installed. I've been ...
1
vote
1answer
109 views

Laravel new [project] not working despite PHP, Composer, everything working

I'm trying to install laravel, but keep getting the "The Zip PHP extension is not installed. Please install it and try again." warning. Here's the thing: I've installed php7.3, entering 'composer' ...
1
vote
1answer
625 views

Installed Apache 2.4 (httpd) using Home Brew, can I get it to use macOS' php7?

I'm running macOS 10.15 (Catalina) and have installed the latest Apache (2.4.43) using brew, basically following these steps. Seems to be working fine, but now I want to enable PHP 7 in Apache as ...
1
vote
1answer
172 views

Extensions are disabled in `php.ini` and they still show up on `phpinfo.php`… why?

So, I finally decide it to switch from windows to Mac after 20 years, and I love it! I have so many questions... I've installed apache, php, mysql, imagemagick using homebrew and I have a couple of ...
0
votes
0answers
54 views

How to change the version of PHP used in the web browser on the OS X Server?

I am running OS X 10.12.6 on a Mac mini as a server that includes a WordPress site in addition to several web apps that utilize PHP, but version 5.6 is the one installed. I have been doing ...
2
votes
1answer
1k views

PHP not running after upgrading to Catalina

I've followed all the tutorials, updated httpd.conf and other files. Apache works fine but PHP does not seem enabled. Pointing to php_info.php => <?php phpinfo() ?> I formerly ran High Sierra ...
1
vote
1answer
135 views

502 Proxy error when trying to use Homebrew php72 with Server.app websites

I'm having a puzzling issue with a website on macOS server (server.app 5.6, High Sierra 10.13). All works fine when the url length is below 70 characters. 70 and up and I'm getting a Proxy error. The ...
0
votes
0answers
350 views

Change PHP on MacOS Server, High Sierra

I am using MacOS Server 5.6.1 running on a Mac Mini with High Sierra (10.13.6. It works completely fine and I've been hosting few Wordpress websites on it without any major troubles for couple of ...
0
votes
1answer
3k views

Unable to edit config.inc.php in the phpmyadmin configuration

I'm trying to edit a file on my mac. The file is config.inc.php of XAMPP located in /opt/lampp/phpmyadmin. Permission of the folder and file: Phpmyadmin -> drwxr-xr-x 12 root wheel 4096 Config.inc....
5
votes
2answers
1k views

Developer not identified error when logging in Oracle Instantclient on Catalina

I have the Oracle Instantclient installed (PHP needs it for the oci extension to work), the install directory is /opt/instantclient_19_3 and every time I log in after a reboot I get the following ...
2
votes
0answers
154 views

Mac Terminal Slow after upgrading to PHP7.3

I had my Mid 2013 macbook air running Mojave (10.14.5) with PHP 7.1.23 updated to PHP 7.3 from https://php-osx.liip.ch/ using the command curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 . ...
0
votes
1answer
576 views

How do I fix macOS Mojave httpd syntax error in a localhost setup?

System details: OS Host: Mac OS Mojave PHP: 7.1.23 I am trying to set up my local server on a new Mac. I have been following the following instructions on https://discussions.apple.com/docs/DOC-...
2
votes
1answer
53 views

PHP won't include files properly since updating to Mojave

On our office Mac, we have a local Apache server running through the software AMPPS. Prior to updating to Mojave, everything was working correctly. Now, after updating, there is an issue with using ...
1
vote
1answer
3k views

Stuck in upgrading PHP version on localhost Mojave

I'm trying to get PHP7.2 working on localhost, but phpinfo() keeps saying 7.1.19 is in place while ~php -v tells me PHP7.2.18 is in place. I run ~php -v it says: PHP 7.2.18 (cli) (built: May 2 ...
1
vote
1answer
290 views

Tracing PHP process killed on Mac does not work

I'm running a simple PHP process that uses a tiny bit of memory and CPU. The max memory limit is 2G and the script is run from console. The memory used never exceeds 200 MB. CPU use fluctuates ...
0
votes
0answers
1k views

Mcrypt Extension for Mojave's PHP 7.1 not using brew

I'm using macOS Mojave (10.14.3) and it already has apache2 and php 7.1 which are setup. I want mcrypt installed but all the info on the internet including this uses brew. I didn't install php using ...
1
vote
1answer
153 views

launchd is not passing arguments to my PHP script

I'm having a weird problem. I use launchd to run a bunch of shell scripts that update content on my site. It was working fine when it was just calling scripts normally. But now I made the script a ...
1
vote
0answers
533 views

Installing and using CodeIgniter on macOS?

I followed this tutorial online and I'm currently running macOS High Sierra. I tried a simple rest API using PHP and now I'm trying to implement it using CodeIgniter3.x framework. The one I created ...
0
votes
3answers
382 views

Give local PHP Full Disk Access in Mojave

I have a PHP webpage running on the local apache installation. The page uses shell_exec to access the messages/chat.db via sqlite3. shell_exec("sudo -u ben sqlite3 ~/Library/messages/chat.db \"...
0
votes
1answer
957 views

PHP incredibly slow since upgrading macOS to 10.14 Mojave?

Since I upgraded my Mac to Mojave 10.14, I noticed PHP is incredibly slow. When I do this from the terminal: php -v It takes about 4-5 seconds before showing the version number, which is: PHP 7.1....
7
votes
3answers
21k views

PHP not working after upgrading to OS Mojave

When i try to open localhost it gives me 403 error message like this "You don't have permission to access / on this server." I have tried changing the permission but nothing happens. It worked fine ...
1
vote
0answers
172 views

How to set PHP alias for all users

This is probably easy, but I don't know how to set it for all users. So, when I run: which php it shows /usr/local/php5-7.2.0-20171215-181251/bin/php However I've just installed PHP using brew on ...
0
votes
1answer
129 views

Upgrade PHP, not install additional PHP

My new work has just given me a MacBook Pro running macOS Sierra 10.12.6 to use as a development machine. It has PHP 5.6 installed and when I ran curl -s http://php-osx.liip.ch/install.sh | bash -s 7....
1
vote
1answer
804 views

Issues installing Mcrypt PHP module

I am trying to install Mcrypt PHP module but encountering some issues: Version of PHP installed: 7.1.16 macOS version: macOS High Sierra 10.13.6 Is the following command that I am running correct? ...
0
votes
1answer
4k views

localhost/phpmyadmin - 404 error on macOS High Sierra

I'm setting up a PHP project on my machine's loalhost. This part is working fine, and it's loading the index.php correctly when visiting http://localhost. However, visiting http://localhost/phpmyadmin ...
0
votes
2answers
366 views

iTerm2: Notice about PHP7.1

Every time I open a new iTerm2 window is shown the following warning: Warning: Use php@7.1 instead of deprecated homebrew/php/php71 Anyone can help me out please? I've uninstalled PHP, and ...
1
vote
1answer
3k views

brew changes from php71 to php@7.1 on installation

I am trying to install php71 with the command brew install php71 but instead php@7.1 is installed. When trying to install redis with brew install php71-redis it's installing but not working with that ...
0
votes
1answer
69 views

Built-in Apache and Php is viable?

Does anybody has experience with using built-in Apache/PHP in a High Sierra? Does it have any drawbacks if compare to homebrew apache/php? I plan to use it with Laravel or GravCMS. Any thoughts?
0
votes
1answer
1k views

Solve /Users/myusername/Sites/foo ~/bar localhost/~myusername High Sierra Apache server connection Internal Server Error

Battle of VirtualHost /Users/myusername/Sites/foo ~/bar Internal Server Error goin on for days now tryin to attach localhost/~myusername to Apache/2.4.28 http server on macOS 10.13.3 High Sierra ...