Upgrade from PHP 5.3.3 to php 5.3.7 or 5.4 in Debian Server

Hello im new to the forum.

I want to run a upgrade from PHP 5.3.3-7+squeeze19 with Suhosin-Patch (cli) to a newer version, php 5.3.7 or php 5.4 so that typo3 will work without php warnings.

The server is running Debian Linux version 6.0.10 and i don´t find good threads for this, I just see guides for CentOs.

I want to upgrade without running into issues with Virtualmin “Webmin version 1.730”

This what i read with " nano /etc/apt/sources.list "

deb http://debian.mirrors.ovh.net/debian/ squeeze main
deb-src http://debian.mirrors.ovh.net/debian/ squeeze main

deb http://backports.debian.org/debian-backports squeeze-backports main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-squeeze main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main

deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free

deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main

Can anyone be of assistence?

Howdy,

With CentOS, there’s actually a repository that they provide containing a newer PHP version designed to run side-by-side with the standard PHP that comes with CentOS.

Unfortunately, there isn’t a similar thing for Debian.

With Debian, you could manually compile a PHP version if you wanted, and place it in the path described here:

https://www.virtualmin.com/documentation/web/multiplephp

Or, you could always upgrade to Debian 7, which comes with a newer PHP version (5.4.36). There are instructions here for upgrading from Debian 6 to Debian 7:

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

Thanks!
Maybe we follow instructions to upgrade to Debian 7.

Upgrading Debian Squeeze to Debian Wheezy :: No PHP any more !!

Like on this tread https://www.virtualmin.com/node/27971

Can you help andreychek?

Upgrading Debian Squeeze to Debian Wheezy :: No PHP any more !!

Like on this tread https://www.virtualmin.com/node/27971

We have confirmed with the information above is related to our problem half sites are working half are not.

With Debian wheezy some php module was installed and depending of the /etc/apache2/sites-available/domain.com.conf the php works or just displays plane text.

Can you help andreychek?

Howdy,

For the sites that aren’t working, is that PHP Execution Mode different than the others that work?

You can determine that by looking in Server Configuration -> Website Options.

If you run System Settings -> Re-Check Config, does it detect any problems?

And lastly, what if you run this command, what output does this show:

grep -i sethandler /etc/apache2/mods-enabled/*.conf

Hello

Our webmin is not working in the usual address after upgrade , dont know why, so cant see Server Configuration -> Website Options

grep -i sethandler /etc/apache2/mods-enabled/*.conf

/etc/apache2/mods-enabled/php5.conf:# SetHandler application/x-httpd-php
/etc/apache2/mods-enabled/php5.conf:# SetHandler application/x-httpd-php-source
/etc/apache2/mods-enabled/php5_cgi.conf: SetHandler application/x-httpd-php
/etc/apache2/mods-enabled/php5_cgi.conf: SetHandler application/x-httpd-php-source
/etc/apache2/mods-enabled/proxy_balancer.conf:# SetHandler balancer-manager
/etc/apache2/mods-enabled/status.conf: SetHandler server-status

Thanks

Hello

Comparing our backup of /etc (/etc2) we find /etc2/webmin but no /etc/webmin

Also no files in init.d called webmin

Can you give us orientation , we dont know how this could have happened and what to do to fix.

Help?

Howdy,

Ah, try editing the file /etc/apache2/mods-enabled/php5_cgi.conf, and in there, comment out the lines beginning with “SetHandler”.

Then, restart Apache with this command:

/etc/init.d/apache2 restart

Do your sites begin working properly after that?

-Eric

Also, it sounds like you’re seeing some Webmin related issues as well – what is the output of this command:

dpkg -l 'webmin*'

Hello

Output

root@mail(/etc/apache2/sites-enabled)# dpkg -l ‘webmin*’
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±=================================-=====================-=====================-=======================================================================
rc webmin 1.730 all web-based administration interface for Unix systems
un webmin-adsl (no description available)
un webmin-apache (no description available)
un webmin-bandwidth (no description available)
un webmin-bind (no description available)
un webmin-burner (no description available)
un webmin-cfengine (no description available)
un webmin-cluster (no description available)
un webmin-core (no description available)
un webmin-cpan (no description available)
un webmin-dhcpd (no description available)
un webmin-exim (no description available)
un webmin-exports (no description available)
un webmin-fetchmail (no description available)
un webmin-firewall (no description available)
un webmin-freeswan (no description available)
un webmin-frox (no description available)
un webmin-fsdump (no description available)
un webmin-grub (no description available)
un webmin-heartbeat (no description available)
un webmin-htaccess (no description available)
un webmin-inetd (no description available)
un webmin-jabber (no description available)
un webmin-ldap-netgroups (no description available)
un webmin-ldap-user-simple (no description available)
un webmin-ldap-useradmin (no description available)
un webmin-lilo (no description available)
un webmin-logrotate (no description available)
un webmin-lpadmin (no description available)
un webmin-lvm (no description available)
un webmin-mailboxes (no description available)
un webmin-mon (no description available)
un webmin-mysql (no description available)
un webmin-nis (no description available)
un webmin-openslp (no description available)
un webmin-postfix (no description available)
un webmin-postgresql (no description available)
un webmin-ppp (no description available)
un webmin-pptp-client (no description available)
un webmin-pptp-server (no description available)
un webmin-procmail (no description available)
un webmin-proftpd (no description available)
un webmin-pserver (no description available)
un webmin-quota (no description available)
un webmin-samba (no description available)
un webmin-sarg (no description available)
un webmin-sendmail (no description available)
un webmin-shorewall (no description available)
un webmin-slbackup (no description available)
un webmin-smart-status (no description available)
un webmin-snort (no description available)
un webmin-software (no description available)
un webmin-spamassassin (no description available)
un webmin-squid (no description available)
un webmin-sshd (no description available)
un webmin-status (no description available)
un webmin-stunnel (no description available)
un webmin-updown (no description available)
un webmin-usermin (no description available)
un webmin-vgetty (no description available)
un webmin-webalizer (no description available)
un webmin-wuftpd (no description available)
un webmin-wvdial (no description available)
un webmin-xinetd (no description available)

That may be the Webmin related issue you’re seeing… it doesn’t actually appear that Webmin or Virtualmin is installed now.

Something appears to have gone awry during the upgrade process and caused those to get uninstalled.

It sounds like you made a backup of /etc, which is fantastic – I think with that, we should be able to get everything up and running again.

My suggestion would be to do the following –

  • Copy the /etc/webmin dir (and all it’s subdirs) from your backup to /etc

  • run this command on the command line to reinstall Webmin/Virtualmin:

apt-get install webmin webmin-virtual-server webmin-virtual-server-mobile webmin-virtual-server-theme webmin-virtualmin-awstats

  • Restart Webmin with: /etc/init.d/webmin restart

After doing all that, try logging back into Webmin and see if that looks correct again.

-Eric

Virtualmin is back

Actually i allerady had /webmin copied waiting for your answers, i knew it to be possible.

Now i have more tools to fix other problems.

Thanks i will keep you posted.

Great, I’m glad that helped get Webmin and Virtualmin back up and running!

Hopefully you saw my suggestions for fixing PHP above, which related to editing the “/etc/apache2/mods-enabled/php5_cgi.conf” file. That will hopefully get that fixed up for you.

-Eric

Hello Eric

Are you referring "#commenting SetHandlers in /etc/apache2/mods-enabled/php5_cgi.conf ?

Virtualmin asked me too when i did a re-check system.

Only one site is not opening and maybe cause by incompatibilty with new php version.

Also we are checking if emails are sending/receiving well.

Thanks