• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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