UPDATE PHP IN MY VIRTUALMIN

13 posts / 0 new
Last post
#1 Sun, 02/08/2015 - 21:06
alanfermg

UPDATE PHP IN MY VIRTUALMIN

HELLO

i ve virtualmin VersiĆ³n 1.710, but i dont ve Centos in that version o account i dont know... because ... i dont cant install for YUM.. only for apt...

I add this code in the next part:

System>PackageSoftware>package from apt : " sudo apt-get install php5;" ( that is the code to the repository)

why thats code? because i see in the tutorial :(... but i dontknow

Mon, 02/09/2015 - 10:16
andreychek

Howdy,

Are you just looking to make sure you're using the most recent PHP version available to CentOS 7?

A quick way to do that would be to run "yum update" on the command line.

However, you can also update packages from within Webmin -> System -> Software Package Updates.

If you've installed Virtualmin, you would already have PHP installed, so you would just need to perform an update to make sure you're using the most recent version available to CentOS 7.

-Eric

Mon, 02/09/2015 - 18:39 (Reply to #2)
alanfermg

HELLO

I DONT KNOW, IF VE TO CENTOS... AND SEE UR VERSION.

BUT I APPLY THATS COMAND : "yum update" AND ANYTHING..

WHAT IS IT COMMAND FOR UPDATE MY PHP??

MY PHP IS 5.3 I THINK...

Mon, 02/09/2015 - 18:50
andreychek

Howdy,

What distro/version is it that you're using again? You can determine that by running this command:

cat /etc/issue

Mon, 02/09/2015 - 18:55 (Reply to #4)
alanfermg

hello

i apply thats comand : " yum install php54w " for update my php.. .but that is the answer ;

Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main python-sqlite i386 1.0.1-7+b1 Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main python-urlgrabber all 3.9.1-4 Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main rpm2cpio i386 4.8.1-6+squeeze1 Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main rpm i386 4.8.1-6+squeeze1 Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main python-rpm i386 4.8.1-6+squeeze1 Temporary failure resolving 'ftp.debian.org' Err http://ftp.debian.org/debian/ squeeze/main python-sqlitecachec i386 1.1.2-1+b1 Temporary failure resolving 'ftp.debian.org'

Wed, 02/11/2015 - 14:25
devteam

I am quite sure that I and others are willing to help you, but we need some information to do so.

What Linux distribution (like CentOS, Debian, etc) ? What version number is it?

I can say if you are running CentOS and want the latest release of PHP, your best bet is to reinstall with CentOS 7. It will already be updated to as recent of a version as you may require - go ahead and run your "yum update -y" after install of the OS and before install of Virtualmin/Webmin/Usermin.

If you are running CentOS 6.x, there are some issues with PHP that have just cropped up in the last week, but Google "update PHP CentOS" There you will be directed on how to add the "remi" repo and enable the update of PHP. I had great success with that until the last week, therefore I have just moved up to CentOS 7 which has PHP 5.4.16 natively. That is not the most recent release of PHP, we are at 5.6x, but 5.4.16 is modern and safe enough to run anything you might want and is less likely to have certain conflicts the brand new 5.6x PHP versions may encounter.

See, now if you are not running CentOS (we have no idea) I wrote all of this for no reason and it will be of no help to you, so please always try to give your Distro and both version numbers of the Distro and Virtualmin.

Good luck.

Wed, 02/11/2015 - 18:16 (Reply to #6)
alanfermg

Hello devteam thank very much for u time..

i dont know anything about virtualmin... i NOOB, but i like understand all fot this topic..

Ok, my SO of my virtual min is "Operating system Debian Linux 6.0"

and version of my virtual min is "Virtualmin version 4.12.gpl GPL"

My version of php is the of default.. is 5.2.x i think.. but i need 5.4 :)

Wed, 02/11/2015 - 22:04
andreychek

Howdy,

The easiest and supported way to get a newer PHP version would be to install a distro that provides that version.

Debian 6 only provides PHP 5.2, you would want something like Ubuntu 14.04, Debian 7, or CentOS 7 if you need a newer PHP version.

Note that it's possible to upgrade from Debian 6 to Debian 7, there are instructions for doing that here:

https://www.virtualmin.com/documentation/system/os/debian-squeeze-to-whe...

Fri, 02/13/2015 - 19:16 (Reply to #8)
alanfermg

hello

i try use ur tutorial, but i ve problem.... whit that..

that is of message when i add the next comand : " apt-get update && apt-get upgrade"

Installing package(s) with command aptitude -y -f install apt-get update && apt-get upgrade ..

Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Couldn't find any package matching "apt-get". However, the following packages contain "apt-get" in their description: libcmdparse2-ruby1.8 aptitude cron-apt haskell-debian-utils debarchiver pdebuild-cross daptup apt qmail-src jablicator ttf-sil-padauk libcmdparse-ruby unifont-bin posixtestsuite cupt r-base libcmdparse2-ruby apt-build aptitude-dbg debdelta aptitude-gtk auto-apt apt-move Couldn't find package "update". However, the following packages contain "update" in their name: openoffice.org-updatedicts libqrupdate-dev freepops-updater-fltk copyright-update freepops-updater-gnome update-manager-core update-manager-gnome update-notifier-common libqrupdate1 update-notifier webmin-security-updates update-inetd ez-ipupdate xmms2-client-medialib-updater nss-updatedb update-manager-doc update-notifier-kde langupdate hildon-update-category-database Couldn't find any package matching "apt-get". However, the following packages contain "apt-get" in their description: libcmdparse2-ruby1.8 aptitude cron-apt haskell-debian-utils debarchiver pdebuild-cross daptup apt qmail-src jablicator ttf-sil-padauk libcmdparse-ruby unifont-bin posixtestsuite cupt r-base libcmdparse2-ruby apt-build aptitude-dbg debdelta aptitude-gtk auto-apt apt-move Couldn't find package "update". However, the following packages contain "update" in their name: openoffice.org-updatedicts libqrupdate-dev freepops-updater-fltk copyright-update freepops-updater-gnome update-manager-core update-manager-gnome update-notifier-common libqrupdate1 update-notifier webmin-security-updates update-inetd ez-ipupdate xmms2-client-medialib-updater nss-updatedb update-manager-doc update-notifier-kde langupdate hildon-update-category-database No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: usermin webmin webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats webmin-virtualmin-mailman 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 35.7 MB of archives. After this operation, 6157 MB disk space will be freed. Do you want to continue [Y/n]? Err http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main usermin all 1.640 Temporary failure resolving 'software.virtualmin.com' Err http://download.webmin.com/download/repository/ sarge/contrib usermin all 1.640 Temporary failure resolving 'download.webmin.com' Err http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtual-server all 4.14.gpl Temporary failure resolving 'software.virtualmin.com' Err http://webmin.mirror.somersettechsolutions.co.uk/repository/ sarge/contrib usermin all 1.640 Temporary failure resolving 'webmin.mirror.somersettechsolutions.co.uk' Err http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtual-server-theme all 9.0-2 Temporary failure resolving 'software.virtualmin.com' Err http://webmin.mirror.somersettechsolutions.co.uk/repository/ sarge/contrib webmin all 1.730 Temporary failure resolving 'webmin.mirror.somersettechsolutions.co.uk' Err http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtualmin-awstats all 5.1 Temporary failure resolving 'software.virtualmin.com' Err http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtualmin-mailman all 6.3 Temporary failure resolving 'software.virtualmin.com' Failed to fetch http://webmin.mirror.somersettechsolutions.co.uk/repository/pool/contrib... Temporary failure resolving 'webmin.mirror.somersettechsolutions.co.uk' Failed to fetch http://webmin.mirror.somersettechsolutions.co.uk/repository/pool/contrib... Temporary failure resolving 'webmin.mirror.somersettechsolutions.co.uk' Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Temporary failure resolving 'software.virtualmin.com' Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Temporary failure resolving 'software.virtualmin.com' Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Temporary failure resolving 'software.virtualmin.com' Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Temporary failure resolving 'software.virtualmin.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

.. install failed!

I UNDERSTAND TO I NEED INSTALLS OTHER VERSION FOR MY SO TO THE MY SERVER... BUT I DONT KNOW ANYTHING FOT THAT TOPIC JEJE..

THANK U VERY MUCH FOR UR TIME, I NEED HELP !!

Thu, 02/12/2015 - 12:52
devteam

Hello,

CentOS 7 comes with and will yum update to 5.4.6. I will add that is from a 64-bit version of CentOS (all my host provides in v7)

I will offer up two things since I do not know the procedure for updating Debian, and that is whatever you decide on, as the user(s) above suggest, it is best to use what comes installed, and/or what the native OS will update to under yum or a similar updater. Also, there is no reason to use a 64 bit OS on a VPS as the RAM footprint is far larger and many things have not been ported well to 64-bit versions. So 32-bit for now is still the best way to go with all Linux distro's.

There are instructions on the web that will tell you how to enable an additional repository (like remi) that you can then in CentOS update your PHP version with. I am sure there are similar posts, blogs and such for all versions of Linux. I can only urge caution and would encourage you to only update PHP and its dependencies with a non official repository and then to disable it as you can end up breaking things very easily by mixing and matching updates from a different non-standard repository...

Fri, 02/13/2015 - 12:04
Diabolico
Diabolico's picture

Last release of PHP 5.2 was in 2011 and thats it, there will be no more updates or security fixes so i would suggest you to move away from this version of PHP. Aside of few specific reasons there is no point to have old operating system on your server as could have security holes what will never be patched. Like andreychek said, check if your hosting allows you to install some of the new OS with PHP 5.4.X if not then maybe is time to find new host. On side note, current prices for the VPS's with 1-2+ GB RAM are so low i dont see any problem to use 64-bit version of OS. Either way almost any CP will use between 250-300 up to 500-600 MB of RAM so anyone who want to have a server with CP 1GB of RAM is bare minimum.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Fri, 02/13/2015 - 13:11
andreychek

Howdy,

It's not a security issue in this case, since the distribution itself will support the PHP version included in it's distribution.

So while it is older, distros will backport bug fixes and security fixes into their software versions.

-Eric

Sun, 02/15/2015 - 22:26
alanfermg

hello that is of my virtualmin now.. u can see

ystem hostname idmnoroestesur.org (212.1.213.78) Operating system Debian Linux 6.0 Webmin version 1.732 Virtualmin version 4.12.gpl GPL

i update the webmin version 1.710 to 1.732 but.. i dontknow update my SO, i understand what i need install debian 7.0 for install php 5.4.x ... ...or install centOS i dontknow... but i need help.. whatapps ?

Topic locked