Topic: PHP Apache Dependency Required?

Hi, I use nginx on my webserver.
But the PHP package has a dependency for HTTPD, so each time PHP needs an update HTTPD will need to be installed, then I can of course afterwards manually force an uninstall with "rpm -e --nodeps httpd" if I want to.

My question is if the dependency could be removed, or is it required to be there for some reason?

Re: PHP Apache Dependency Required?

php is the module for apache (aka mod_php), so couldn't work without apache

If you don't need it, remove it, and use another php SAPI (php-cgi, php-fpm, ...) which are available in separate packages

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP Apache Dependency Required?

Okay, what I was hoping for was that the dependency could be removed when a package like php-fpm is used instead, but I guess that's a no then. hmm
I had the Atomicorp's PHP and MySQL version installed before, but I'm trying to switch to your because they are kinda slow on some updates...

I've removed MySQL and reinstalled your version successfully, but for PHP I'm not having much luck, this is my yum config file for remi, and the command which fails: http://pastebin.com/3kAUTFrW

(Note; I could not post it here because of this message, even in code tags: "Too more links in message. Allowed 1 links. Reduce number of links and post it again.")

Re: PHP Apache Dependency Required?

Found the problem, I had manually excluded httpd in CentOS-Base.repo some days ago during testing.
I thought it would be in the Remi repository, but seems I was mistaken smile

Note: I could not edit my previous post, same error message from the forums:
"Too more links in message. Allowed 1 links. Reduce number of links and post it again."

Re: PHP Apache Dependency Required?

Okay, what I was hoping for was that the dependency could be removed when a package like php-fpm is used instead, but I guess that's a no then. hmm

You can.

For example,

yum install lighttpd php-fpm php-mysql

Of course, if you install php directly (as I read in your paste) or php-devel, this will also pull httpd. php (the apache module, really need apache, by design).

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP Apache Dependency Required?

Ahh thanks, I hadn't realized I don't actually need php and php-devel in my production environment, php-cli provides the commandline tools I need smile
But it makes things a little bit more difficult because the only repository I've found that offers php-xcache does not offer the PHP v5.3.x branch and also nginx, which is what I use...
So to build php-xcache I need php-devel...

Of course, I would not mind if you included php-xcache in your repository, like has been requested before smile
http://forums.famillecollet.com/viewtopic.php?id=22

Re: PHP Apache Dependency Required?

Why don't you try php-pecl-apc, which is another opcache, maintained by the PHP team ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP Apache Dependency Required?

The opcache php-xcache is fater than APC, you can see some details in vB's forums here:
http://www.vbulletin.com/forum/showthread.php?t=213267

Re: PHP Apache Dependency Required?

I never see any real and serious benchmark results about opcache (your link is broken as I'm not authencated)

Such trivial results, such as
http://web-site-creation.org/agence/art … ccelerator

But nothing using a true application usage

I think APC is better because it is a PHP project, and it will be the default opcache in PHP (probably version 5.5)
I use it in production environment for a long time (millions of hits per day), works very well, I think.

As php-eaccelerator upstream is dead, I will remove it from my repo (it won't work with, comming soon, php 5.4)
SO, as I'd like to have an alternative, I will probably build xCache.
Except, I don't think it is ready for php 5.4 (apc is)

Just need some time.... some work... etc

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP Apache Dependency Required?

Xcache 2.0.0 with support for PHP 5.4.0 was just released smile

http://xcache.lighttpd.net/wiki/Release-2.0.0