> Kevin, you the man. > I reread your reply and created a file index.php and it worked! I've got this > page displayed about php and it's great! Good job. > Now... does this mean I can start my 'Beginning PHP4' book with everything > ready to go? Yes you can now start creating php pages. > Also, will apache start every time I boot, or do I need to do something else? > Last, does this mean my pc (on cable modem) is vulnerable to invasion? Don't know. You can check by going to the rc directory for the run-level you boot into (3 or 5). cd /etc/rc3.d/ or cd /etc/rc5.d/ Look for a file that begins with S and ends with httpd (e.g. S56httpd) S means start the number tells linux in what order (e.g. S00 starts up before S45) on my system (RH7.2) I have: /etc/rc3.d/S80httpd /etc/rc5.d/S80httpd If they aren't there, then you will need to create them by using the ln command: cd /etc/rc3.d; ln -s ../init.d/httpd S80httpd cd /etc/rc5.d; ln -s ../init.d/httpd S80httpd WARNING!!!!! Unless you have upgraded apache to the latest available from RH, then you ARE vulnerable. Upgrade immediately to close the hole. > > Did you verify if apache is running? > > > > /etc/rc.d/init.d/httpd status > > > > Apache has to be running to serve pages. Also, you have to create the php > > page (hence having you open it with vi). > > > > > Oops. There is no file index.php. I was looking into index.html, which > > > if fed into the browser via 127.0.0.1/index.html generates the same error > > > message. > > > > > > On Sunday 15 September 2002 10:07 am, Mark Berkwitt wrote: > > > > First, I tried using 127.0.0.1/index.php in the browser and I received > > > > the following error: > > > > An error occured while loading http://127.0.0.1/index.php: > > > > > > > > Could not connect to host 127.0.0.1 > > > > > > > > I suppose I should note that I have k12LTSP (Redhat) installed with 2 > > > > nics where one goes to my cable modem and the other is set to a local > > > > 192. etc, should this matter, which I doubt. > > > > > > > > I've scanned the file /var/www/html/index.php as you suggested and I > > > > don't see the entry 'phpinfo()'. I thought since I had checked the > > > > entry to install 'server' packages that apache would be running. > > > > Is there a test to see if apache is running, let alone if it's running > > > > with php support? > > > > > > > > On Sunday 15 September 2002 08:10 am, Kevin Brown wrote: > > > > > What distro are you running? RedHat hasn't had a mod_php module > > > > > since RH5.2. PHP 4.1.2 is PHP4. To see if it is working with your > > > > > apache server: > > > > > > > > > > In your web root folder (most likely /var/www/html for RH7.3) > > > > > vi index.php > > > > > > > > > > > > > > > Now if apache is running then point your browser to the machine > > > > > > > > > > 127.0.0.1/index.php > > > > > > > > > > and see what comes up. > > > > > > > > > > > What's the difference between mod_php4, mod_php, and php packages? > > > > > > As directed on page 30 of 'Beginning PHP4' I ran $rpm -q mod_php4 > > > > > > to which I was told 'no such package installed. I do, however, > > > > > > have php-4.1.2-7 installed. > > > > > > Do I still need mod_php4? I found it at rpmfind.net. In fact I > > > > > > found all three above 'variations' of php-- php, mod_php and > > > > > > mod_php4. I wish I knew what each was used for to understand what I > > > > > > still need to install. > > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > > > > To subscribe, unsubscribe, or to change you mail settings: > > > > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > > > To subscribe, unsubscribe, or to change you mail settings: > > > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > > To subscribe, unsubscribe, or to change you mail settings: > > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > To subscribe, unsubscribe, or to change you mail settings: > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss