ispCP - Board - Support
mod_php5 instead of fastcgi = problems - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: mod_php5 instead of fastcgi = problems (/thread-2037.html)



mod_php5 instead of fastcgi = problems - Eminos - 12-23-2007 04:08 AM

Hi,

I had some problems using fastcgi so I disabled that and installed mod_php5. It works, but I have permission errors when using some php functions like:
"Warning: move_uploaded_file(/var/www/virtual/domain.com/htdocs/media/images/profile/29/1198345435.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/virtual/domain.com/htdocs/inc/images.inc.php on line 531
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move" ...

I guess it's easy to fix for you pros. How should I configure it so it works with mod_php5 ??
I only have ONE domain on that server, so it's a single user envirement.

And yes. I have similar (session) problems with ispCP control panel and pma and webmail and so on.

Greatful for fast reply.

/E


RE: mod_php5 instead of fastcgi = problems - rbtux - 12-23-2007 05:12 AM

why do you need ispcp when you have only one domain to manage?


RE: mod_php5 instead of fastcgi = problems - Eminos - 12-23-2007 05:15 AM

Good question!
Probably coz I didn't wanna look for an other WEB, MAIL, FTP, MySQL manager. And it seemed like a simple way to install all the needed packages. That's why.

/E


RE: mod_php5 instead of fastcgi = problems - rbtux - 12-23-2007 05:18 AM

It is indeed when you don't modify some basic sezzings like fastcgi...

But back to your problem. When you run php scripts with mod_php they belong the user apache runs on (www-data or wwwrun in most cases). So this user must have write permissions in the folder you moving the file to..


RE: mod_php5 instead of fastcgi = problems - joximu - 12-23-2007 08:42 PM

in other words: the tmp folders must be writable by wwwrun/www-data - so either change owner or (quick'n'dirty) change permission to 777...

/J


RE: mod_php5 instead of fastcgi = problems - Eminos - 12-23-2007 11:28 PM

Awsome. Thanks guys Smile

Oh yes ! How should I fix the ispCP control panel to work with mod_php5 ? And PMA and the rest of the tools.

/E


RE: mod_php5 instead of fastcgi = problems - rbtux - 12-24-2007 12:05 AM

I would enable fast-cgi for the admin interface! Elsewise you have to check a lot of permissions. see the set-permission.sh script in the setup folder...


RE: mod_php5 instead of fastcgi = problems - Eminos - 12-24-2007 12:08 AM

Oh, ok, great ! That was acutally my next question. Can I enable fast-cgi for SOME domains, and use mod_php5 for other ? And how do I enable the fast-cgi for only the admin insterface ? a2enmod fastcgi_ispcp ?

/E


RE: mod_php5 instead of fastcgi = problems - joximu - 12-24-2007 12:11 AM

I think you need to modify the 00_master.conf and also the ispcp.conf - because they only test if a certain module is installed.

But you have to install/enable both modules: php5 and fast-cgi

Bu I think changing the permissions of ispcp is somewhat easier... you should be able to modify the set-gui-permissions script (in the engine/setup-folder)

/J


RE: mod_php5 instead of fastcgi = problems - Eminos - 12-24-2007 01:35 AM

I just modified the 00_master.conf, and commented out the php4 and php5 tests. So there is no open_basedir and stuff for the admin interface. I hope that is ok. At least now it works.

/E