MAMP PRO doesn't allow me to change PHP version over hosts - mamp

I don't know why but for some reason my MAMP PRO doesn't allow me to change PHP version over host. I'm using MAMP PRO 4. If you take a look you will notice the option for that is disabled,
I left here a screenshot,
MAMP PRO configuration
Any idea?,
Regards!

I just resolved. The error was running PHP as module mode, if you want to have multiples version for each vhost you must run as CGI

To run a different PHP version on each host, go Languages > PHP > Individual PHP version for every host (CGI mode).
Return to Settings > Hosts and under the host a dropdown should be available to choose your PHP version.

Possibility 1: your server is running (you cannot change php version when the serving is running)
Possibility 2: you only have 1 version of php installed on your computer

Related

How to add additional PHP versions to EasyPHP DevServer

I have EasyPHP DevServer 17 up and running on my Windows 10 machine. I currently have my EasyPHP environment installed within my C:\EasyPHP directory. I can see from the server settings that I have two options for selecting my PHP verions:
5.6.30 x86 and 7.1.3 x86
How can I add a third option to the list? for PHP 7.3 x86?
Do I have to re-install an entirely new instance of EasyPHP DevServer to make this happen?
Can I simply download a thread-safe PHP7.X package online and stick it somewhere in the eds-binaries directory and restart?
I have made several attempts, but all result in failure. What would be the best technical steps?
Thanks!

PHP Version upgrade without affecting other host in shared hosting

What are the other option to upgrade PHP Version to latest without affecting other Sub domain
I'm complete new to the server side configuration.I'm working on a project setup at testsubdomain.mydomain.com Which need to use latest versoin of PHP 7. I tried AddHandler AddHandler application/x-httpd-php72 .php .php5 .php4 .php3 it is not working. Our cpanel does not include PHP Version Manager.How to upgrade PHP Version without affecting other sub domains
Better to update your cpanel version to the latest one as well as update Easy Apache 3 to Easy Apache 4 which will then have the PHP multi manager facility with which you will have the PHP 7.x version installed and you can easily change the php version for a specific domain.
You can't. It is because your are using people services. Especially cPanel, it is control by user account. The PHP version is bind to the user account. This is how cPanel works. https://documentation.cpanel.net/display/EA4/PHP+Home#PHPHome-Vendor-providedPHPversions
If you want different version in one server, I suggest you have a dedicated server or VPS then installed with docker. Like that you have different PHP version environment.

Install YII2 on Centos 7

I read that it was impossible to install yii2 on a standard hosting platform (redhat, centos...) without deleting the AssetManager.
And install is lock with it. Access refused, permission denied.... Despite the rights 777 on the assets folder.
And in default way, hack code, disable control like (is_writable) to allow continued the install process to congratulation, but without css ....
But I can't modify all the code , to use it?
They're a lot of issue about assetmanager.
I tried yii1 few years ago, and it was wonderful framework... But everything is permitted under windows. Someone tried to install it under redhat, fedora, Centos.
There is a specific configuration ... Or yii2 not builted and designed for theses environments ?
Because i found tuto about laravel 5.1, Zend 2 since 2013... But nothing about Yii2, and only one... about Yii1... on this hosting OS.
Yii2 is ready for professionnel standard hosting environnement or is just for hobbist with Wamp under Windows ? (Online tuto is in majority on this OS, with Wamp...).
And maybe for that, it's work fine... like i test under windows
Thank you for the links. I had read
Finally I found the answer, which is never explained in the tutorial above (because often disabled and the module is not present in Ubuntu or Debian)
It's SELinux security. To install Yii2 there are the following commands:
semanage fcontext -a -t httpd_sys_rw_content_t 'each folder writable'
setsebool -P httpd_unified 1
Without this open rignt, you can't install Yii2
All what Yii 2.0 requires is a Web server supporting PHP 5.4 or above.
( currently not PHP 7 due to reserved word conflict that will be solved in future releases )
And yes 5 stables versions ready for production has been released, currently Yii 2.0.5
Here is a quick example about how to install Yii2 with CentOS6 which has nothing different from what is already described in the official docs.
If you know any CentOS related issue please post them and we will discuss answers, because sincerely i just did few searches and didn't found any besides few wrong apache or nginx configurations or missing packages like this CentoOS7 case. Otherwise if you need a pre-configured & working VM with Yii2 and CentOS 7, then you may check this vagrant repo.

Unable to install PhantomJS

I am working on a project which needs PhantomJS for scraping ajax content. It is working pretty well in my local pc which has Windows 8.1 OS and using apache local server. I got a shared server for running this project remotely. The shared server has CentOS 6.2. When I am running phantomjs it is asking for fontconfig and freetype libraries but it is not possible to install it on a shared server. Is there any way to do it? Is there any alternative to PhantomJS?
PhantomJs is a Headless Browser and you can find the list of Headles Browsers in the link:
Headless Browser and scraping - solutions

Running j on Chrome OS

I'm trying to run jconsole on Chrome OS. In both the chroot of Ubuntu that I have installed, and the normal Chrome OS shell, I receive the following error on both the 32- and 64-bit versions:
-bash: ./jconsole: cannot execute binary file
I'm not the best with UNIX systems, so I'm wondering if anyone can help me figure out why I can't run this on either Chrome OS or the ubuntu chroot.
Not that I can claim credit for this answer, but Eric Iverson recently suggested on the J forums that the best way to do this was to install a J server on a Unix server and then use a browser to access the server using the JHS frontend (works in any modern browser). It does require extra equipment and I expect that you had hoped that there was a version of J that would work in the Chrome OS, but when one of the developers of the language says run a browser in the Chrome OS and point it at a unix server running the J engine, I'd try that if you have not already.
Reference in J general forum: http://jsoftware.com/pipermail/general/2014-June/036169.html
Short version
If you already installed successfully hopefully it's just a syntax error:
jconsole instead of ./jconsole
Long version
IMPORTANT: You have to be in the chroot to run any regular Linux programs. The Chrome OS shell (crosh) doesn't allow installing anything as far as I know.
I'm on Chrome OS, using a chroot via crouton and playing with j801, including jconsole.
Since I have a 1st-gen Samsung ARM Chromebook, I downloaded the armhf version. If you're using an Intel-based device, pick something else, maybe linux32
use dpkg -i j801_armhf.deb to install to ~/j801
(optional but recommended) make a symlink /usr/bin/jc -> /path/to/j801/bin/jconsole to easily start jconsole from any directory.
See the installation instructions for more detail.