Re: PHP/apache issue after update
Le 29/01/2018 à 00:45, Emmett Culley a écrit : > I am not sure why php-fpm is suddenly getting used on my workstation. I did > not install it, nor did I enable it in systemd. A couple of days ago I was > modifying one of the sites that stopped working, and all was working as > expected. Then suddenly php-fpm is running the show and none of those sites > worked. > > Well, at least this forced me to find about apache multithreaded, > > Can I assume that it is now completely safe to run PHP in apache > multithreaded mode? Yes, with FPM which runs in a separate set of processes No with mod_php For more explanation, you could read: https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php Remi ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: packages requiring httpd as opposed to requiring webserver?
Le 20/02/2014 14:43, Robert P. J. Day a écrit : is that considered good package design? it may be that there are some packages that absolutely need some webserver feature that is provided only by httpd, but is it also possible that some packages are being unnecessarily restrictive? just trying to understand the packaging philosophy here. If a package provides only some static files, it could perhaps only requires a webserver (except that all webserver don't use the same document root, and have different way to manage aliases). I a package provides some httpd configuration file, it must, of course, requires httpd. For PHP web-app, mod_php + httpd is the only working out-of-the-box solution. Yes it will be nice to have web-app with working configuration for all available webserver just a dream (for user) or a nightmare (for packager). Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: fastCGI
Le 14/06/2013 14:33, Rafnews a écrit : Situation: i installed on Fedora 18 a webserver where i need: - FastCGI - to use my standard fedora user account (let's say rafnews) to edit/move/delete files/folder in my webroot /var/www/html folders, where files have 644 as permissions and folders : 705. for now, all files/folders have correct permissions but owner is apache:apache Once again : apache don't need to own the files, only to be able to read them. 1. FastCGI settings: my webserver was running (on PHP 5.4, _not php-fpm_) correctly using the standard Apache 2.4 handler, now i'm trying to make use of FastCGI bit without success. Here is my php.conf file setting from apache 2.4.4: DirectoryIndex index.php php_value session.save_handler files php_value session.save_path/var/lib/php/session i removed the addtype and handler as suggested on internet. I added in myvhosts.conf the following thing (withing VirtualHost *:80 tag): IfModule proxy_module ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1/var/www/html/info/$1 /IfModule Obviously when you use mod_proxy_fgid, you need to run FPM (the FastCgi Process Manager) Apache starts, however when i want to access to webpage i get the following error (in vhost log dedicated to my website): [Fri Jun 14 14:16:07.827425 2013] [proxy:error] [pid 24500] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:8000 (*) failed [Fri Jun 14 14:16:07.827539 2013] [proxy_fcgi:error] [pid 24500] [client 127.0.0.1:40982] AH01079: failed to make connection to backend: 127.0.0.1 qed. Note default FPM port is 9000, not 8000. So you need to adapt ProxyPassMatch or FPM configuration. Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: fastCGI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 14/06/2013 13:29, Reindl Harald a écrit : However it has been told that FastCGI provide also a performance increase so, we would like to reach it also :) Faster than CGI, probably, but nearly nobody use CGI nowadays ;) ok, fire them really it is impossible that the webserver speaking via CGI/FCGI with a standalone PHP binary is faster than having PHP inside the httpd process and this sounds like a typical webserver hosting company knowing zero to nothing I agree. Especially when you have are mostly serving dynamic PHP files. When you serve a lot of static files, and only a few PHP scripts, it could be faster to use FPM as this allow you to switch Apache in threaded mode (worker of event instead of prefork) where the mod_php is not really supported (even if still provided in Fedora). But mod_php still the most flexible solution as it's the only one which allow you to use simply: alias (else you need 1 Proxy config per alias) multiviews (/foo/bar calling /foo.php) directoryindex (index.php) access right per directory ... Remi. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlG7+s4ACgkQYUppBSnxahguxACfXw1SDIafQj6y+g2on2qIyp1i Fb0AnjIPJXxoU5/Lg6jOmU8oegAh6iK9 =84lb -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
Le 11/04/2013 10:45, Virágh János a écrit : Does we really need to allow apache to write the moodle web pages ? Yes, we do - during the *configuration* of moodle No, configuration should be in /etc/moodle, not within the static content. Please read FHS. So my current recommendation for this package : don't use it, as it doesn't conform to guidelines / FHS, and have no additional value from the upstream tarball. Remi -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 10/04/2013 15:46, Daniel J Walsh a écrit : On 04/10/2013 02:03 AM, Ester Muoz Aparicio wrote: El 10/04/13 00:47, M A Young escribi: On Tue, 9 Apr 2013, Vir£gh J£nos wrote: After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? You just need to tell the config.php file how to find your database - see the /usr/share/doc/moodle-2.3.6/README-rpm file. You also need to fix SElinux permissions (see below) However, there is a problem with the current Fedora and EPEL moodle packages because they remove some php QuickForm files that the moodle source ships with in favour of Fedora's packaged version. Unfortunately moodle is expecting a couple of extra files that aren't in the Fedora version because they are now obsolete. Michael Young I had lots of problems to install moodle into Fedora, and also you should know that every time it is updated by yum you will need to fix permissions (SELinux mostly). I work developing courses in moodle for my clients (schools) and they have a certain version of moodle in their servers. To keep everything simple, I installed in my computer the same version they have and I do not want yum to update it. To put it to work, I ended up using the rpm from moodle.org, and yum localinstall it so that it would pull dependecies. All the php and mysql packages are from remi collet's repository (again it was just easier than fight against Fedora's packages). From my notes: install moodle, mysql, mysql-server give permisions to apache to the moodle folder /var/www/moodle Well we had the correct label for /var/www/moodledata(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) I will update policy and Fix it for RHEL6, and all Supported Fedora. /var/www/moodle(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) Why this ? Does we really need to allow apache to write the moodle web pages ? currently : $ ll -Z /var/www/moodle/ drwxr-xr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 data drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 web @moodle packager, Why not use a more standard (FHS) layout /var/www/moodle/web = /usr/share/moodle /var/www/moodle/data = /var/lib/moodle @Dan, we already have some other web app with SElinux context (ex, see glpi), managed in package scriptlet. Do you really plan to add all this directories in default policy ? Remi. chcon -R -t httpd_sys_content_rw_t /var/www/moodle setup moodle database in mysql edit config.php to add login, passw, root for www Then, when updating with yum, remember to exclude moodle. Anyway, you don't want it to be updated every few weeks if you are developing courses for others like I do. Keep in mind that I only develop courses in this server, and then transfer them for teaching... I mean, this is just development. I do not have students or other users accessing so I don't know how would that go. If this would be a live server I would not go for Fedora, I would pick some other linux flavour that does not change so quickly. HTH, Ester -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFleKAACgkQYUppBSnxahjFwQCgmOJQPciHsXYQwM+56TfPTqZN Jc0AoPKlNcitBQ7DGXFgn3FWgLlaU77V =x1T6 -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: mysql-test and mysql-test-run.pl
Le 19/09/2012 19:30, Mark Haney a écrit : Can someone tell me why the mysql-test-run.pl file is missing from the mysql-test package? (F17, that is) Most docs on the web indicate that the perl script is the way to initiate a test. Am I missing something? I see it = /usr/share/mysql-test/mysql-test-run.pl -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: php question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 12/09/2012 09:51, François Patte a écrit : Bonjour, In order to write a readme for the installation of php scripts on a web server, I would like to know if it is possible to deactivate (without uninstalling them) php packages installed on my machine. You can disable each extension from it's configuration file (/etc/php.d) commenting the extension=foo.so I want to be able to tell others what is a minimal install of php on a machine to be able to run the php scripts on a web site. You can also try the phpci command (from php-bartlett-PHP-Compatinfo package) which comes with a lot of usefull reports. Remi. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBQdtkACgkQYUppBSnxahh09QCg59qbhYJcCH4zOKQ/dCktibK1 UCcAoOU9k0oJ6Ve3Blh7vWHOU38HiN6h =13vn -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: Moodle on Fedora 16
Error, cannot continue, php-zip is missing. I yum search for it, and it is not on any repository. I confirmed it does not exist in any repo, so well, here I am now. zip extension have been removed from fedora php packages because of an Guidelines violation (about bundled Libraries), and exception was denied for this package. 2 quite simple solutions - pecl install zip (well, will requires a lots -devel stuff) - use remi repo (backport from fedora with zip extension enabled) I understand this are not real good solution... I still think exception should be reconsidered. Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: Enable PHP on local Apache2 server
Le 28/12/2011 16:10, Klaus-Peter Schrage a écrit : Have you the following SOMEWHERE in your httpd-conf-files? LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php Yes, adding those two lines did it: Now I can see the PHP Info page. This 2 lines should be present in /etc/httpd/conf.d/php.conf, provided by php package. So httpd.conf doesn't have to be modified. Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: How to specify bi-weekly crontab entries by day of the week?
Le 18/09/2011 12:33, suvayu ali a écrit : Hi, I have been trying to figure this out but so far haven't had any success. I want to run jobs weekly, every 4 weeks (i.e. monthly) and every 52 weeks (i.e. yearly) on a specific time on a Monday. I tried using the 1/n notation 00 2 * * 1/364 /usr/bin/rsnapshot -c /etc/rsnapshot.conf yearly 20 2 * * 1/28 /usr/bin/rsnapshot -c /etc/rsnapshot.conf monthly 40 2 * * 1 /usr/bin/rsnapshot -c /etc/rsnapshot.conf weekly # First monday of january 00 2 1-7 1 1 /usr/bin/rsnapshot -c /etc/rsnapshot.conf yearly # First monday of each month 20 2 1-7 * 1 /usr/bin/rsnapshot -c /etc/rsnapshot.conf monthly # All mondays 40 2 * * 1 /usr/bin/rsnapshot -c /etc/rsnapshot.conf weekly Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: createrepo update?
Le 26/07/2011 15:34, Stephen Berg (Contractor) a écrit : The createrepo package that comes with Fedora 15 (0.9.9-3) is unable to generate repos using SHA1. This has caused me to downgrade createrepo to the Fedora 14 version (0.9.8-5) because the system hosts some local repos for Scientific Linux 5x. Is there anyone getting a fix in the pipeline? I found bugs 718218 500364 that are already reporting this issue but I can't find anything in updates-testing to indicate there's a fix on the horizon. 1/ try the version in rawhide which should fix the issue 2/ try the version in my repo http://rpms.famillecollet.com/fedora/15/remi/i386/repoview/createrepo.html This is the version I use for the remi repo (which include EL-5). Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Firefox 4.0 for F14 x86_64
Le 24/03/2011 02:38, James M. Leddy a écrit : Only thing I had to edit from the f14 rpms was the false dependcy for 0.7 libnotify. Let me know if I forgot any deps, but I think all it is is xulrunner and firefox: http://people.redhat.com/jleddy/firefox4/ Why another one ... ? spot [1] already provides a firefox4 (parallel install) and I [2] already provides a firefox (replace standard) And xulrunner-2.0 is probably a bad idea for f14 (except if you also want to rebuild all package which use it) Remi. [1] http://repos.fedorapeople.org/repos/spot/firefox4/ [2] http://blog.famillecollet.com/post/2011/03/22/Firefox-4-en -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Firefox 4 RC1 Remi repo
Le 11/03/2011 14:00, Jim Philips a écrit : I can't manage to update to RC1. When I try, yum tells me it depends on gecko-libs 2.0 RC1 and that package is not available. Anyone successfully update from the Remi repo? # rpm -q --requires firefox4 | grep gecko gecko-libs(x86-64) = 2.0-rc1 # rpm -q --provides xulrunner2 | grep gecko gecko-libs = 2.0-rc1 gecko-libs(x86-64) = 2.0-rc1 Both are in remi repository. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Firefox 4 betas ?
Le 04/03/2011 18:00, Linuxguy123 a écrit : Anyone running them ? How are they ? Fast... fast... (see bench result on my blog) Is there a way to run both Firefox 3.6.x and the Firefox 4 beta without messing things up ? There is (at least) 2 repo which provides firefox4 RPM (which can be installed beside firefox 3.6) http://repos.fedorapeople.org/repos/spot/firefox4/ http://blog.famillecollet.com/post/2011/03/01/Firefox-4.0-Beta-12 Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Enabling sqlite in php 5.3.5
Le 28/01/2011 21:22, Andrew Dietz a écrit : but still, phpinfo(() tells me the sqlite modules are not configured to load: Configure Command './configure' (...) '--without-sqlite' '--disable-pdo' '--without-sqlite3' (...) Read : http://blog.famillecollet.com/post/2010/09/29/phpinfo-BUG-or-PEBKAC Remi. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Thunderbird 3.1 and enigmail
You are correct, I stand corrected. The enigmain main page only states 32-bit, but when you click on the download page you can get the 64-bit version. addons.mozilla only provides extensions for official package. And mozilla only provides 32 bits build of Firefox. All 64 bits package are only contrib. enigmail*.xpi is build on Arch Linux with gcc 4.5.0, An XPI extension is installed in the user profiles. The RpmFusion (or remi) RPM is always build on fedora, with the same build system than thunderbird and is available system wide (in all profiles of all users), for all arch supported by fedora: i386, x86_64 (ppc and ppc64 until F-12) Remi (RpmFusion maintainer of enigmail) P.S. http://blog.famillecollet.com/post/2010/06/26/thunderbird-enigmail-1.1.1-en -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Thunderbird 3.1 and enigmail
Le 26/06/2010 16:32, Steven Stern a écrit : Enigmail's help files indicate that it may have something to do with getting a version compiled to be compatible with your distribution. As far as I can tell, only 1.0.1 is in rpmfusion, so I'll wait a few days and try again. Version compatible is in my repo. http://blog.famillecollet.com/post/2010/06/26/thunderbird-enigmail-1.1.1-en I will not push it to rpmfusion before 2 issues ware fixed : - version is displayed as 1.1 - thunberdird refuse to start more than once (the big one) See comment https://admin.fedoraproject.org/updates/sunbird-1.0-0.25.b2pre.fc13,thunderbird-3.1-1.fc13 + P.S. I will appreciate other feedback about the bug I describe in the update comment - others users affected ? (or am I the only one) - others languages (only in french ? only in non-english ? all ?) - others arch (I run x86_64 only) -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Thunderbird 3.1 and enigmail
Le 26/06/2010 05:39, Steven Stern a écrit : Does anyone have enigmail 1.1 working with Thunderbird 3.1? I've installed tbird 3.1 in /usr/local and updated enigmail to version 1.1. When I start, it says it's unable to start gpg-agent. gpg-agent is installed, from the rpm gnupg2-2.0.14-2.fc13.i686 Thunderbird 3.1 is on the road to F-13 updates-testing Enigmail 1.1.1 is on the road to rpmfusion + -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Why are 0 karma updates still being released?
Le 03/06/2010 07:04, Rahul Sundaram a écrit : If a package does not get negative karma, I think the 2-week-wait / push-to-stable treatment is reasonable. YMMV. +1 With the exception of critical security and bug fixes which needs to be tested but for a shorter period of time. +1 I also encounter some very bad user experience - A user ask for a new branch / version of a package - I do the job and push it to updates-testing - After a few weeks, no feedback Really frustrated... :( So, I could have left it in testing forever, but I prefer to push it to stable (no bad karma), mainly because I don't want to manage a too long list of packages waiting in testing... Karma is really a great tool, but not enough used... + P.S. an example https://admin.fedoraproject.org/updates/mysql++-3.0.9-4.el5 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Re: Fedora 12 Update: trytond-1.2.4-1.fc12 - STRANGE MAIL BODY
Le 09/05/2010 11:30, Philip Rhoades a écrit : People, If I look at the source of this mail with an editor, the body of the mail looks like this: LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KRmVkb3JhIFVwZGF0ZSBOb3RpZmljYXRpb24KRkVET1JB LTIwMTAtMjQ4MwoyMDEwLTAyLTIzIDA0OjA1OjQzCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgpO YW1lICAgICAgICA6IHRyeXRvbmQKUHJvZHVjdCAgICAgOiBGZWRvcmEgMTIKVmVyc2lvbiAgICAg OiAxLjIuNApSZWxlYXNlICAgICA6IDEuZmMxMgpVUkwgICAgICAgICA6IGh0dHA6Ly93d3cudHJ5 dG9uLm9yZwpTdW1tYXJ5ICAgICA6IFNlcnZlciBmb3IgdGhlIFRyeXRvbiBhcHBsaWNhdGlvbiBm cmFtZXdvcmsKRGVzY3JpcHRpb24gOgpUcnl0b24gaXMgYSB0aHJlZS10aWVycyBoaWdoLWxldmVs Look at the header : Content-Transfer-Encoding: base64 + -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines