• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Can no longer execute php handler

stefanb

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.64 Update #1
Hello,

I'm running Plesk Obsidian 18.0.64 Update #1 Web Host Edition and have a Nextcloud environment running within this environment for the last 3-4 weeks.

The preview generator has worked perfectly up until now, yet it has stopped working. The Nextcloud has no errors in the logs, that I can see.

I had a scheduled task that I used in Plesk initially to thumbnail everything and this command line worked, I then disabled it.

(/opt/plesk/php/8.3/bin/php -f 'httpdocs/occ' -- 'preview:generate-all')

I went back to the scheduled task and tried to run it, instead. However the command line no longer works and the error says it cannot find the php file. I've looked at the permissions and the root is the owner and group owner. Is this correct or should it be the plesk user group? Everything else is working correctly.

Any advice why the php would be executed from the scheduled tasks?

Task "(/opt/plesk/php/8.3/bin/php -f 'httpdocs/occ' -- 'preview:generate-all') " completed with error in 0 seconds, output:
-: line 1: /opt/plesk/php/8.3/bin/php: No such file or directory


Many Thanks,
Stefan.
 
I think I've just cracked this.

Took some messing around, I found a similar article on the Internet. I've recreated the task (in Tools and Settings) with a user who has root access and played with the command line.

sudo -U <subscriber username> /opt/plesk/php/8.3/bin/php -f '/var/www/vhosts/<domain>/httpdocs/occ' -- 'preview:generate-all'

Ran the above line from Putty and it's executing, so this line should work from Task Scheduler as well as they were both giving same error messages.
 
Back
Top