enable php & java support in apache


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers enable php & java support in apache
# 1  
Old 09-28-2003
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.
# 2  
Old 09-28-2003
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
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-29-2003
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
............

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
php & java on apache

Many thanks guys

this was most useful :-)

cheers
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

How to enable x-client-ip address in apache webserver LogFormat?

how to enable x-client-ip address in apache webserver LogFormat i tried below option, but no luck... 1. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 2. LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy 3.... (0 Replies)
Discussion started by: raghur77
0 Replies

2. Red Hat

Runtime Error Enable user directory apache

Hi I am exactly according to this link CentOS 6 - Apache httpd - Enable Userdir : Server World I Enabled userDirectory Server version: Apache/2.2.15 CentOS release 6.8 (Final) But Iget this Error Forbidden You don't have permission to access /~mn/index.html on this server Goal... (2 Replies)
Discussion started by: mnnn
2 Replies

3. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

4. Shell Programming and Scripting

Problem with call of Java Programm & return code handling & output to several streams.

Hello Everybody, thanks in advance for spending some time in my problem. My problem is this: I want to call a java-Programm out of my shell skript, check if die return code is right, and split the output to the normal output and into a file. The following code doesn't work right, because in... (2 Replies)
Discussion started by: danifunny
2 Replies

5. UNIX for Dummies Questions & Answers

Enable hpet support in unix

Hi, I am new to this forum. I have a machine, the BIOS doesn't offer a choice to enable/disable HPET, I know in Linux, the hpet.c file can be modified to turn on and off the hpet, I am looking for a way to do this in UNIX as well. Is there already code existed for the modification? If not can... (0 Replies)
Discussion started by: KAKAMOMO
0 Replies

6. Solaris

Apache on Solaris10 configured with loadable module support?

I have Apache 2 webserver as delivered with the Solaris 10 installation. How to verify if Apache is configured with loadable module support? Or if needs to be recompiled with loadable module support. (2 Replies)
Discussion started by: kavera
2 Replies

7. Shell Programming and Scripting

Enable & disable cronjob

Hi All, I am new to cronjob and need some guidance on this. 1) How do i enable a cronjob ? Can it be done by "crontab mycronfile" or "crontab -e mycronfile" 2) How can i disable the cronjob? Can deleting of the "mycronfile" disable the cron or do i need to perform "crontab -r mycronfile"... (7 Replies)
Discussion started by: Raynon
7 Replies

8. Shell Programming and Scripting

Books on PHP & APACHE

Can anybody please suggest me a good book to learn PHP and Apache. I want to use it for general programming and espeacially as front end tool for INFORMIX RDBMS. The book should guide me from the basics, as I am a beginer for PHP & Apache on SUSE Linux 9.0. (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies

9. SuSE

How do I enable 3D support and change the bass and treble in SuSE 9.2?

I have a ATI Radeon 9600 Pro gfx card and was trying to figure out how to enable 3d support in linux. I had downloaded the ATI driver before and installed it and I ended up having to reinstall linux because it told me I was supposed to do something to some file that I didn't do so it restarted and... (3 Replies)
Discussion started by: CTroxtell21
3 Replies

10. UNIX for Dummies Questions & Answers

PHP & Apache & MySQL install how-to ?

how do i install php & mysql with apache on suse linux ??? apache was installed and configured when i installed linux. all its files are in different folders. e.g http files in usr/local/httpd/htdocs/ and its configs are in etc/httpd/ so how do i install php and get it to work with apache and... (4 Replies)
Discussion started by: perleo
4 Replies
Login or Register to Ask a Question