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

  • Linux named / bind how to dump, view and clear the cache!
  • Centos 6 / 7 / 8 How To Change Default nameservers in /etc/resolv.conf when using DHCP / dhclient
  • Adobe Acrobat Reader for Linux to use and view XFA Fillable Forms
  • Debian Linux Mint Ubuntu iptables save and restore settings automatically onboot and reboot
  • Why SMART is not smart at all and doesn't properly predict disk errors that cause a kernel panic or crash
  • scp: ambiguous target error and solution
  • VirtualBox How To Add iSCSI Storage using VBoxManage
  • iSCSI on Centos 7 Configuration and Setup Guide for Initiator and Target
  • Python and BeautifulSoup4's BS4's Decompose Method To Remove Unwanted Inner Tags
  • httpd AH00534: httpd: Configuration error: No MPM loaded. solution
  • bash script to remove modules from httpd.conf that are not actually installed
  • bash scripting how to create a function
  • Centos 7 PHP MySQL Not Working Solution
  • Bash How To Cut or Split Natively And Get The LAST Field
  • Bash Script How To Manipulate Text/Strings By Searchig and Replacing Natively
  • How Does Cisco CUCM (Cisco Unified Communication Manager) Work?
  • What DNS Options Does Active Directory Offer in Windows Server 2008,2012,2016 ?
  • syntax error, unexpected T_SL in PHP Solution
  • grep regular expression match number range between specific numbers
  • bash how to print out lines of text within a range from the first occurrence