• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

fastcgi safe mode

ZopfWare

Regular Pleskian
I originally upgraded to 9.2.1 using the CP update and all was fine with fastcgi. I then noticed in some other threads that you should update from the command line. I performed an update from the command line and it updated 3 packages:

There are 3 packages that need to be upgraded
in order to install the product.

....


===> configuring php5 using /usr/local/Zend/etc/php.ini file
Trying to set memory limit to 32M... done
Trying to add '.' to 'include_path'... nothing to be done
done
Trying to set 'short_open_tag' to On... done
Trying to set 'file_uploads' to On... done
Trying to set 'safe_mode' to On... done
Installing the package psa-coldfusion-support-9.2.1-cos5.build92090422.13.noarch (b 0x479cc70 source=0xcab360 P:1 R:5)
Installing the package psa-miva-9.2.1-cos5.build92090422.13.i386 (b 0x47d0fd0 source=0xcab360 P:179 R:15)
getsebool: SELinux is disabled
getsebool: SELinux is disabled
Trying to restart service httpd... httpd (pid 28155 28152 24662 20785 14581 10092 9801 5961 5616 5567 5563) is running...
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
done
Installing the package courier-imap-3.0.8-cos5.build92090422.13.x86_64 (t 0x47c9ab0 source=0xcab360 P:118 R:26)
Stopping Courier-IMAP server:
Stopping imap [ OK ]
Stopping imap-ssl [ OK ]
Stopping pop3 [ OK ]
Stopping pop3-ssl [ OK ]

Trying to register service xinetd... using /sbin/chkconfig
done
Trying to executing mail_restore to synchronize mail server settings and Plesk Database... WARNING: @attachments directory is big enough to disable delivery!
done
Installing the package psa-mail-driver-common-9.2.1-cos5.build92090422.13.x86_64 (t 0x47ca6f0 source=0xcab360 P:31 R:33)
mv: cannot stat `/var/qmail/control/spf*': No such file or directory
Trying to executing mail_restore to synchronize mail server settings and Plesk Database... WARNING: @attachments directory is big enough to disable delivery!
Number of arguments is invalid.
Number of arguments is invalid.
done
Installing the package psa-qmail-1:1.03-cos5.build92090422.13.x86_64 (b 0x47ce0d0 source=0xcab360 P:356 R:22)
Checking for the system groups and users necessary for Qmail...
Checking for the group 'qmail'...
Group 'qmail' already exists

Checking for the group 'nofiles'...
Group 'nofiles' already exists

Checking for the user 'alias'...
User 'alias' already exists
Changing shell for alias.
Shell not changed.

Checking for the user 'qmaild'...
User 'qmaild' already exists
Changing shell for qmaild.
Shell not changed.

Checking for the user 'qmaill'...
User 'qmaill' already exists
Changing shell for qmaill.
Shell not changed.

Checking for the user 'qmailp'...
User 'qmailp' already exists
Changing shell for qmailp.
Shell not changed.

Checking for the user 'qmailq'...
User 'qmailq' already exists
Changing shell for qmailq.
Shell not changed.

Checking for the user 'qmailr'...
User 'qmailr' already exists
Changing shell for qmailr.
Shell not changed.

Checking for the user 'qmails'...
User 'qmails' already exists
Changing shell for qmails.
Shell not changed.

Trying to stop service qmail... qmail-send (pid 10023) is running...
Stopping : done

Trying to reload service syslog... syslogd (pid 11022) is running...
klogd (pid 11025) is running...
Reloading syslogd...[ OK ]
Reloading klogd...[ OK ]
done
Trying to generate SSL certificates for TLS sessions... done
Trying to register service qmail... using /sbin/chkconfig
done
Trying to start service qmail... qmail-send is stopped
Starting qmail: [ OK ]
done
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Installing the package psa-qmail-rblsmtpd-0.70-cos5.build92090422.13.x86_64 (b 0x47bf300 source=0xcab360 P:2 R:6)
Installing the package psa-mail-qc-driver-1.0.0-cos5.build92090422.13.x86_64 (b 0x47ccd80 source=0xcab360 P:25 R:39)


===> Configuring Courier-IMAP server

Trying to register service xinetd... using /sbin/chkconfig
done
Trying to Configure Courier IMAP for Plesk-specific authentication... done
Installing the package psa-locale-de-DE-9.2.1-09042015.noarch (b 0x411a4b0 source=0xcab360 P:1585 R:3)
Installing the package psa-locale-es-ES-9.2.1-09042015.noarch (b 0x411a890 source=0xcab360 P:1593 R:3)
Installing the package psa-locale-fr-FR-9.2.1-09042015.noarch (b 0x4116ca0 source=0xcab360 P:1595 R:3)
The packages were installed successfully.

After this wierd update (note warnings) I am no longer able to run fastcgi. I have Dolphin running on a site running fastcgi and now it keeps telling me I haave safe mode enabled. This is depite having safemode disabled in the CP.

Anyone have any work around for this? seems that no matter what you do fastcgi runs with safe mode "On"
 
i don't know whether your problem is solved, I ran into the same problem. When having fastCGI enabled, the safe_mode setting in plesk is ignored completely. the setting that is applied is from /etc/php5/fastcgi/php.ini. So you can only change that globally.

Would be great if someone form parallels looked into this.
 
Hey Eddie,

I am running openSUSE 11.0 , maybe the config file structure is different there.

You can find out what php.ini file is used by looking into the output of phpinfo(); . If there is no safemode option present in that file, you should be able to create it, as no safemode option should mean the default, therefore off. (Correct me if I'm wrong.)

BUT that does not solve the core problem of course, I don't know whether by design or not, but Plesk 9.2.1 (up to date) on openSUSE 11.0 does ignore safemode settings for fastcgi websites.

Cheers!

Max
 
Back
Top