Help - Search - Members - Calendar
Full Version: PHP, MYSQL, ZEND UPGRADE in PLESK 7.5 RELOADED
The Planet Forums > Control Panels > Plesk > Plesk HOWTOs
FabioMarchi
Ok. All working smoothly... I made this tutorial because i posted a help message here & Plesk forums, without success. I see many tutorials in the net( and a good here, in this forum, with help me so much), various old and with problems, so i get a little knowledge of all, and related my experience here:

NOTE: THIS CAKE-RECIPE IS ONLY TO UPDATE MYSQL & PHP IN PLESK 7.5 RELOADED. MAKE SERVER BACKUPS FIRST !!!

MATERIAL: A VPS SERVER with Plesk 7.5.x RELOADED
SSH Terminal in Virtuozzo Panel
Coffee Cup and many Coffee.


1. lets go install Yum...but what hell is it? Hummm a linux app to update Rpm packages. Im a Win user...so, i think with will get a long night.

2. Well, i find yum here: http://3es.atomicrocketturtle.com/atomic/

3. But how put the damn file in my server? lets google how download in a Lixux SSH...ok, i know now. Lets go:

4. In your SSH prompt window digit:
# wget http://3es.atomicrocketturtle.com/atomic/a....art.noarch.rpm

5. Voilá! But what i do with this? Ok the RPM is like a Windows EXE. Lets to google how install this little bastard: Google " RPM Commands"

6. Here is a good page about how to use RPM commnds:
http://www.faqs.org/docs/securing/chap3sec20.html

So i will install in the SSH prompt window, just inputing:

# rpm -ivh yum-2.0.7-1.rhel3.art.noarch.rpm

Ok , Yum installed. First step completed.
Now we will configure Yum to find and get all the update packages.


7. Edit the file, typing in the SSH window.

vi /etc/yum.conf

Ok what is it? Vi is a muti-editor (i see in Google) and works in command and text modes. I cant edit nothing !!! . Lets google "Vi commands" and find a good and simply manual: http://www.chem.brown.edu/instructions/vi.html

Now, just read and learned a little about vi, digit the type "i" to enter and insert mode. You will see various sections like this [section]. Delete the [base] and [update] sections. All the lines !

And create the sections:

[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/$releasever/

[psa-7.5]
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 7.5 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-7.5/$releasever/

Why i delete the [base] and [update] sections? Just because will get a message error, the link Http://....duck.edu... dont exist anymore.

Now, type the "Esc" key to exit insert mode and type "ZZ" (with capitals, to exit and save the file). PS: If you made some wrong when editing, dont enter in panic. Type "Esc" and insert in console " :q! " to exit without save, and re-open the file again to edit (yeah, i made many wrong stuffs when editing ).


8. Ok, all made, so type in console:

yum check-update

After a time you'll se the mysql and php packages on the list.
Now type:

yum php upgrade

It will find dependencies, download files and update php
Type Y to install all.

9. Now lets go install Zend Optimizer, to eleiminate any incompatibility with php.

Lets make the download of the zend optimizer, go to zend in this link and make the file download for your linux version:

https://www.zend.com/store/free_download.php?pid=13

Make your free registration, open your e-mail, active your link and make your download.
Up the file to your server via FTP and get it later in your SSH window. This is necessary because we working in root mode, in a linux console.

wget http://yourserver/downloads/Zend...(the place where you upped the zend installation file)

Now make some comands in teh SSH window:

tar -zxvf Zend*
cd Zend*
./install.sh

Make all installation procedure.
Ok, your zend optimizer is working in your server.

Restart apache and check it out

service httpd stop
service httpd start

Ok, now i will upgrade the MySQL

yum upgrade mysql

Install, exit of your Plesk (all your buttons desappear - not enter in panic !!!), make a reboot in your server and check if your services all working. In my installation, the MySQL was stopped after the boot, so i just click in the activate button and all was ok.

After this i :
a)now i have MYSQL 4.1.5, Zend Optimizer and last estable PHP in my server.
b)proof to me with Google is a good teacher

Good luck!

Fábio Marchi
Brasil
=============================================
PS: Im not Jack Bauer, but i made a hard mission (a win user learn a update a Linux server) in -24 hours !!!

PS2: I dont recommend make others packages updates, only PHP & MySQL, if your server is working well.
kjartano
Thanks for this great tutorial!

Att. USE: yum upgrade php
INSTEAD OF: yum php upgrade
serverkiller
Just to let anyone know that wonders -

I just ran this on my Plesk 7.5.4-rhel3 and dang blast if it didn't complete the php upgrade process in less than 30 seconds...

(I didn't do zend).

No hits, no errors. Perfect.

Additionally, upgrading php automatically upgraded mysql 3.5 to 4.1 because of dependencies...

However, don't reboot your server until you move two files, the php.ini.rpmnew to php.ini as well as php.conf.rpmnew to php.conf or else you'll be wondering why nothing works! Lol.

http://www.atomicorp.com/wiki/index.php/PHP


Whoo hoo.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.