LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2001, 03:10 AM   #1
enzo250gto
Member
 
Registered: Oct 2001
Location: Tokyo, Japan
Distribution: Slackware
Posts: 105

Rep: Reputation: 15
apache


I want to test php pages on my linux box before I upload them to my web server. However, at the same time I want the box to be hidden from the world as it is now and not have apache doing this. I notice in my startup list that appache is running something called httpd. Can I test my php pages with this if I set up mysql. If so how? I have Slackware 8.0 so mysql is already installed. thanks for the help.
 
Old 11-28-2001, 02:58 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
right now if you type in the IP you have into a browser, it'll load that default installation apache page. Your web server is running, and is world readable. I assume you already knew this, but I just wanted to make sure just in case. Sorry if that sounded kinda pedantic.

You're going to need the php-mods for apache to build your testbed, but knowing how Slack8 default installs, they're probably already in there. If you don't want the webserver to be publicly viewable at all, I think you can bind it to the loopback address, but its probably just easiest to have it listen to some bizarre port number like 30000 or something way past where 3l33t script kiddies usually scan. Its all really a matter of changing your /etc/apache/httpd.conf file to your liking and killing and restarting the daemon.

grepping through mine I found:

fin@horatio:/etc/apache$ grep php httpd.conf
# http://www.php.net) will typically use:
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
# ==> mod_php configuration settings <==
#Include /etc/apache/mod_php.conf

This will probably be pretty easy, although I've never played with php before, so I may be full of it.

Luck,

Finegan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:52 PM.

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