View previous topic :: View next topic |
Author |
Message |
friedmud Apprentice
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Sun May 12, 2002 6:06 pm Post subject: PHP on the commandline.... |
|
|
I love this language.
I love it so much that I use it in place of perl and bash scripting. Problem is that the php ebuild only seems to build the apache module of php
Does anyone know of a way to get it to build the actual commandline php interpretor? Or is it built and I just can't find it??
Thanks for any help!
Derek |
|
Back to top |
|
|
steveD Guest
|
Posted: Sun May 12, 2002 8:17 pm Post subject: |
|
|
I built PHP (both comand line version and apache module) from tar.gz source. It's easier this way since I can control the built-options:
Here is my scripts:
1/ Copy php source (e.g php-4.1.2.tar.gz) to somewhere (e.g. /tmp)
E.g
cd /tmp
tar -zxf php-4.1.2.tar.gz
cd php-4.1.2
./configure --prefix=/usr --enable-ftp --enable-bcmath --with-pgsql=path-to-pgsql --with-mysql=path-to-mysql --with-config-file-path=/usr/lib
make
make install
Run ./configure --help to see all options.
After "make install", you need to rename the php.ini-dist and copy it to /usr/lib (you may need some changes in this file).
To build an apache module, just add the option --with-apxs=path-to-apache-folder.
Hope this help |
|
Back to top |
|
|
friedmud Apprentice
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Sun May 12, 2002 9:03 pm Post subject: Right.... |
|
|
Right...
I could do that if I want to (used to do it in Slack). I was wondering more about being able to do it with an Ebuild.
Oh, well, I guess I will just install the command line version from source - but continue to use the ebuild version for the apache module.
Thanks for your reply!
Derek |
|
Back to top |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Sun May 12, 2002 10:14 pm Post subject: |
|
|
Just hack up a copy of the mod_php ebuild. Copy and rename it. Take out the --with-apache line in the configure script, remove all the apache DSO related stuff, and ya should be set.
I made an ebuild that compiles apache+php+ssl+mod_log_mysql all statically, and it compiles the php command line interpreter. If you want it, let me know. _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
friedmud Apprentice
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Mon May 13, 2002 12:29 am Post subject: |
|
|
Thanks for the reply Nitro...
That is a great idea. Looks like I need to get my feet wet with python and ebuilding
Derek |
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon May 13, 2002 7:07 am Post subject: php |
|
|
Kyle,
Can you give me this ebuild script?
pacman _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
mfairchi n00b
Joined: 23 Apr 2002 Posts: 57 Location: Ventura, California
|
Posted: Thu May 16, 2002 7:17 pm Post subject: |
|
|
I'd like to see this script, too. |
|
Back to top |
|
|
|