LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2003, 09:21 PM   #1
men$an
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Rep: Reputation: 0
PHP on mandrake 9.1


hey there all,

i have mandrake 9.1 and am trying to run a php script that someone wrote. however, when i try to run from command line like:

>php bot.php

i get:

php: command not found

i tried the 'urpmi php' to see if that would fix it, but it said that everything was installed.

also, there is another exectuable script that i need to run, but it also gives me a php error.

what is going on? they ran fine on redhat 9

thanks,
men$an

Last edited by men$an; 04-20-2003 at 09:23 PM.
 
Old 04-20-2003, 09:23 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
check if php is in your PATH variable, man bash for more info 'bout PATH
 
Old 04-20-2003, 09:45 PM   #3
men$an
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Original Poster
Rep: Reputation: 0
well i just learned about PATH, looks nice.

but when i do:

>whereis php

i only get a /etc/php and a /usr/lib/php

both of which are directories and neither of which has a command available.

any ideas?

thanks,
men$an
 
Old 04-20-2003, 09:48 PM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
hmm thought it was perl.
I'm oviously wrong, sorry
 
Old 04-20-2003, 10:03 PM   #5
men$an
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Original Poster
Rep: Reputation: 0
hmmm.....ok well thanks for the help.

i wonder if it has anything to do with the fact that mandrake 9.1 has apache2?

hmmm..... help.....plz


thanks.
men$an
 
Old 04-21-2003, 12:01 PM   #6
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Posts: 131

Rep: Reputation: 15
urpmi php-cli

That should install the command line interface. When done, you should have a php binary in /usr/bin
 
Old 04-21-2003, 02:36 PM   #7
men$an
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Original Poster
Rep: Reputation: 0
OMG!!!!

THANK YOU!!!!!!!!!!!!!!!!!!

YAY!!!!!!!!!!!!!

thanks


-men$an
 
Old 04-21-2003, 05:55 PM   #8
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Posts: 131

Rep: Reputation: 15
Cool -- be sure to click people's Affero link & rate how usefull their help was
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where is my php.ini on Mandrake 9.1?? Arjan_S Linux - Software 7 09-01-2004 06:30 PM
Firebird+PHP+Mandrake 10 z_darius Mandriva 0 05-24-2004 11:11 AM
Problems with PHP in Mandrake 9.1 nvargas Mandriva 4 10-26-2003 05:54 PM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 07:50 AM
php and apache on Mandrake 8.2 scatcat Linux - Newbie 3 05-31-2002 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration