To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2002, 11:40 PM   #1
Mister E
Junior Member
 
Join Date: Nov 2002
Location: BC, Canada
Posts: 3
"no job control"

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.
Mister E is offline   Reply With Quote
Old 11-05-2002, 12:31 AM   #2
bbaassiri
Senior Member
 
bbaassiri's Avatar
 
Join Date: Oct 2002
Location: canada
Posts: 165
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"
bbaassiri is offline   Reply With Quote
Old 11-05-2002, 12:48 AM   #3
Mister E
Junior Member
 
Join Date: Nov 2002
Location: BC, Canada
Posts: 3
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)

Last edited by Mister E; 11-05-2002 at 12:57 AM.
Mister E is offline   Reply With Quote
Old 11-05-2002, 01:11 AM   #4
bbaassiri
Senior Member
 
bbaassiri's Avatar
 
Join Date: Oct 2002
Location: canada
Posts: 165
im not sure, i have never seen no job control
bbaassiri is offline   Reply With Quote
Old 11-05-2002, 03:00 PM   #5
largo
Senior Member
 
Join Date: Aug 2002
Posts: 173
How did you install php? It looks like a stand alone install. What was your configure line?

-m.
largo is offline   Reply With Quote
Old 11-06-2002, 10:51 PM   #6
Mister E
Junior Member
 
Join Date: Nov 2002
Location: BC, Canada
Posts: 3
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
Mister E is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:13 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.