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 ?
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
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.