I have seen many questions about Running Linux Commands using PHP, but my problem is different. I am using a shared hosting Linux server, and I want to install a package called Poppler-utils using PHP code, because i have no access to the Linux command-line. First I tried to figure out the Distro using cat /proc/version and this is the output:
Linux version 2.6.32-604.30.3.lve1.3.63.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Sun Sep 27 06:34:10 EDT 2015
So I assumed it's Redhat Distro based on the output above. So I tried to install the Poppler-Utils Package using:
exec('yum install poppler-utils',$buffer);
echo implode($buffer);
As mentioned in this article.
install pdftotext under RedHat / RHEL / Fedora / CentOS Linux
pdftotext is installed using poppler-utils package under various Linux distributions:
# yum install poppler-utilsOR use the following under Debian / Ubuntu Linux
$ sudo apt-get install poppler-utils
But nothing happens at all. So how can I install Poppler-utils in /usr/local/bin/ ?
Any help is appreciated!
execaccess..yum installrequires admin/root/sudo access. It's like on windows when you create a limited user, you can do stuff but not install applications.