PHP5 CGI rpm?

Support/Development for PHP
pug306d
New Forum User
New Forum User
Posts: 4
Joined: Fri Apr 22, 2005 6:23 pm

PHP5 CGI rpm?

Unread post by pug306d »

Hi,

Is there a PHP5 CGI rpm from ART?

I found this one,

http://www.serverpeak.com/index.php?page=Software

But it will not compile for FC2 it gives the following error,

configure: error: Cannot find rfc822.h. Please check your IMAP installation.
error: Bad exit status from /var/tmp/rpm-tmp.79051 (%build)


I'd like to leave PHP4 on the system but use PHP5 for somethings that require it.

Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

No, I havent done a cgi one, just a regular one that replaces php 4. Is something wrong with Stuart's rpm?
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Unread post by Griffith »

Are you rpms for php-5 still for testing purposes? Any ideas when they will "go live"? :P
pug306d
New Forum User
New Forum User
Posts: 4
Joined: Fri Apr 22, 2005 6:23 pm

Unread post by pug306d »

Is Stuart from serverpeak?

If so the rpm on the site is built for RH Enterprise but he does say it should build for FC2.

When I run the command "rpmbuild --rebuild --define 'dist fc2' php5-cgi-5.0.3-3.sp.src.rpm" I get the above errors.

Any ideas on fixing Stuarts or would it take long for you to build one? My system is FC2 running Plesk 7.5.2.

Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I haven't touched my php5 rpm in a while, last time I did test it out, it broke both squirrelmail and horde. However I haven't tested it against the latest squirrelmail (1.4.4) so its possible that those issues have been fixed.

On the second question, yes stuart's (perlboy) company is serverpeak. I don't really have any plans to do a cgi php 5 rpm, generally I only do projects like that under hire.

As for building it on your own, I'd say your build environment is incomplete. I suggest that when you set up a system for building rpms you select the "Everything" option when choosing packages to install. That would ensure you don't run into problems like this.
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

Scott, Just an FYI in swsofts latest release they have the new version of horde that is compatible with PHP5. No more PHP5 issues with webmail.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Anyone want to take the lead on verifying this? There are php 5 rpms in atomic-unstable. Basically this means that if it does break apps after you give it the green light we all get to point and laugh at you :P
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

:D Yay!
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

I tried to update php with those php5 rpms on my testserver (under vmware) but it fails because it can't upgrade php-mbstring and php-domxml
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

i am reimaging a server to test with the ART php5 rpms... so we will see in about 30 min

My installation was completly by hand... I compiled php5 because I wanted MySQLI
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

I removed php-mbstring and php-domxml with the nodeps option and then upgraded php using the php5 rpms.

Edit: php isn't working at all. I will continue to investigate.
Last edited by Jason Lee on Sat May 21, 2005 2:47 pm, edited 2 times in total.
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

I just verified with a clean image on a 1and1 server. I ran the plesk updater to update to PSA 7.5.3 and then yum update php with the atomic-unstable channel. It complains about php-mbstring ... like the other Jason said. So you should remove those rpm's (with nodeps) before updating.

Additionally you need to change /etc/httpd/conf.d/php.conf and replace instances of "php4" with "php5"

Also apache complained that the https port 443 was in use. So i just restarted the server and it started normally.

Other than those issues... no problems

It doesn't break webmail.

----


so ummm... maybe one day we could see a MySQL 4.1 RPM with PHP5 and MySQLi? Because doing it by hand... not easy...
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

That rpm is based on a rh9 design, which didnt have the mbstring or domxml packages, so for now you'll have to do that workaround for testing. Once were sure its going to work with PSA and all associated app vault rpms, then I'll get to work on updating it to the newer design (with mcrypt, etc). If I remember correctly the problems I was having were with composing messages in squirrelmail and horde.
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

I have composed and sent messages from both squirrel mail and horde. I don't know how the rest of the apps in the app vault are affected... i dont ever use them... mostly because the versions are always way behind and have many security holes
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Someone want to test all those apps?
Post Reply