LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2005, 01:52 AM   #1
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
xinetd configuration


Hey all

I've just started playing round with xinetd. Basically what i'm trying to do is have a 'status' page which I can navigate to via a browser....

I created a php 'script' and then tried to setup my xinetd... This is what I have in my config script:

Code:
/etc/xinetd.d/php_info

service php_info
{
        socket_type     = stream
        protocol        = tcp
        port            = 8000
        user            = root
        wait            = no
        server          = /usr/local/bin/php_info
}
The script is just a bunch of echo statements (basically). I've restarted the xinetd service but I still can't get to it by typing http://skorpion:8000 - Does anyone know how this is done? We use similar stuff @ work but for some reason it's not working on my FC3 box
 
Old 02-17-2005, 02:16 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Not familiar with FC3 nor with xinetd. Also, I'm just using apache, php and mysql as an application programmer and not as an administrator, so I might be complete wrong.

I assume that you just want to see something in your browser. To do so, you need to have apache (or another web server) running) and not php.
In your browser, type the url http://localhost. Any usefull response?

PHP is just a parser. It should be called by apache, so your apache config should contain some references to php.

Once everything is configured correctly, you should be able to use something like http://localhost/mypage.php.

And that's how far my knowledge goes.
 
Old 02-17-2005, 02:36 AM   #3
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
I'm a Web Developer so I know exactly how PHP works
You can also use PHP in shell scripts though (instead of /bin/bash you use /usr/local/bin/php)...

The reason i'm using xinetd is because i'd like to know how it works, thanks for your reply anyway
 
Old 02-17-2005, 02:42 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally posted by AMMullan
I'm a Web Developer so I know exactly how PHP works
In that case you know a lot more about it than I do.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dovecot xinetd configuration twk Fedora 1 03-26-2005 09:15 AM
xinetd cootetom SUSE / openSUSE 5 02-20-2005 04:58 AM
who uses xinetd? Motown Linux - Distributions 0 07-07-2004 03:56 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM
xinetd gui10 Linux - Security 1 11-21-2001 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration