LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

Rep: Reputation: 0
php,mysql,apache?????


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???
thanks
sulinux
 
Old 03-12-2006, 03:27 AM   #2
J_K9
Member
 
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:
Code:
$ 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=http://php.net]PHP[/url] website.

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

Cheers,

-jk
 
  


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


All times are GMT -5. The time now is 09:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration