I use Ubuntu 13.10 and Lampp.
When I try to run sudo php artisan job-daemon
I get the above message. But when I run php artisan job-daemon
it works just fine.
php -m
gives me the following:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mssql
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sybase_ct
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
which php
gives me the following:
/opt/lampp/bin/php
Why do I get the message missing then?
I ran
johnnemo@johnnemo:~$ sudo nano .bashhrc
I added
export PATH=$PATH:/opt/lampp/bin/php
but still no luck....Any ideas..?
$PATH and sudo $PATH :
sudo: /opt/lampp/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: command not found
johnnemo@johnnemo:~$ $PATH
bash: /opt/lampp/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
sudo which php
as the problem only exists whensudo
was on the original command. This means it is probably a user related issue. – Julian Stirling Jan 01 '14 at 19:20sudo apt-get install phpmyadmin
will install phpmyadmin. Almost everything you're using LAMPP for comes built in a package. – Marco Ceppi Jan 01 '14 at 20:09