Results 1 to 4 of 4

Thread: Php installation

  1. #1
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Unhappy Php installation

    Hi , I have installed Linux FC3 On my system(I have installed it complete).
    Is apache and php installed by default.I don't know how to run a php script on it. I would apreciate any help.

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    I believed you can check with "rpm -q <packagename>" command.

    If not installed, you can do "yum install <packagename". In your case, it would be "yum install apache2".

    If you need further reading for how to use yum and stuff, check out here
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  3. #3
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758
    I know jack **** about php to be honest but to find installed software you need to do the following:

    rpm -qa | grep apache
    rpm -qa | php


    That bar is the pipe symbol, and is very hady in Linux. On my keyboard it is next to the bracket key (a shift + \ ).

    Alternatively, I would see if yumex runs on FC3 (should) and use that as a rather decent yum gui. And get yum setup too, that is a must.

  4. #4
    Associate
    Join Date
    Apr 2006
    Posts
    16
    Quote Originally Posted by omidkamangar
    Hi , I have installed Linux FC3 On my system(I have installed it complete).
    Is apache and php installed by default.I don't know how to run a php script on it. I would apreciate any help.
    They usually are.

    you run a php script by typing "php" at the command prompt

    Actually you will usually follow that with the name of your script, like:

    php index.php

    Most php scripts are designed to output html code essentially so you can quickly check if index.php is doing what you want by doing the following:

    php index.php > index.html

    which will write the output to index.html (and *overwrite* any existing index.html file - be careful). You can then open index.html in your favourite browser to see if it looks the way you expect, eg:

    firefox index.html

    That's how I test my php scripts before uploading them to the webhosting servers.

    Of course, it is probably best to set up your own apache & php servers on your localhost to test the whole thing live on your local machine but I haven't done this so can't help you there.

    James

Similar Threads

  1. PHP Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 8
    Last Post: 01-27-2005, 08:10 AM
  2. install and use the Recovery Console in Windows XP
    By regix in forum Windows - General Topics
    Replies: 14
    Last Post: 01-04-2005, 05:35 AM
  3. PHP on IIS Server
    By genesis in forum Windows - General Topics
    Replies: 8
    Last Post: 01-03-2005, 11:22 AM
  4. nfs install didnt work, why?
    By in forum Linux - General Topics
    Replies: 11
    Last Post: 05-09-2003, 04:30 PM
  5. PHP takes ASP as Number 1 SSSL
    By coltrane in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-04-2002, 03:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •