• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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