System V exception on local WordPress install - php

I'm getting this error message showing up in my WP admin for my local install:
Background Queue: System V exception - sem_get not available on this installation of PHP
I'm not an advanced PHP coder so I'm not sure how to resolve this issue.
Environment:
Max OS 10.8.5
MAMP 2.1.3
PHP 5.4.10
WordPress 3.6.1
Thanks for your help!

Your workflow is:
Look up sem_get.
Click on the main extension on the left (Semaphore).
Read up on it's requirements (none in this case), and installation instructions
Depending on how you installed the package, there may be pre-compiled options available for your OS which would not require you to build PHP by hand.

Related

Wampserver gibin not a valid Win32 application with php 5.4

I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.
I ran the "Check State of Services" tool and it said this
State of services:
The service 'wampapache64' is NOT started EXIT error code:1066 Help
message for error code 1066 is: The service has returned a
service-specific error code.
The service 'wampmysqld64' is started
The service 'wampmariadb64' is started
The service 'dnscache' is started
WampServer (Apache, PHP and MySQL) will not function properly if any
service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
not started.
And the "Check http.conf" tool said
httpd.exe: Syntax error on line 195 of
C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
a valid Win32 application.
And line 195 of that file is
LoadModule php5_module
"${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"
Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.
I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.
If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.
I suggest you remove the manually installed version of PHP and use the provided downloads.
They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo
It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.
You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.
But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.
EDIT: In answer to your comment
If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.
The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45
Then using the wampmanager menu, switch to PHP5.4.45.
The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.
It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer

MAMP with php extension intl on osx

I need to setup a project base on CakePhp FW, so I need to enable intl extension.
I followed this tutorial , but I always get make: *** [php_intl.lo] Error 1 even though I created symbolic link between MAMP and the directory containing XCode php development headers by using this command (after excute I got file exist result)
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include /Applications/MAMP/bin/php/php7.1.6
I am not familiar with MAC OS, so please help
System Info
OSX: High Sierra 10.13.4
MAMP Pro 4
PHP 7.1.6
If you need more info, please let me know

OpenEMR Installation error Step 3

I'm trying to install OpenEMR in a windows 10 VM for a college project. I have downloaded the latest XAMPP package for MySQL and PHP. I keep getting this error when trying to install any help greatly appreciated
Two options to consider here:
Install the XAMPP/OpenEMR package instead (has XAMPP/PHP is pre-configured for OpenEMR):
https://www.open-emr.org/wiki/index.php/OpenEMR_5.0.0_XAMPP_Package_Installation
If instead still wish to try to get native XAMPP to work with OpenEMR (is not easy), ensure you have the proper PHP settings:
https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F

not able to compile it further to php.exe in windows 10 + vs2015 + x64

I am creating a custom build in windows for php 7.0.4. All good when following the process in https://wiki.php.net/internals/windows/stepbystepbuild until nmake snap. When I do nmake after the building of config it was giving me some errors and exiting with error 1077. So as per the VS Documentation https://msdn.microsoft.com/en-us/library/dt309377.aspx I used /I to ignore errors and build further.
The issue is -> I am getting a x86 build instead of x64 build. Second, rather than a clear build I am getting a manifest and development source. I am not able to compile it further to .exe. The command I an using to build is simple and is configure --disable-all --enable-cli --enable-cgi --with-pgo --enable-snapshot-build . It is a simple build for just php.exe, php-cgi.exe with pgo enabled.
What am I doing wrong? Any help is welcome.
UPDATE
I found out that --with-pgo or adding any other extensions to the configure line is the culprit of the error 1077. Could this be due to lack of dependencies in the deps folder? But I still cannot explain why a X86 dist is getting into X64 folder. I at times get an error saying the inbuilt build configuration does not match the X64 folder specification. Not sure whats happening not able to replicate issues other than 1077 by enabling the extra extensions.
You may want to have a look at this https://github.com/johmue/win-php-sdk-builder github project.
The issues were of fatal error 1077 resolved by removing --with-pgo from the configure script. The build process for it (optimizing in PHP7) has different steps than what is there in the docs for normal compiling
The issue of X86 getting built instead of X64 was due to environment architecture of the cl.exe in vc developer command prompt. It was set to x86. I changed it by providing the command vcvarsall X64 and the configure command, nmake command worked creating the build for X64.
Special note of Thanks to the Windows PHP team, especially Pierre for identifying it.

Windows 10 can't use AWS SDK for PHP v3 with Composer

I'm a student and pretty new to web development so forgive me if I'm missing something obvious. I recently attended a hackathon and was on a team with experienced developers who were building an app for deployment on AWS using the the Silex framework. Everyone else was using a Mac, while I have a PC running Windows 10. When they integrated AWS PHP SDK v3 from packagist I was unable to run the composer update function from the command line - I kept getting the following message:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- aws/aws-sdk-php 3.3.5 requires php >=5.5 -> your PHP version (5.4.24) or "
config.platform.php" value does not satisfy that requirement.
Because I was unable to run the composer update function, I wasn't able to update my app code and I couldn't continue to work on the project. This was frustrating, but I'm also just very confused about how to update PHP on my computer... I downloaded the zip file for PHP 5.6.13-nts and followed all the instructions I could find online for placing it in a folder structure, I also updated IIS so I can run phpinfo() on localhost and see that I have version 5.6.13 - yet when I try to run the composer update it still says I have PHP 5.4.24.
If anyone has any advice on this issue I'd appreciate it. Here's the version of the AWS SDK that's referenced above:
https://packagist.org/packages/aws/aws-sdk-php-silex
Welcome to StackOverflow, Blake!
It seems that you have multiple PHP versions installed and the CLI command php composer.phar ... uses php.exe from the old version. My guess is that the old version is still on the env path.
I suggest to check your environment path to find out, if the path to the old version of PHP is still added there. If so, simply replace it by the path to the new PHP version. And then execute a simple php -v on the CLI to see, if the new version is used. After that Composer should run fine.
You reach the dialog to change the environment variables by pressing WinBreak, then select "Advanced system settings", then "Environment Variables", then "Path".
(Sidenote and shameless plug: there are pre-configured web development stacks for Windows out there: WPN-XM or XAMPP, just to name a few. They are made to save developers some time, instead of doing software installation and configuration. Some of them ship Composer and other tools relevant for development with PHP right out of the box.)

Categories