Click to See Complete Forum and Search --> : "no job control"


Mister E
11-04-2002, 11:40 PM
Hello all! My first steps in the greater world of PHP - Apache - MySQL.
I have installed PHP 4.2.3, along with mod_php 4.2.3, and php-common 4.2.3.
I ran a php test script which is supposed to check whether PHP is working properly, and the answer I got was: "no job control"

The reason I ran this test is because Apache (1.3.26) is not sending *.php files to the php engine.
Also, Apache is complaining that it can't load: mod_php.so
I can't really blame Apache for this since mod_php.so is nowheres to be found in my box (Linux, 2.4.18)

At this point, I'm wondering if I couldn't just fish out a mod_php.so file from somewhere and
stuff it where Apache wants it.
Would that work ?
I wonder why this file doesn't exist.

Thanks for any advice.

bbaassiri
11-05-2002, 12:31 AM
don;t forget to tell apache to acccept anything in .php

ScriptAlias /php/ "/path to ur php dir/"

AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Action application/x-httpd-php "path to php executable"

Mister E
11-05-2002, 12:48 AM
Thanks for the fast reply bbaassiri.

I did the AddType thingy, but not the Action thingy.

I have no idea what the "path to php executable" is!

When Apache served me raw php code instead of having the file parsed, I went back to reading some documentation where it was suggested to add 3 LoadModule and 3 AddModule directives.


I tried that and now Apache won't even start without mod_php.so


So... go figgurrrr!
[edit]
I also did not do the ScriptAlias thingy.
[edit again]
Why do I get "no job control" when I run the test script instead of
"PHP script interpreter is OK" ?
(I run this test script from the console, not from Apache)

bbaassiri
11-05-2002, 01:11 AM
im not sure, i have never seen no job control

largo
11-05-2002, 03:00 PM
How did you install php? It looks like a stand alone install. What was your configure line?

-m.

Mister E
11-06-2002, 10:51 PM
Hi!

"How did you install php"
By way of an RPM

"What was your configure line"
Sorry, I have no idea what a configure line is.

I think the problem is that the documentation I read was for php3, and the configurations I did in Apache's httpd.conf file are conflicting with php4

I will undo what I did.

Does any one have any suggestions as to what is the right way to test PHP to see if it's functioning properly ?

Thanks