简体   繁体   English

升级到PHP 5.5 MAMP PRO

[英]Upgrading to PHP 5.5 MAMP PRO

I'm not a programming expert but I am trying to get more into Dynamic Website design using PHP. 我不是编程专家,但是我想尝试使用PHP来进行更多动态网站设计。 There's a hashing library on the new PHP version 5.5 that I want to use on a project but right now I'm running PHP 5.4. 我想在项目中使用新PHP版本5.5上的哈希库,但是现在我正在运行PHP 5.4。 I use MAMP PRO V 2.1.4 and after looking online and on their site I couldn't find anything with step-by-step instructions on how to update the current PHP version I'm using. 我使用MAMP PRO V 2.1.4,在网上及其站点上浏览后,找不到关于如何更新当前使用的PHP版本的逐步说明的任何内容。 I was able to download a v5.5 folder from their site that they say is compatible with the version of MAMP I own. 我能够从他们的网站下载一个v5.5文件夹,他们说这些文件夹与我拥有的MAMP版本兼容。 Here's what I've tried so far... 到目前为止,这是我尝试过的...

Ok so I looked at the php info page. 好的,所以我看了PHP信息页面。

在此处输入图片说明

It looks like I need to add the new php version folder to my MAMP/bin/php folder and I did that. 看来我需要将新的php版本文件夹添加到我的MAMP / bin / php文件夹中,并且做到了。 But it still doesn't show up as a selection on MAMP Pro. 但是它仍然没有在MAMP Pro上显示为选择项。

在此处输入图片说明

So I read somewhere that MAMP Pro V 2.x only gives you two options for PHP and that I should rename the other folders in the PHP file. 因此,我在某处读到MAMP Pro V 2.x仅为您提供了两个PHP选项,并且我应该重命名PHP文件中的其他文件夹。

在此处输入图片说明

I feel like I'm missing a important step. 我觉得我缺少重要的一步。 Any advice would be great! 任何建议都很好! If you have any questions please ask. 如果您有任何问题,请询问。 Hopefully I can figure this out and this post will help future non-program savvy web designers too. 希望我能弄清楚这一点,这篇文章也将对以后的非程序精明的Web设计人员有所帮助。

Probably the esasiest way is to copy your PHP files somewhere else and then use Appdelete or similar, and delete the MAMP folder in your applications folder and re-install. 可能最简单的方法是将您的PHP文件复制到其他位置,然后使用Appdelete或类似文件,然后删除应用程序文件夹中的MAMP文件夹并重新安装。 I had to do this after a Yosemite install broke the older version of MAMP. 在优胜美地的安装打破了旧版本的MAMP之后,我不得不这样做。 Why keep the older versions? 为什么要保留旧版本?

I agree reinstall is very safe. 我同意重新安装非常安全。 u dont need to take a copy of old MAMP. 您不需要复制旧的MAMP。 the new install does it on its own. 新安装会自行完成。 just feel free to downlod new MAMP and click install. 请随意下载新的MAMP,然后单击“安装”。 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. 编辑httpd.conf并打开一行以包含vhosts.conf并从旧的MAMP文件夹复制旧的vhosts.conf。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM