Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-12-2006, 01:46 AM   #1
LQ Newbie
Registered: Mar 2006
Distribution: fc4
Posts: 9

Rep: Reputation: 0

i know tht php,mysql,apache services are there in fc4.. but donno how to configure 'em.. how to run a basic php code in fc4???
Old 03-12-2006, 02:27 AM   #2
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
This tutorial will help you run PHP scripts from the command line.

Then, find out where your Apache DocumentRoot is. Do this by either doing:
$ sudo updatedb
$ sudo locate httpd.conf
Then open httpd.conf from the location you just found in your favourite text editor, and scroll down to the "DocumentRoot" line - that will tell you where you can put all your website's files. Note: you may need to add the filename 'index.php' to a line in the httpd.conf alongside 'index.html' and possibly some others - you'll know when you find it.

I advise you to buy yourself a good book about PHP and MySQL on Linux, as you do not seem to know how to use them. 'locate apachectl' and then running '/path/to/apachectl start' will start the Apache server, use the 'mysql' command to run and configure MySQL, and use the PHP command to run scripts from the CLI.

There should already be an Apache PHP module installed - if not, read up on how to add it on the [uirl=]PHP[/url] website.

If this seems a bit daunting, remove PHP, MySQL and Apache and install XAMPP - that'll do it all for you




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
Apache+php+mysql andrew007 Slackware 4 05-16-2005 11:50 AM
Apache, PHP and MySQL Shr00mBoXx Slackware 1 06-13-2004 04:16 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
apache,mysql,php johnyy Linux - Software 1 09-14-2003 01:59 AM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

All times are GMT -5. The time now is 05:41 AM.

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