Error installing PHP5.6 on OSX

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Aug 16, 2017 6:51 am

Wed Aug 16, 2017 6:59 am

Hi everyone,

I'm trying to install PHP 5.6 on my Mac OS Sierra using terminal.
When I try to install following your homepage instructions, terminal shows me an error:

Code: Select all

iMac-de-Xavi:~ xavi$ curl -s | bash -s 5.6
bash: line 1: !DOCTYPE: No such file or directory
bash: line 2: syntax error near unexpected token `newline'
bash: line 2: `    "">'
Has anyone see it before?

Thank you so much in advance
User avatar
php-forum GURU
php-forum GURU
Posts: 1222
Joined: Mon Feb 22, 2016 5:52 pm

Wed Aug 16, 2017 9:14 am

Looks to me that you're executing your file as a bash script, you need to store the file in the correct file location; check that you have installed the php command line interface.

Whatever you are following is way out of date, do you really need to use PHP 5.6? and must you use html 4?
Post Reply