0

I'm using Plesk 12 with some modules enabled, including suexec:

Plesk - Enabled modules

But when I run whoami from a PHP script, I still get apache's default user: apache

What am I doing wrong? Should I double check some config file or activate something else?

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
dmmd
  • 415
  • 4
  • 17
  • Loading the module is not the same as configuring Apache correctly and enabling it for specific sites/content. So yes, you'll need to do something else. Most sysadmins will use configuration files rather than control panels, so how to do so in Plesk, No Idea. – HBruijn Nov 30 '14 at 18:54
  • Using suExec: http://httpd.apache.org/docs/2.2/mod/mod_suexec.html#suexecusergroup but typically apache runs as an Apache module meaning you'll need [something else](http://php-fpm.org/)... – HBruijn Nov 30 '14 at 19:00
  • @HBruijin, makes sense. Do you know any good tutorials on that? I'm not very experienced with servers, so any easier instructions would be really nice. – dmmd Nov 30 '14 at 19:22
  • Administration panels are off topic. – HopelessN00b Feb 24 '15 at 04:00

1 Answers1

0

the only way to my knowledge is to have php running with php-fpm pools or as CGI/FastCGI and not as an apache module.

I think plesk allows running php in CGI/FastCGI mode.

Antony Gibbs
  • 515
  • 3
  • 12
  • Thanks, man! Got the answer from this post: http://forum.sp.parallels.com/threads/parallels-plesk-file-permission-problem.264947/. It was exactly that, setting PHP to run as FastCGI. – dmmd Nov 30 '14 at 22:47