Skip to main content

Questions tagged [php]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

Running Cron with PHP on macOS 12 Throws Error - Could not open input file

I have this in my crontab: * * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt In /...
forgodsakehold's user avatar
1 vote
1 answer
143 views

Apache + PHP - Internal Server Error + (13)Permission denied

Trying to get php working on my localhost. PHP has been code signed correctly and is running: AH06662: Allowing module loading process to continue for module at /opt/homebrew/opt/[email protected]/lib/httpd/...
Mou某's user avatar
  • 891
1 vote
1 answer
204 views

Trying to execute shell commands opening multiple terminals

I have a shell command which I use to setup multiple servers (metro, laravel, ngrok). Each of these processes needs to be executed in its own Terminal window. The issue right now is that all I'm able ...
gabogabans's user avatar
1 vote
1 answer
5k views

zsh: bad CPU type in executable (on Intel, not M1)

I have the reverse case of the other question with the same name (zsh: bad CPU type in executable). I used the mac moving assistant to go from an M1 to an Intel, and the PHP that is used in my ...
user59971's user avatar
  • 265
0 votes
0 answers
80 views

Unable to remove PHP old path from system

Ever since I updated my MacBook PRO from 8.0 8.2, I can't seem to symlink php or add php to path anymore. I have to give the full path. $ php -v -bash: /Applications/MAMP/bin/php/php8.0.8/bin/php: No ...
anjanesh's user avatar
  • 457
2 votes
1 answer
2k views

How do I change from PHP 7 to 8 when using Homebrew?

I am running macOS 12. Homebrew reports that PHP version 8.1.12 is installed. If I type php -v into terminal. It reports that PHP 7.4.33 is running. How do I get version 8.1.12 to be the version that ...
Lawrence Cooke's user avatar
0 votes
1 answer
554 views

MacPorts set PHP82 as php

I am having a problem with correctly installing PHP using MacPorts. I installed PHP8.2 using sudo port install php. But I can't run PHP with php. I have to specify the exact version php82. I didn't ...
kresdjan's user avatar
1 vote
0 answers
1k 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 \ --...
lustre's user avatar
  • 81
-1 votes
2 answers
491 views

After upgrade to Monterey, a user-created launchd job does not run

I have a launchd job that is supposed to run a php script at 6am every day. The script runs a number of backup-related tasks. After upgrading to Monterey, the task no longer starts at its scheduled ...
Jeffrey Simon's user avatar
0 votes
1 answer
2k views

How to use input variable in .zshrc alias?

I'm trying to create this alias: alias mrc="php artisan make:controller $(user_input) --resource" so that I can just type mrc ControllerName in the terminal to produce: php artisan make:...
Artur Müller Romanov's user avatar
0 votes
0 answers
16 views

How can I update php on my Mac? [duplicate]

I have a MacBook Pro with macOS 10.7.5 and I want to update the integrated php from php5 to php8 or 7. How can I?
Paolo's user avatar
  • 107
0 votes
1 answer
342 views

Default PHP included with Mac - enable imagecreatefromjpg

I've uncommented gd in php.ini - but I still can't get imagecreatefromjpg() to work... How does one enable php with jpg support? (the default php that comes with mac - not xampp or homebrew. trying to ...
ina's user avatar
  • 869
0 votes
0 answers
598 views

Can PHPMailer send emails without configuring MacOS mail client on Monterey?

On a brand new Macbook running Monterey (M1), as PHP was removed by Apple on OS 12, I have removed all "AMP" preinstalled by Apple and installed HomeBrew "AMP" (with PHP 7.4), ...
Riccardo's user avatar
  • 283
1 vote
0 answers
1k views

Apache stops working after installing Homebrew PHP (which is missing on Monterey)

Hello I have followed these instructions to configure builtin Apache web server on Macos 12.1, although I have realised that PHP was removed by Apple on Monterey. As such, I have installed homebrew ...
Riccardo's user avatar
  • 283
1 vote
0 answers
163 views

after updating php apache no longer loads at localhost on osx 10.12.6

I was trying to setup myphpadmin and it said I need to update php so I update php to 7.1 from terminal. I go to localhost and it says local server refused to connect. I restart apache then i typed ...
robert0z's user avatar
1 vote
1 answer
113 views

ImageMagick Convert single frame = file not found

I am trying to extract the fist frame of a video convert ./video.mp4[0] ./sample.jpg I get file not found if I put [0] it works without [0] but this is not what I want All examples on the net suggest ...
AppleBee's user avatar
2 votes
1 answer
2k views

Codesigning PHP 8 in Monterey

Following this guide: How to sign homebrew PHP module in macOS I'm stuck on step five: Locate location or path of PHP module from Apache's PHP LoadModule directive. $ grep -nir "^loadmodule.*php&...
Mou某's user avatar
  • 891
1 vote
1 answer
723 views

How can I solve this cakephp/cakephp 4.2.8 requires ext-intl PHP extension error on macOS?

With a MacBook Pro, I use MAMP and I believe I already have intl PHP extension When i am trying to update my cakephp project via composer i am getting this error - Root composer.json requires ...
Yogesh Saroya's user avatar
0 votes
0 answers
76 views

Upgrade of php not working on Late 2011 High Sierra

I have a late 2011 Macbook pro and want to setup my development environment.However, am struggling with php version. It is currently set to the default 7.1.16. I was hoping to do it with brew, but I ...
Sidney Sousa's user avatar
2 votes
1 answer
3k 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 ...
Herb's user avatar
  • 31
1 vote
1 answer
821 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 [email protected] ... and homebrew buzzes and whirs and ...
Mayor of the Plattenbaus's user avatar
1 vote
1 answer
212 views

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

I have recently 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+←/→. Now I read that this is on ...
Mathias Bader's user avatar
0 votes
1 answer
244 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....
Genken's user avatar
  • 1
0 votes
0 answers
97 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 ...
JuanFernandoz's user avatar
0 votes
1 answer
312 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 ...
pgee70's user avatar
  • 195
8 votes
2 answers
12k 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 [email protected] brew will complain "no bottle available". I updated brew to latest 2.7.5, brew then ...
Qiulang 邱朗's user avatar
0 votes
2 answers
905 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 ...
Xtreme's user avatar
  • 101
1 vote
1 answer
85 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 ...
bmericc's user avatar
  • 11
0 votes
0 answers
904 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: <...
mosquid's user avatar
7 votes
3 answers
17k 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 ...
Pedro's user avatar
  • 650
1 vote
0 answers
198 views

trying to install php fails because of python dependency?

I just wanted to install php on Mac brew install PHP ... ==> Installing php dependency: [email protected] ==> Pouring [email protected] Error: The `brew link` step did not ...
Glasnhost's user avatar
  • 765
0 votes
0 answers
848 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 ...
Naeem Ali's user avatar
  • 101
0 votes
0 answers
741 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 ~/....
Yabsley's user avatar
  • 101
0 votes
1 answer
2k 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 ...
Matt Rek's user avatar
  • 293
0 votes
0 answers
305 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 ...
Rachel Eberle's user avatar
0 votes
0 answers
84 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 ...
Jeffrey Simon's user avatar
0 votes
4 answers
6k 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 ...
cbloss793's user avatar
  • 103
1 vote
1 answer
657 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' ...
Adib0y360's user avatar
1 vote
1 answer
2k 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 ...
RocketNuts's user avatar
  • 1,509
1 vote
1 answer
905 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 ...
Marco's user avatar
  • 111
0 votes
0 answers
706 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 ...
user3893133's user avatar
2 votes
1 answer
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 ...
Toby Tucker's user avatar
1 vote
1 answer
285 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 ...
Matt Rek's user avatar
  • 293
0 votes
0 answers
714 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 ...
Matt Rek's user avatar
  • 293
0 votes
1 answer
8k 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....
Laurenz's user avatar
5 votes
2 answers
3k 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 ...
mazedlx's user avatar
  • 160
2 votes
0 answers
201 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 . ...
Anoop D's user avatar
  • 141
0 votes
1 answer
1k 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-...
Dominic Norton's user avatar
2 votes
1 answer
73 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 ...
Gherkin's user avatar
  • 123
1 vote
1 answer
4k 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 ...
user2037412's user avatar