utilizing the php install outside of xampp?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

utilizing the php install outside of xampp?

Postby stacia » 25. August 2009 02:22

In the windows install, you can get away with using the xampp install instead of installing php itself. I'd like to do the same thing with Linux, but when I type php in a console, it prompts me to install it via apt. I'm sure there's an easy solution to this with symbolic links but I wanted to know if there was a "correct" way to do it...
stacia
 
Posts: 3
Joined: 25. August 2009 02:15

Re: utilizing the php install outside of xampp?

Postby Wiedmann » 25. August 2009 02:29

In the windows install, you can get away with using the xampp install

I'm not exactly sure what you mean with "get away"? And how are you doing this with the Windows XAMPP?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: utilizing the php install outside of xampp?

Postby stacia » 25. August 2009 03:37

Sorry, let me be more clear.

If you install the windows version of xampp (as far as I can remember), you can type "php" into a console and have php start up. This isn't really important, it's just an example of what I want to do.

After installing XAMPP on linux, when I type php I am prompted to install it from the repositories, even though I know I have a working version through XAMPP. I guess I will just try a symbolic link to the PHP binary, but I was wondernig if there was a better way to do this.
stacia
 
Posts: 3
Joined: 25. August 2009 02:15

Re: utilizing the php install outside of xampp?

Postby Wiedmann » 25. August 2009 10:58

If you install the windows version of xampp (as far as I can remember), you can type "php" into a console and have php start up.

That's only working for the XAMPP Shell. For normal Windows command prompts you must also call the PHP binary with the full path, like on Linux.

Well, the XAMPP Shell is just prepending the $PATH environment variable with the paths to some XAMPP tools. On Linux it's the same:
Just prepend /opt/lampp/bin to your $PATH environment variable.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 25 guests