LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2016, 07:17 AM   #1
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Rep: Reputation: Disabled
need help with xvfb-run (xauth not found)


Hello,

I have a server setup with apache 2.4 and php-fpm 5.4. My application executes xvfb-run via php to get the screenshot of a website using CutyCapt. The problem is with php-fpm if I run the command I get an error like the following:

Code:
xvfb-run: error: xauth command not found
any ideas?

Last edited by imadsani; 05-12-2016 at 07:21 AM.
 
Old 05-13-2016, 01:52 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
In your script try define the path for "xvfb-run" and "CutyCapt". Check also if your an "apache" user.

Good luck.

m.m.
 
Old 05-13-2016, 03:37 AM   #3
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
I was able to fix this by commenting the lines where xvfb-run was checking for xauth. Turns out this issue is only on php-fpm. I now have another issue, I keep getting the following warnings which is breaking my application:

Code:
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib64/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib64/dri)
This is CentOS 7 btw

edit: fixed this as well, had to install mesa-dri-drivers

Last edited by imadsani; 05-13-2016 at 01:47 PM.
 
Old 06-02-2016, 10:27 AM   #4
igluck
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
Quote:
I was able to fix this by commenting the lines where xvfb-run was checking for xauth
How did you do this?????
 
Old 06-02-2016, 11:10 AM   #5
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
I followed this guy: http://vinh-tran.tumblr.com/post/509...un-error-xauth
 
Old 06-03-2016, 02:29 AM   #6
igluck
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
Thank you
Now it works
 
Old 10-18-2016, 01:48 PM   #7
Flavio Botelho
LQ Newbie
 
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
PHP-FPM cleans all environment variables, thus PATH needs to be populated for xvfb-run to find xauth:

You need to put:

Quote:
env[PATH] = '/usr/local/bin:/usr/bin:/bin'
In the www conf file of PHP-FPM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xvfb-run command not found Altiris Slackware 5 08-01-2015 04:09 PM
XVFB brownie_cookie Linux - Newbie 3 04-15-2011 08:38 AM
xvfb-run Command not found pravin_bluebird Fedora 4 09-22-2009 04:46 AM
Xvfb question ndo Linux - General 1 05-18-2007 10:49 AM
xauth: /lib/i686/libc.so.6: version 'GLIBC_2.3.2' not found yigald Linux - Newbie 0 02-20-2004 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration