Configuring php.ini file to install Composer - mamp

I am trying to install gitlist from github. I have some trouble installing it, so the doc says that I should configure php.ini this way
detect_unicode = Off
phar.readonly = Off
phar.require_hash = Off
I did it but when installing Composer, I am still told to set detect_unicode to Off. I restarted MAMP, and phpinfo() tells me phar.readonly and phar.require_hash are indeed set to Off, but I have no infos telling me detect_unicode is set to Off. I only have zend.detect_unicode set to On.
How can I set my configuration to have detect_unicode indeed set to Off ?

I had the same problem than you. I found this article : http://simon-davies.name/mamp/using-composer-with-mamps-version-of-php and it solve it.
Hope it will help.

Related

I am unable to connect to the extension marketplace of Visual Studio Code

I found one solution, download latest version from VSCode website. I tried same but still facing this issue.
i want to add React Native extension.
I am unable to access this URL because of the Proxy.
How to resolve this issue?
I'm using VSCodium On Archlinux and had the same problem. I installed vscodium-bin-marketplace to make it work. There's also a package named code-marketplace for Code OSS.
I found a solution that works for me.
Stop VSCode.
Open ~/.vscode/argv.json if you're using VSCode
Open ~/.vscode-oss/argv.json if you're using VSCodium
Then add
// Browser Code Loading.
"enable-browser-code-loading": false
Don't forget to add a comma to the previous entry, since this is a JSON file (but you knew that already, right?).
This just worked for me:
Add the proxy server to VS Code settings.json (open it in VSCode command line)
Add keys "http.proxy" and "https.proxy" with values of your Proxy Server URL, for example:
settings.json:
{
...
"http.proxy": "http://my-http-proxy-server.com:123",
"https.proxy": "https://my-https-proxy-server.com:124"
}
Bypass the url from proxy.
Open proxy settings (run command - inetcpl.cpl)
Go to connection tab, now in your proxy add that url
If it works then ok . Else you have to contact network team or need to do some firewall settings
Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
Delete C:\Users\{username-PC}\AppData\Roaming\Code
Delete C:\Users\{username-PC}\.vscode
Restart
I went to Toggle Developer Tools. As described in here. Saw that ERR_TUNNEL_CONNECTION_FAILED error is there.
I had a proxy server added to the network settings. (Which was working fine for other purposes) I had to remove the proxy server in order to get this working.
Deleting my .vscode (hidden folder) worked for me.
C:\Users\USERNAME.vscode
Other alternative could be uninstalling vscode and deleting the whole folder at
C:\Users\USERNAME\AppData\Local\Programs\Microsoft VS Code
1.Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
2.Delete C:\Users\{username-PC}\AppData\Roaming\Code
3.Delete C:\Users\{username-PC}\.vscode
4.Restart
5.Reset your windows firewall
6.Restart and install Vscode
This worked for me: in extensions search box, wrote #color (I'm guessing searching for anything will do) and extensions tab populated with results. Never saw the error again.
I recommend this solution for linux operating systems:
in file ~/.vscode-oss/argv.json
add this line: "enable-browser-code-loading": false
I am using kaspersky antivirus, disable it for a while, and my problem solved.
If no option works above. You can install the extension through the Vsix file.You can download it from this site.
Vsix File Free Download
If you are using linux you can install code-marketplace using your package manager which in my case it's pamac.
Just like this:
pamac build code-marketplace
This fixed my problem loading extensions in vscode.
goto your pc settings and look for proxy
turn it all off
that worked for me
I just uninstalled vscode downloaded it again and it works fine now for me you can try out this once
When you look at the ip-traffic what it tries to do, it starts with DNS-query with A-record (good) and also with AAAA-record (not so good if you don't have proper v6 routing in place).
Application should have built-in code to try AAAA-record connections and if they fail, it should automatically fall back to v4-connections and routing. Now it fails to do so and just gives an error that it failed to connect marketplace. Well, you just didn't try hard enough, did you?
For Linux systems, you disable your host's v6 protocol with:
# sysctl -w net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6 = 1
and you might want to write them into /etc/sysctl.conf file as well.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
I did it using the world's best editor Vim! :)
You need to restart the application before marketplace starts working.

MAMP setup will now exit and the existing map installation will not be removed

I deleted MAMP cause' I needed to free the space on my hard-drive and now I want to install it again, but I can't. I keep getting the mistake 'MAMP setup will now exit and the existing map installation will not be removed'. I thought that I still have some MAMP-files on my PC, but I don't. Can't figure out what's wrong and need some help!
I too had the same problem. I tried this method and it was solved.
Open the control panel>programs>programs and features>there comes the list of programs,find mamp and right click on it and click on 'uninstall'.
After getting uninstalled you can try to install it again. Then it works đź‘Ť.

STS does not start anymore

All of sudden STS does not start anymore. I have deleted and downloading the STS again but it does not start.
spring-tool-suite-3.8.3.RELEASE-e4.6.2-win32-x86_64
Any suggestions?
i found that the problem was setting the right variable(path) in the Environment Variables. Now i have set Path=C:\Program Files\Java\jdk1.8.0_121\bin and it works again.
This youtube video gave me the clue. Set the PATH: https://www.youtube.com/watch?v=Wh7nMRJMjBY
Thx for your response.
Regards,
Arend van der Kolk
My problem I found out resides in sts.ini file, open it and make sure everything is right. In my particular case, I messed up the path to lombok.

WHM Upgrade Blocked by EXIMUP

I am in the middle of rebuilding my VPS and I am getting an error in WHM.
CENTOS 6.5 x86_64 virtuozzo – vps-1......... WHM 11.34.2 (build 8)
Reasons for blocked updates
Please correct these issues and rerun updates.
fatal: Upgrade is blocked because EXIMUP is set to 'never' in your configuration. To proceed, you can touch file '/var/cpanel/exim.unmanaged' and run the upgrade one more time. Please refer to our documentation at http://go.cpanel.net/1136UpgradeExim for more information.
The URL for help doesn't exist.
I do not see this file in when I check for it.
I found the Exim Configuration Manager but do not see anything that matches what the error states.
I have a feeling this is fairly easy fix but I am far from an expert on VPS managing. I'm learning the hard way to put it nicely...
Does anyone know how I can clear this out so I can upgrade WHM?
I see in their documentation:
To upgrade from cPanel & WHM version 11.34 and earlier:
Touch /var/cpanel/exim.unmanaged
Run the upgrade again.
What does "Touch"mean? I tried toggling the exim option in preferences but it made no difference.
After a night of fighting this I find the answer right after I post. Here is how I solved it.
Touch means to create or modify a file without actually writing to it. So in this case since the file did not exist. I created a new file in /var/cpanel/ called 'exim.unmanaged'
After placing that file in the directory I ran the updates again and it is now upgrading WHM and cPanel.
Pros know this I am sure but hopefully this will be helpful for newbi VPS admins like myself.

How do you upgrade MAMP's PHP to PHP 5.3 ?

I haven't been able to find any resources on how to do this.. Anyone have any ideas or resources?!
I've tried changing the ./configure options and I'm solving things one at a time but it seems like this method could take forever.. My current error is..
checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.
I'm running Snow Leopard.
Any help would be great,
Matt Mueller
I know this is an old question- but still relevant.
I'm updating my MAMP and am keeping up to date on PHP's stable releases by using a guide I found at davidgolding.net
The Guide goes as follows:
First, run the
phpinfo()
function in a PHP script on your localhost or go to PHPMyAdmin and hunt down the configuration page. You should see a large chunk of configuration markup at or near the top:
'./configure' '--with-mysql=/Applications/MAMP/Library'
'--with-apxs2=/Applications/MAMP/Library/bin/apxs'
'--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library'
'--with-png-dir=/Applications/MAMP/Library' '--with-zlib'
'--with-freetype-dir=/Applications/MAMP/Library'
'--prefix=/Applications/MAMP/bin/php5' '--exec-prefix=/Applications/MAMP/bin/php5'
'--sysconfdir=/Applications/MAMP/conf/php5' '--with-soap'
'--with-config-file-path=/Applications/MAMP/conf/php5'
'--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf'
'--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config'
'--with-sqlite' '--with-ttf' '--with-t1lib=/Applications/MAMP/Library'
'--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx'
'--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2006i'
'--enable-soap' '--with-kerberos' '--enable-calendar'
'--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase'
'--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library'
'--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library'
'--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg'
'--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl'
Copy and paste this whole chunk into your text editor and remove the single quotes (search and replace should do it). Look for the flag
--with-pdo-mysql=shared,/Applications/MAMP/Library
and replace it with:
--with-pdo-mysql=/Applications/MAMP/Library
If you don’t do this, you might end up with an error.
ld: symbol(s) not found
Finally, add the following flag to the end:
--without-iconv
After you have downloaded the latest PHP release of your choosing from PHP Sources Snapshots,
cd
to the downloaded directory in Terminal. Paste your reformatted configuration string (all of it, including the beginning ./configure command) and run it.
After the configuration phase is finished, run:
$ make
$ sudo make install
Relaunch MAMP, and you’re good to go.
The current version (1.9) of MAMP / MAMP PRO includes PHP 5.3 and is available on the MAMP download page.
This is bound to cause a lot of headaches. The simplest solution is to navigate over to the mamp website and grab the latest version of the application. Download it, hit the install button and you will find your php version has been updated to the latest version...
Hope this helps, I spent quite a bit of time fiddling about with upgrading PHP before I actually looked :S
I don't know if MAMP has changed its configuration in the last few years but none of the solutions here helped me. What I did, and what worked right away was:
Download the PHP version you want from MAMP
Unzip it and move the new PHP folder into the MAMP/bin/php folder where you will see other subfolders with names like php5.3.7
Restart MAMP
Go to the PHP panel under Server in MAMP and choose the new verion of PHP from the drop menu
Start MAMP.
reinstall whole MAMP is very safe. You dont even need to take a copy of old MAMP. the new install does it on its own. just feel free to download new MAMP and click install. only care u need to take is this
Edit httpd.conf and open up line to include vhosts.conf and copy old vhosts.conf from old MAMP folder.
Goto MAMP Download page
then choose
an update from the Heading
"Additional PHP versions for MAMP PRO 2.2"