Ticket #1137 (closed defect: wontfix)

Opened 2 months ago

Last modified 2 hours ago

/var/www/ispcp/gui/phptmp permissions not correct when installing with mod_php

Reported by: pasichnyk Assigned to:
Priority: major Milestone: ispCP ω 1.0.0 - RC6
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC4
Severity: Don't know Keywords: install, permissions, phptmp
Cc:

Description

I just installed a fresh svn copy on a clean gentoo VM, and noticed a permission problem when installing with mod_php. (Revision: 1080)

ispcp phptmp # pwd /var/www/ispcp/gui/phptmp

ispcp phptmp # ls -la . total 16 drwxr-xr-x 3 vu2000 apache 4096 Mar 25 15:14 .

As you see, the apache user doesn't have write perms to the phptmp folder, meaning when the gui loads, we get session errors as follows:

Warning: session_start() [function.session-start]: open(/var/www/ispcp/gui/phptmp//sess_e5be289f8def887a07b81abf8064e994, O_RDWR) failed: Permission denied (13) in /var/www/ispcp/gui/include/ispcp-lib.php on line 27

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/ispcp/gui/include/ispcp-lib.php:27) in /var/www/ispcp/gui/include/ispcp-lib.php on line 27

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/ispcp/gui/include/ispcp-lib.php:27) in /var/www/ispcp/gui/include/ispcp-lib.php on line 27

Attachments

Change History

03/26/2008 10:57:18 AM changed by rats

  • status changed from new to closed.
  • resolution set to wontfix.
  • milestone changed from Working to ispCP ω 1.0.0.

ispCP is preconfigured for fastCGI. Permissions are set correctly for fastCGI; therefore, no bug!

03/26/2008 06:22:10 PM changed by pasichnyk

  • status changed from closed to reopened.
  • resolution deleted.

Why are there still mod_php4/5 configuration blocks in the apache config provided by ispcp then, if only fastcgi is supported "out of the box"?

It just seems that an admin should be able to configure apache to use fastcgi or mod_php and it would work either way, which isn't the case currently.

Maybe a question in the setup that asks the user whether they want to setup ispcp with fastcgi or mod_php, and then whether to use php4 or 5. (should we even support php4 though?) Based on the answer to the "fastcgi or mod_php" it could change the phptmp perms.

Not a huge deal, I just see this as not working out of the box on a mod_php setup, which seems to be a supported scenario...

Thanks, Jesse

03/26/2008 11:43:34 PM changed by joximu

Could you test, if it's enough to allow www-data (the apache group) to write in the phptmp?

03/28/2008 12:08:46 AM changed by pasichnyk

Yes, that will work.

On my gentoo system, its owned vu2000:apache, with 755 perms. If I change this to 775 it works.

04/08/2008 10:44:46 AM changed by Blocker

yup thats enough, i think better use 1777 ( stiky bit ) so it doesnt bother if running under www-data ( gentoo ), www ( *BSD) or nobody so the script can be more general.

05/01/2008 09:49:08 AM changed by gael

I my Ubuntu server I had to change "phptmp" to the following: 1777

the owner and groud of my "phptmp" is "www-data"

Hint for newbies, you have to type the following:

#chown www-data:www-data /var/www/ispcp/gui/phptmp
#chmod 1777 /var/www/ispcp/gui/phptmp

Gael

05/16/2008 11:08:02 AM changed by rats

  • status changed from reopened to closed.
  • resolution set to wontfix.
  • milestone changed from ispCP ω 1.0.0 to ispCP ω 1.0.0 - RC6.

please provide these infos in Documentation.

This version of ispCP is preconfigured for FastCGI. If you use mod_php you've to change the apache-mpm-prefork to apache-mpm-worker, too. therefore we cannot give this option on install.

To be as comfortable as possible for any admin, we provide mod_php-directories, that's all.

=> Closed - Won't Fix!


Add/Change #1137 (/var/www/ispcp/gui/phptmp permissions not correct when installing with mod_php)




Action