LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-05-2006, 06:03 PM   #1
mkelly77
LQ Newbie
 
Registered: May 2006
Location: Redford, MI
Distribution: Debian
Posts: 2

Rep: Reputation: 0
AMP and PHP


I'm trying to install freePBX (amp) on a debian Sarge machine. But when I run the ./install_amp i get a
./install_amp: /usr/bin/php: bad interpreter:
I know that someone else posted this problem, however I do have PHP installed, but it isn't in that location. Is there a way to change the reference?

Thanks Matt.
 
Old 05-05-2006, 08:38 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
try:
Code:
$ chmod +x install_amp
and try again. Does it work now?
You may also try:
Code:
$ php install_amp
I think the problem is that the file you are trying to run is not executable.
 
Old 05-05-2006, 10:32 PM   #3
mkelly77
LQ Newbie
 
Registered: May 2006
Location: Redford, MI
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: 0
I tried your suggestions, but neither of them work. after doing the chmod, then the ./install_amp I recieved the same error, and when I try the php install_amp it says php command not found.

Thanks Matt
 
Old 05-05-2006, 11:04 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
OK, so use the full path to PHP. You say it is in a different location, so use
Code:
$ /<path>/<to>/php install_amp
I suggest adding the path to PHP to your $PATH so you don't have this problem in the future.
 
  


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
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 12:18 PM
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 08:41 AM
php-devel & PHP extensions EHCanadian Mandriva 0 06-23-2005 07:06 PM
PHP & MySQL Count on PHP Gerardoj Programming 1 06-01-2004 11:43 AM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 06:31 PM

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

All times are GMT -5. The time now is 05:52 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