首页 \ 问答 \ 在Cent OS中升级PHP(Upgrade PHP in Cent OS)

在Cent OS中升级PHP(Upgrade PHP in Cent OS)

出于某种原因,我必须将PHP版本从5.3.3升级到5.3.10才能让Joomla运行。 但我用谷歌搜索了几个小时。 所有消息来源都指出要添加新的存储库并输入一些命令来升级。 但最终我无法从这些存储库升级php,甚至不能升级到这个特定的版本5.3.10。

我的生产环境在5.3.10上运行。 所以我最好升级到5.3.10。 是因为版本太旧了,从现在开始无法安装?

我试图从php.net下载PHP并安装一个。 但我想httpd无法识别这样的PHP安装,所以即使我安装了较新版本的PHP,我的网站仍然崩溃。

我真的很感激任何建议。 谢谢。


For some reason, I have to upgrade PHP version from 5.3.3 to 5.3.10 in order to let Joomla to run. But I googled for hours. All sources pointed to adding new repositories and typing some commands to upgrade. But in the end I can't upgrade the php from these repositories, not even to this specific version 5.3.10.

My production environment is running on 5.3.10. So it is better for me to upgrade to 5.3.10 as well. Is it because the version is too old that it cannot be installed from now?

I tried to download PHP from php.net and installed one. But I guess the httpd cannot recognize such PHP installations so that even I installed a newer version of PHP, my website still crash.

I would really appreciate any advice. Thanks.


原文:https://stackoverflow.com/questions/35041730
更新时间:2022-12-05 14:12

最满意答案

不只是在记忆中。

从手册

imagedestroy()释放与图像图像相关的任何内存。

使用unlink()删除文件


No just in memory.

From the manual

imagedestroy() frees any memory associated with image image.

Use unlink() to delete a file

相关问答

更多
  • 因子是线性递归。 河内的塔是一个双递归:每个更深层次需要每次被调用2次递归。 因此,移动N个磁盘需要2 ^ N - 1个总移动。 算法读取如下内容: 如果这是最大的磁盘:将其移动到目标挂钩; 现在我们完成了。 否则:将下一张光盘向下移动到第三个挂钩; 把这一个移到目的地挂钩; 将下一个磁盘移动到目标挂钩; 这是“其他”部分,需要两次调用一个。 这能为你澄清一切吗? Factorial is linear recursion. Towers of Hanoi is a double recursion: ea ...
  • imagejpeg(...)应输出到$ tempfilename而不是$ filename,然后你将取消链接正确的文件。 imagejpeg(...) should be outputting to $tempfilename rather than $filename, then you'd be unlinking the right file.
  • 尝试这样的事情来覆盖JQM css。 .ui-icon, .ui-icon-searchfield::after { background: transparent; background-image: url(http://code.jquery.com/mobile/1.1.0/images/icons-18-white.png); }​​​​​ Try something like this to override the JQM css. .ui-icon, .ui-ico ...
  • 在搞乱org-capture-templates然后删除一堆没有按照我想要的方式出现的条目之后,我今天遇到了同样的问题。 我写下了这个脚本,它完成了工作(对我而言)。 #!/bin/sh ## Location where org-mode stores attachments datadir="$HOME/Dropbox/Documents/Org/data"; orgdir="$HOME/Dropbox/Documents/Org/" echo "The following files appear ...
  • 不,你不需要调用这个功能,但这是一个很好的做法,因为图像可能很大,如果你在一个拥挤的环境中,每千字节都很重要。 No, you don't need to call this function, but it's a good practice because images can be large and if you are in a crowded environment every kilobyte counts.
  • 您需要将它添加到div包装select菜单。 对此没有静态解决方案,因为jQM在div小部件增强中包含select 。 $("#selectID").closest("div").addClass("ui-nodisc-icon"); You need to add it to div wrapping select menu. There is no static solution for this, as jQM wraps select in a div upon widget enhancemen ...
  • 假设您使用ImageRequestBuilder构建ImageRequest对象,则需要在构建器上调用disableDiskCache() 。 例如: ImageRequest request = ImageRequestBuilder .newBuilderWithSource(uri) .disableDiskCache() .build(); Assuming you use ImageRequestBuilder to build ImageRequest objects, ...
  • 不只是在记忆中。 从手册 imagedestroy()释放与图像图像相关的任何内存。 使用unlink()删除文件 No just in memory. From the manual imagedestroy() frees any memory associated with image image. Use unlink() to delete a file
  • 我建议使用EhCache ,即使你正在构建的不是真正的缓存。 EhCache允许您配置缓存实例,使其溢出到磁盘存储,同时将最新项目保留在内存中。 它也可以配置为光盘持久性,即数据在关机时刷新到光盘,并在启动时读回内存。 最重要的是,它是基于键值的,因此它已经适合您的模型。 它支持并发访问,并且由于磁盘存储作为单独的线程进行管理,因此您不必担心磁盘访问并发性。 或者,您可以考虑使用适当的嵌入式数据库,例如Hypersonic (或许多其他类似风格的数据库),但这可能会更多。 I suggest using E ...
  • 模拟器是PC上的一个独立虚拟机 - adb是将文件推送到外部SD卡或其他目录的解决方案(这里是指南: http : //developer.android.com/tools/help/adb.html ) 。 您无法在应用中访问您的硬盘。 要访问外部目录中的文件,请尝试以下代码: getExternalStorageDirectory () 它返回一个文件。 以下是有关它的文档: http : //developer.android.com/reference/android/os/Environmen ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)