View previous topic :: View next topic |
Author |
Message |
stom2000 n00b
Joined: 12 Feb 2003 Posts: 2
|
Posted: Wed Feb 12, 2003 7:45 pm Post subject: php and java |
|
|
Hello,
I need to have java-support built into php (as apache module). I configured mod_php myself. It works fine, excpet for the java-support. The problem lies within php.ini. Does anyone know what settings I should give there. The Java-virtual machine I use is sun-jdk-1.4.1.01.
Greetings,
STom |
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Wed Feb 12, 2003 9:21 pm Post subject: |
|
|
Why didn't you just let portage install mod_php? |
|
Back to top |
|
|
stom2000 n00b
Joined: 12 Feb 2003 Posts: 2
|
Posted: Thu Feb 13, 2003 12:08 pm Post subject: |
|
|
I did let portage install mod_php. But then I had no java support. That's why I needed to configure it myself.
Greetings,
SToml |
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Thu Feb 13, 2003 3:58 pm Post subject: |
|
|
If you have java in your USE flag and have java installed and setup correctly via portage and java-config, then mod_php should be setup correctly. |
|
Back to top |
|
|
JeDi n00b
Joined: 10 Feb 2003 Posts: 42 Location: Belgium
|
Posted: Sat Feb 15, 2003 5:51 pm Post subject: |
|
|
All the java stuff seems to be commented away in the ebuild (both php and mod_php). I tried uncommenting it, but it still doesn't work (I still can't find php_java.jar anywhere on the system after emerging).
I guess I'll compile it by hand too.
Greetz,
JeDi _________________ Greetz,
JeDi |
|
Back to top |
|
|
djs Tux's lil' helper
Joined: 13 Dec 2002 Posts: 96 Location: CA
|
Posted: Fri Feb 21, 2003 9:20 am Post subject: JDK_HOME |
|
|
the problem is that the ebuild is using ${JDK_HOME} to find the javac and jar programs and it's not defined. add:
JDK_HOME=/opt/blackdown-jdk-1.3.1
to your /etc/make.conf and that fixes it.
That got me past the java support configure tests, but now i'm stuck at the pcntl support. it's actually telling me that fork() is not supported!
/djs |
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Fri Feb 21, 2003 2:16 pm Post subject: |
|
|
No the JDK that you installed will set the JDK_HOME variable. You need to run env-update after installing the JDK (you should run it after any emerge), then 'source /etc/profile' to pick up the new variables. |
|
Back to top |
|
|
djs Tux's lil' helper
Joined: 13 Dec 2002 Posts: 96 Location: CA
|
Posted: Fri Feb 21, 2003 6:19 pm Post subject: tried that |
|
|
ya, i tried env-update, but it didn't work. if i ran emerge info or tried emerging php again, it would still break at the Java Jar test. i added it to /etc/make.conf and voila, it passed the test.
That just gets you past the Java Jar test. You still have to disable the --enable-pcntl (process control) in the ebuild, or it'll fail there, too (absurdly, the test decides fork() isn't available on the os).
Then, you'll get stuck on this readline test though. another guy (on the alt.os.linux.*.gentoo) mentions having this same problems. These may be problems in the 4.3.1 release of php, rather than the ebuild or gentoo. Maybe the php guys aren't using the latest version of glibc as gentoo does, combined with gcc3.2.x.
/djs |
|
Back to top |
|
|
dliefbroer n00b
Joined: 10 Feb 2003 Posts: 18
|
Posted: Tue Mar 25, 2003 11:07 am Post subject: Strange enough |
|
|
Strange enough java get's enabled in php and then disabled in mod_php, anyone know why?
I'm using sun-jdk when installing php CLI first, then java get's placed in php.ini, then when I install mod_php, etc-update wants to turn java off again in the php.ini _________________ LINUX - Because rebooting is for adding new hardware |
|
Back to top |
|
|
djs Tux's lil' helper
Joined: 13 Dec 2002 Posts: 96 Location: CA
|
Posted: Tue Mar 25, 2003 5:51 pm Post subject: maybe one ebuild is better... |
|
|
it seems to me that we need to use USE variables to help a single ebuild for php decide whether to build the CLI, mod_php, or both. then there's one ebuild to maintain, and the build is the same for the CLI/cgi and module versions.
my $0.02
/djs |
|
Back to top |
|
|
|