The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sun Java Platform, Standard Edition 1.5.0_15 (Java 5 branch) iBot Software Releases - RSS News 0 03-06-2008 02:50 PM
Enable hpet support in unix KAKAMOMO UNIX for Dummies Questions & Answers 0 02-21-2008 09:03 AM
Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME iBot UNIX and Linux RSS News 0 02-01-2008 02:00 PM
Apache on Solaris10 configured with loadable module support? kavera SUN Solaris 2 10-17-2007 11:15 PM
How do I enable 3D support and change the bass and treble in SuSE 9.2? CTroxtell21 Linux 3 11-13-2004 12:15 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-28-2003
Registered User
 

Join Date: May 2002
Posts: 21
Question enable php & java support in apache

Hello guys, I am in desperate need for this information:

I have an apache server running on linux (suse 8.1)

I am unable to run php or java code on it, and I wonder what is wrong.

for the php case, the browser asks me how he should treat the file, namely download it to my local drive or execute it with another program.


FOr the java case, I am simply returned with the following internal error, and this even for the most simple of java/CGI scripts.:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@myserver.dom and inform them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.


N.B I have checked the httpd.conf file, and there is no LoadModule php4_Module line, what does this mean ?
how can I check that php support is installed on my suse linux 8.1 ?
how can I configure php to run in apache ?
and the same for java ?



Many thanks for some pointers.
Forum Sponsor
  #2  
Old 09-28-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
you can install those patches to apache in yast, just go to yast and search for apache, everything you want can be installed via the package manager.

if you want to compile in the mod_php and java your self you can go here:
  #3  
Old 09-28-2003
Registered User
 

Join Date: May 2002
Posts: 21
php & java for apache

hi guys,

I think that I did not explain this well...

php and java support (all of the suse packages) have been installed, and thanks to yast2 they should also be configured to run with apache....


I know that java works cuz in konqueror, i can view java code from pages on the web
I feel that php works cuz I copied a php page from the web, and can read it as a standalone file


my problem is that apache is refusing to recognize either php or java code

please help
  #4  
Old 09-28-2003
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
Make sure you have mod_php loaded in the Apache configuration file (I forgot where in /etc suse places it). There should be a LoadModule line for this module. The RPM installation should have done this for you already but you need to check.

As for Java, you have to get your terminology right. Java applets and applications, once compiled with javac into bytecode form, are downloaded to the viewer's browser and executed on viewer's machine. I think you mean something like JSP (Java Server Pages) which are executed on server. To execute JSP, servlets, JavaBeans or the like you should install Tomcat on your server.
  #5  
Old 09-29-2003
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
............

hiho,
after downloading the php module, i had to fill in these lines on apache by myself:

apache 1.3.28, solaris 9 SPARC

LoadModule php4_module /opt/csw/apache/libexec/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

i think the java_module will be activated the same way

greetings Preßy
  #6  
Old 10-01-2003
Registered User
 

Join Date: May 2002
Posts: 21
php & java on apache

Many thanks guys

this was most useful :-)

cheers
Google The UNIX and Linux Forums
Closed Thread

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0