Solved

EasyApache with PHP 5.3

Posted on 2011-09-11
10
678 Views
Last Modified: 2012-05-12
Hi,

I'm wondering if I have to upgrade my easyapache on WHM/cPanel if I wish to upgrade to PHP 5.3. I have EasyApache 3.6.1

PHP 5.2.17 (cli) (built: Aug  3 2011 04:41:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

If I have to upgrade my EA then how do I ugrade it. I browsed the cPanel site but I can't find the info.

Thanks,
Victor
0
Comment
Question by:Victor Kimura
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 5

Accepted Solution

by:
Didier Vally earned 125 total points
ID: 36520809
0
 
LVL 7

Assisted Solution

by:boon86
boon86 earned 125 total points
ID: 36521225
follow these step:

1) Login to your VPS as root using SSH

2) Run the command: /scripts/upcp -force

3) Restart cPanel: /etc/init.d/cpanel restart

Open in new window


The actual upgrade may take a while, so you will need to be patient.
0
 
LVL 13

Assisted Solution

by:LinuxGuru
LinuxGuru earned 250 total points
ID: 36521281
Hi,

You just need to login to your WHM, and use your easy apache to upgrade to php.5.3.1. Also you can upgrade php easily by using the back end script /scripts/easyapache . Note that command line provides more flexible and powerful functionality. If you are not much experienced in backend, you may use the easy apache in WHM.

Please refer the following steps for easy apache update using /scripts/easyapache

After running /scripts/easyapache, first screen, you'll see an option to load several "pre-configured" settings. In general, you'll want to use your existing configuration, Previously Saved Config.

Up and down arrows will scroll, the tab key will switch between sections, and space bar will select/deselect.

Select the version of Apache you wish to run, 1.3/2.0/2.2.

PHP Version:

One the next screen, you'll have the option to select the PHP version you want.

On the Short Options List, you can select the basic options to configure. Be aware that these options can break your Apache configuration if you do not configure them properly. Be careful!

You can now save and build Apache.

If you need specific PHP options configured, select "Exhaustive Options List" .

Once you've compiled Apache and there are no errors or problems, you can restart the following services .

service cpanel restart
service mysql restart
service httpd restart

Cheers !!!
0
 

Author Comment

by:Victor Kimura
ID: 36522675
Thanks, testez. I tried that via the command line but there are only 2 options for PHP: PHP 4 and 5 so it actually doesn't upgrade to PHP 5.3.

boon86, I'll try it now.

Thanks for the link ppcdev. I saw that link before but I couldn't find a way to do it. Trying what boon86 mentioned.
0
 

Author Comment

by:Victor Kimura
ID: 36522746
boon86,

It seemed to work fine. But the PHP is the same. Do I need to execute additonal steps?

I also notice my smtp is not functioning now. I can send successfully but not receive. What could have happened? It's using EXIM for SMTP.

Thanks,
Victor
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 13

Assisted Solution

by:LinuxGuru
LinuxGuru earned 250 total points
ID: 36525473
Hi Victor,

Yes. You are correct. There will be an option to select PHP4 and PHP5. Select PHP5 and then go to next step. Now you will be able to select the specific php version. Check the attached screenshots. The screenshots are from an earlier version of easy apache installer.

Note: I have not yet checked the latest version of PHP available in easy apache.

 Choose PHP4 or PHP5 Select Required PHP version
0
 
LVL 7

Expert Comment

by:boon86
ID: 36526602
did you see php 5.3 when selecting php version inside whm -> easyapache ?





0
 

Author Comment

by:Victor Kimura
ID: 36526897
Hi fellas,

Thanks. Yes, I got it to work but when it was rebuilding there were errors like:

This is the command that failed:
        yum --exclude=kernel* -y install gettext automake19 libpng-devel readline-devel openssl libpng-dev zlib-devel autoconf261 libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch libstdc++-dev libltdl3-devel libltdl libopenssl0.9.7-static-devel readline-dev icu-dev libtool-ltdl-devel libicu sed libXpm-devel libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel xorg-x11-devel libtool-ltdl libssl-dev bzip2-devel pam-devel icu-devel libopenssl0-devel zlib1-devel expat-devel libicu-dev libopenssl0-dev gcc-c++ expat glibc-devel libstdc++ zlib libicu-devel bison libstdc++-devel libjpeg-devel libtool-libltdl-devel libtool openssl-dev libopenssl0 libz-devel bzip2-libs libjpeg-dev pam-dev fileutils libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel icu make libX11-devel libstdc++-devel.x86_64 gd cpp xorg-x11-dev gcc ssl-dev lex autoconf

So I submitted a ticket to cPanel and someone is looking at it right now. I'll try and post when I receive an answer.
0
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 36528593
Hi Victor,

Ok. Let us know if you require further assistance.
0
 

Author Comment

by:Victor Kimura
ID: 36551428
Thank you. They got it to work. =)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now