PHP cannot access /usr/bin/openssl

PHP cannot access /usr/bin/openssl

I have verified the username that runs the process is able to access /usr/bin/openssl and it does exist but the PHP script is saying it doesn't exist:
[code:1:1fd0f3abbe]
if (!file_exists($OPENSSL)) {
//echo "ERROR: OPENSSL $OPENSSL not foundn";
}[/code:1:1fd0f3abbe]

I don't get it


I can clearly see the contents of /usr/bin by using the PHP system function:

[code:1:43219bf65e] echo system('ls /usr/bin',$retval);[/code:1:43219bf65e]

[quote:43219bf65e]GET HEAD HtmlConverter Mail POST X11 [ a2p ab addftinfo addr2line ant antRun appletviewer apropos ar as aspell aspell-import audit2allow authconfig awk bashbug-32 bc berkeley_db_svc build-classpath build-classpath-directory build-jar-repository bunzip2 bwm-ng bzcat bzcmp bzdiff bzgrep bzip2 bzip2recover bzless bzmore c2ph c89 c99 cal captoinfo catchsegv cc chage chainsaw chattr chcon check-binary-files checkpolicy chfn chsh cjpeg cksum clean-binary-files clear clusterdb cmp col colcrt colrm column comm compress couriertls cpan cpp create-jar-links createdb createlang createuser crontab csplit curl cut cytune db_archive db_checkpoint db_deadlock db_dump db_dump185 db_load db_printlog db_recover db_stat db_upgrade db_verify dbiprof dbiproxy dbus-cleanup-sockets dbus-daemon-1 dbus-glib-tool dbus-monitor dbus-send dc dc_client dc_server dc_snoop dc_test ddate decode-dimms.pl decode-edid.pl decode-vaio.pl decode-xeon.pl deliverquota diff diff-jars diff3 dig dir dircolors dirname djpeg dprofpp dropdb droplang dropuser dtomcat5 du enc2xs encode_keychange env eqn eqn2graph eu-elflint eu-nm eu-readelf eu-size eu-strip ex execstack expand expr extcheck factor faillog fax2ps fax2tiff fc-cache fc-list fdformat fetchmail file find find-jar find2perl findsmb finger fixproc floppy fmt fold formail free ftp ftpcount ftpdctl ftptop ftpwho funzip gawk gcc gcov gencat gendiff genpolusers geqn getconf getent getopt gif2tiff gindxbib glookbib gmake gneqn gnroff gpasswd gpg gpg-error gpgsplit gpgv gpic gpm-root gprof grefer grn grodvi groff groffer grolbp grolj4 grops grotty groups gsoelim gtbl gtroff gunzip gzexe gzip h2ph h2xs hal-get-property hal-set-property head hesinfo hexdump hltest host hostid hoststat hpftodit htdbm htdigest htpasswd htsslpass i386-redhat-linux-gcc iconv id idlj idn ifstat imapd indxbib info infocmp infokey infotocap install instmodsh iostat ipcrm ipcs ipf-mod.pl isamchk isamlog isosize ispell jar jarsigner jasper5 jasper5_classpath.sh java javac javadoc javah javap jdb join jpegtran jspc5 jvmjar jwhois keytool kill killall last lastb lastlog lchfn lchsh ld ldd lddlibc4 less lessecho lesskey lesspipe.sh libnetcfg lkbib locale localedef locate lockfile logfactor5 logger logname logresolve look lookbib lsattr lshal lspgpot lwp-download lwp-mirror lwp-request lwp-rget lynx m4 mail-files maildiracl maildirkw maildirmake mailq.sendmail mailshar mailstat make makemap makewhatis man man2html manpath mcookie md5sum mesg mev mkcramfs mkfifo mksmbpasswd.sh mouse-test mp2bug mp2doc mpstat msql2mysql my_print_defaults myisam_ftdump myisamchk myisamlog myisampack mysql mysql_config mysql_convert_table_format mysql_create_system_tables mysql_explain_log mysql_find_rows mysql_fix_extensions mysql_fix_privilege_tables mysql_install_db mysql_secure_installation mysql_setpermission mysql_tableinfo mysql_tzinfo_to_sql mysql_waitpid mysql_zap mysqlaccess mysqladmin mysqlbinlog mysqlbug mysqlcheck mysqld_multi mysqld_safe mysqldump mysqldumpslow mysqlhotcopy mysqlimport mysqlmanager mysqlmanager-pwgen mysqlmanagerc mysqlshow mysqltest namei native2ascii neqn net newaliases.sendmail newgrp newrole nl nm nmap nmblookup nohup nroff nslookup nsupdate ntlm_auth ntpstat objcopy objdump od openssl orbd pack_isam pal2rgb passwd paste pathchk pcregrep pcretest pdbedit pear perl perl5.8.5 perlbug perlcc perldoc perlivp perror pfbtops pftp pg_dump pg_dumpall pg_encoding pg_id pg_restore pgrep php pic pic2graph piconv pinky pkill pl2pm pmap pod2html pod2latex pod2man pod2text pod2usage podchecker podselect policytool pop3d post-grohtml ppm2tiff pr pre-grohtml printenv printf procmail profiles protoize prove psed pspell-config psql pstree pstree.x11 pstruct ptx purgestat python python2 python2.3 quota ranlib ras2tiff raw raw2tiff rdjpgcom readelf readlink rebuild-jar-repository refer remsync rename renice replace reset resetall resolve_stack_dump resolveip rev rgb2ycbcr rkhunter rmail.sendmail rmic rmid rmiregistry rngtest rpcclient rpcgen rpm2cpio rpmdb rpmquery rpmsign rpmverify rsync run-parts run-with-aspell runcon rvim s2p sa-learn sa-update sar scp screen script sdiff sensors seq serialver servertool setfdprm setsid setterm setup sftp sg sha1sum shar shred size skill slabtop slocate slogin smbcacls smbclient smbcontrol smbcquotas smbmnt smbmount smbpasswd smbprint smbspool smbstatus smbtar smbtree smbumount snice snmpbulkget snmpbulkwalk snmpconf snmpdelta snmpdf snmpget snmpgetnext snmpinform snmpnetstat snmpset snmpstatus snmptable snmptest snmptranslate snmptrap snmpusm snmpvacm snmpwalk soelim spamassassin spamc spamd spell splain split sprof sqlite3 ssh ssh-add ssh-agent ssh-keygen ssh-keyscan sslswamp stat strings strip sudo sum tac tack tail tailf talk tbl tdbbackup tdbdump tdbtool tee telnet test testparm testprns tfmtodit thumbnail tic tiff2bw tiff2pdf tiff2ps tiff2rgba tiffcmp tiffcp tiffdither tiffdump tiffinfo tiffmedian tiffset tiffsplit time tload tnameserv toe tomcat5 top tput tr traptoemail troff tset tsort tty tzselect ucd5820stat udevinfo udevtest ul uncompress unexpand uniq unixbench unprotoize unshar unzip unzipsfx updatedb uptime urlgrabber users utmpdump uudecode uuencode uuidgen vacuumdb vdir vim vimdiff vimtutor vmstat w wall watch wbinfo wc webalizer webazolver wget whatis whereis which whiptail who whoami whois word-list-compress write wrjpgcom xargs xml-resolver xml-xparse xml-xread xmlcatalog xmllint xmlwf xsltproc xsubpp xxd yes yum yum-arch zcmp zdiff zegrep zfgrep zforce zgrep zipgrep zipinfo zless zmore znew zsoelim zsoelim here it comes encrypted[/quote:43219bf65e]


It works fine, my guess is that this is a bug in PHP that probably only looks within the main sites directory



Tags:

php, usr, bin, opensslphp, openssli, verified, username, openssl, doesn, fd, abbe, file_exists, echo, quot, foundn, iti, contents, bf, ls, retval, htmlconverter, ab, addftinfo, addr, antrun, appletviewer, apropos, ar, aspell, import, audit, authconfig, awk, bashbug, bc, berkeley_db_svc, classpath, directory, jar, repository, bunzip, bwm, ng, bzcat, bzcmp, bzdiff, bzgrep, bzip, bzless, bzmore, ph, cal, captoinfo, catchsegv, cc, chage, chainsaw, chattr, chcon, binary, checkpolicy, chfn, chsh, cjpeg, cksum, clusterdb, cmp, col, colcrt, colrm, column, comm, compress, couriertls, cpan, cpp, links, createdb, createlang, createuser, crontab, csplit, curl, cytune, db_archive, db_checkpoint, db_deadlock, db_dump, db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify, dbiprof, dbiproxy, dbus, cleanup, sockets, daemon, glib, dc, dc_client, dc_server, dc_snoop, dc_test, ddate, decode, dimms, pl, edid, vaio, xeon, deliverquota, diff, jars, dir, dircolors, dirname, djpeg, dprofpp, dropdb, droplang, dropuser, dtomcat, enc, xs, encode_keychange, env, eqn, graph, eu, elflint, nm, readelf, execstack, expand, expr, extcheck, factor, faillog, ps, tiff, fc, cache, fdformat, fetchmail, perl, findsmb, fixproc, floppy, fmt, formail, ftp, ftpcount, ftpdctl, ftptop, ftpwho, funzip, gawk, gcc, gcov, gencat, gendiff, genpolusers, geqn, getconf, getent, getopt, gif, gindxbib, glookbib, gmake, gneqn, gnroff, gpasswd, gpg, gpgsplit, gpgv, gpic, gpm, gprof, grefer, grn, grodvi, groff, groffer, grolbp, grolj, grops, grotty, groups, gsoelim, gtbl, gtroff, gunzip, gzexe, gzip, hesinfo, hexdump, hltest, hostid, hoststat, hpftodit, htdbm, htdigest, htpasswd, htsslpass, redhat, linux, iconv, idlj, idn, ifstat, imapd, indxbib, info, infocmp, infokey, infotocap, install, instmodsh, iostat, ipcrm, ipcs, ipf, mod, isamchk, isamlog, isosize, ispell, jarsigner, jasper, _classpath, sh, javac, javadoc, javah, javap, jdb, jpegtran, jspc, jvmjar, jwhois, keytool, killall, lastb, lastlog, lchfn, lchsh, ld, ldd, lddlibc, lessecho, lesskey, lesspipe, libnetcfg, lkbib, locale, localedef, locate, lockfile, logfactor, logger, logname, logresolve, lookbib, lsattr, lshal, lspgpot, lwp, download, rget, lynx, maildiracl, maildirkw, maildirmake, mailq, sendmail, mailshar, mailstat, makemap, makewhatis, html, manpath, mcookie, md, sum, mesg, mev, mkcramfs, mkfifo, mksmbpasswd, mp, mpstat, msql, mysql, my_print_defaults, myisam_ftdump, myisamchk, myisamlog, myisampack, mysql_config, mysql_convert_table_format, mysql_create_system_tables, mysql_explain_log, mysql_find_rows, mysql_fix_extensions, mysql_fix_privilege_tables, mysql_install_db, mysql_secure_installation, mysql_setpermission, mysql_tableinfo, mysql_tzinfo_to_sql, mysql_waitpid, mysql_zap, mysqlaccess, mysqladmin, mysqlbinlog, mysqlbug, mysqlcheck, mysqld_multi, mysqld_safe, mysqldump, mysqldumpslow, mysqlhotcopy, mysqlimport, mysqlmanager, pwgen, mysqlmanagerc, mysqlshow, mysqltest, namei, native, ascii, neqn, newaliases, newgrp, newrole, nl, nmap, nmblookup, nohup, nroff, nslookup, nsupdate, ntlm_auth, ntpstat, objcopy, objdump, od, orbd, pack_isam, rgb, passwd, pathchk, pcregrep, pcretest, pdbedit, pear, perlbug, perlcc, perldoc, perlivp, perror, pfbtops, pftp, pg_dump, pg_dumpall, pg_encoding, pg_id, pg_restore, pgrep, pic, piconv, pinky, pkill, pm, pmap, pod, latex, text, usage, podchecker, podselect, policytool, grohtml, ppm, pr, printenv, printf, procmail, profiles, protoize, psed, pspell, config, psql, pstree, pstruct, ptx, purgestat, python, quota, ranlib, ras, rdjpgcom, readlink, rebuild, refer, remsync, rename, renice, reset, resetall, resolve_stack_dump, resolveip, rev, ycbcr, rkhunter, rmail, rmic, rmid, rmiregistry, rngtest, rpcclient, rpcgen, rpm, cpio, rpmdb, rpmquery, rpmsign, rpmverify, rsync, runcon, rvim, sa, update, sar, scp, sdiff, sensors, seq, serialver, servertool, setfdprm, setsid, setterm, sftp, sg, sha, shar, shred, skill, slabtop, slocate, slogin, smbcacls, smbclient, smbcontrol, smbcquotas, smbmnt, smbmount, smbpasswd, smbprint, smbspool, smbstatus, smbtar, smbtree, smbumount, snice, snmpbulkget, snmpbulkwalk, snmpconf, snmpdelta, snmpdf, snmpget, snmpgetnext, snmpinform, snmpnetstat, snmpset, snmpstatus, snmptable, snmptest, snmptranslate, snmptrap, snmpusm, snmpvacm, snmpwalk, soelim, spamassassin, spamc, spamd, splain, sprof, sqlite, ssh, keygen, keyscan, sslswamp, stat, sudo, tac, tack, tailf, tbl, tdbbackup, tdbdump, tdbtool, tee, telnet, testparm, testprns, tfmtodit, thumbnail, tic, bw, pdf, rgba, tiffcmp, tiffcp, tiffdither, tiffdump, tiffinfo, tiffmedian, tiffset, tiffsplit, tload, tnameserv, tomcat, tput, tr, traptoemail, troff, tset, tsort, tty, tzselect, ucd, udevinfo, udevtest, ul, uncompress, unexpand, uniq, unixbench, unprotoize, unshar, unzip, unzipsfx, updatedb, uptime, urlgrabber, users, utmpdump, uudecode, uuencode, uuidgen, vacuumdb, vdir, vim, vimdiff, vimtutor, vmstat, wbinfo, wc, webalizer, webazolver, wget, whatis, whereis, whiptail, whoami, whois, wrjpgcom, xargs, xml, resolver, xparse, xread, xmlcatalog, xmllint, xmlwf, xsltproc, xsubpp, xxd, yum, zcmp, zdiff, zegrep, zfgrep, zforce, zgrep, zipgrep, zipinfo, zless, zmore, znew, zsoelim, encrypted, sites,

Latest Articles

  • CentOS 6 impossible to compile a newer libguestfs
  • chroot
  • How To Get Started on Ubuntu with gpt-2 OpenAI Text Prediction
  • Remove cloud-init in your VM
  • QEMU-KVM KVM Command Line Practical Guide
  • Linux How To Change NIC Name to eth0 instead of enps33 or enp0s25
  • virt-resize: error: libguestfs error: could not create appliance through libvirt.
  • Asterisk Does Not Retry When Authentication Fails
  • Linux Debian Ubuntu How To Install PEPPER Faster and Latest Adobe Flash Player in Firefox
  • How To Speed Up Linux Ubuntu and Debian Based Computers By Improving CPU Performance and Changing the CPU Governor
  • Convert data or file to base64 on a single line
  • Linux Mint Ubuntu Debian radeon slow 2D performance issues radeon_dp_aux_transfer_native: 158 callbacks suppressed
  • mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array.
  • How To Install NextCloud on Centos 7 and Centos 8
  • AH01630: client denied by server configuration:
  • ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL
  • ZTE Camera Cannot Work unable to connect to camera. Camera has been disabled becaue of security policies or is being used by other apps
  • QEMU KVM how to boot off a physical CD/DVD/BDROM Drive
  • How To Install OpenProject on Centos 7 Step-by-Step Guide
  • Ubuntu Debian Linux Cannot Install Wine Solution - wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu14.2) but it is not installable wine1.4 : Depends: wine1.6 but it is not going to be installed