php-osx | PHP 5 package for OS X | File Upload library
kandi X-RAY | php-osx Summary
kandi X-RAY | php-osx Summary
DEPRECATED: See https://php-osx.liip.ch/ for details. The uploader and website for the PHP 5 package for OS X 10.6 built with https://github.com/liip/build-entropy-php
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse YAML string .
- Updates the configuration XML .
- Create a MPU object .
- Prepare the curl request .
- Parse a mapping .
- Send the batch request .
- Send an email
- Autoload classes
- Create a metric alarm
- Describe spot price history
php-osx Key Features
php-osx Examples and Code Snippets
Community Discussions
Trending Discussions on php-osx
QUESTION
I update my macOS from Catalina to Big Sur. After updating my apache is not working. It shows an error
...ANSWER
Answered 2020-Dec-15 at 19:14I have faced same problem. I have fixed my problem following three steps
- First remove file
+php-osx.conf
from/private/etc/apache2/other/
directory - In your
httpd.conf
file just remove "#" before "LoadModule php7_module libexec/apache2/libphp7.so". Using terminal commandsudo nano /etc/apache2/httpd.conf
- After completing above two steps you must restart your apache using command
sudo apachectl restart
QUESTION
I tried to install php 7.4 on my mac osx without homebrew, because I am not able to update homebrew anymore.
...ANSWER
Answered 2020-Dec-09 at 16:27Eyeballing the source for that install script, it looks like when you pass in 7.4
, you're telling the script to get PHP 7.4. Unfortunately, it looks like the project has been deprecated as of November 30th, so I suspect they don't have a version 7.4. If you change that 7.4
to 7.3
, it might work.
If there's something specific you need in PHP 7.4 or later, and this script was the only thing that worked, you might be out of luck unless you can use a container or VM locally. Something like this might get you unblocked.
QUESTION
I want to update php version, currently I have 5.5.38 and I want 7.1
What I tried so far is using this command:
...ANSWER
Answered 2019-Oct-07 at 05:13I would probably recommend installing homebrew to manage such installations for you. With that installed you can just run the following command to install php7.1
QUESTION
I'd like to upgrade my PHP version on macOS Catalina from 7.2.9 to 7.3.
When I run:
...ANSWER
Answered 2019-Nov-19 at 15:27If you look at the code here:
https://github.com/liip/php-osx/blob/master/install.sh#L68
It contains a statement which is producing that error message.
The problem is that the code only checks for macOS versions between 10.6 and 10.13 (see https://github.com/liip/php-osx/blob/master/install.sh#L50). So anything higher than 10.13 - or lower than 10.6 for that matter - will result in you seeing that error.
You could comment-out the code block I've linked, and re-run install.sh
as that would trick the script into not bothering with this check. Please note that this will only disable the check from occuring, so it's not a great idea to rely on doing this, but it might be enough to get the install to complete.
I can't help further, but that's the reason why you're seeing that. Maybe drop a message to the maintainer through GitHub.
QUESTION
been struggling to figure out why my install of php 7.3 is not being recognized.
I ran the following command in the terminal:
...ANSWER
Answered 2019-Sep-24 at 20:14Try to replace "php5" with "php7" or "php" from your PATH
Remember to open new bash session (or source your profile source .bash_profile
) after you changed PATH value from your .bash_profile
QUESTION
My team is upgrading to PHP 7.3. Currently I am on 7.1.23. I'm having a heck of a time getting PHP to use the new version. When I log out PHP info
, it's 7.1.23. I've installed the new version with this line and it says it's successful ( tried it a few times).
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
When I do which php
in the command line, it gives me /usr/bin/php
. Is there something I need to do/try? My httpd.conf
file seems correct as well with this line
LoadModule php7_module libexec/apache2/libphp7.so
Just been trying to figure this out all day and I can't seem to :). Thanks. Also I am running Mac OS High Sierra
...ANSWER
Answered 2019-Jul-03 at 20:53When you do which php
you get
QUESTION
I installed MoJave from Sierra and can't get apache to work,
I expect it to serve /Library/WebServer/Documents/index.html
...ANSWER
Answered 2019-Jan-03 at 03:56To check your Apache config, you can also run:
QUESTION
I used to be able to run this command before upgrading to Mac OS X Mojave.
$ sudo apachectl -k restart
Now, I kept getting
httpd: Syntax error on line 537 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/+php-osx.conf: Cannot load /usr/local/php5/libphp7.so into server: dlopen(/usr/local/php5/libphp7.so, 10): no suitable image found. Did find:\n\t/usr/local/php5/libphp7.so: code signature in (/usr/local/php5/libphp7.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.\n\t/usr/local/php5/libphp7.so: stat() failed with errno=22
This is what I have in my
httpd.conf ...ANSWER
Answered 2018-Dec-19 at 21:34You should go to the folder /private/etc/apache2/other/
and remove the file +php-osx.conf
(it's weird there's a plus sign in the file name), which contain the error (a mix of php5 and php7 on the same line!)
Then edit your file http.conf
and replace the following line:
QUESTION
I'm currently struggling with an issue with ODBC. I need to use odbc to connect with a FileMaker database.
I've set up a VM with MacOS High Sierra + Apache + MySQL + Php7 and I've already installed ODBC Manager (from ActualTech) + FileMaker ODBC driver.
My web-app is a copy from a previous project hosted on a MacOS 10.8. On MacOS 10.8 everything goes fine. But on new High Sierra I get this error
Call to undefined function odbc_connect()
I'm using CodeIgniter as PhP framework, but I think error may be related to PhP version since it looks like PhP does not recognize this method as its own.
I've read on PhP official web site that odbc_connect is fully compatible with PHP v7.
Even though, I cannot figure out why I get this error.
Is it related to new MacOS versions (it seems it has been removed ODBC Support on earlier OSX, as you can read here)?
Plus, I found out some articles that suggest to re-build PHP from source, adding this ODBC support manually. Should I go this way? I'm not fully sure I can go with this solution.
UPDATE (I'm rebuilding PHP from source)
I e-mailed to acutaltech support and they suggested me to follow instructions here http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/IODBCPHPHOWTOMacOSX. So I'm trying to compile and build PHP on my own, but my Makefile does not contain anything about ODBC.
This is my Makefile
...ANSWER
Answered 2018-Apr-09 at 11:09Solved
I could not build my own PHP version with ODBC. To everyone having this issue I solved by using PHP-OSX, that's basically a PHP version customized with all extensions needed, already built. You can download the binary file here https://php-osx.liip.ch.
Hope this helps!
QUESTION
On my 10.9 Mac i installed Symfony via
"sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony"
and
...ANSWER
Answered 2017-Jan-12 at 13:32CLI says 5.4.45 and the running apache / phpinfo in the browser says 5.6.27
Your CLI PHP version is outdated, while the one used by Apache is up to date.
To use the same version for them, check first where the CLI version is located by taping
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-osx
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page