Completely new install

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

User avatar
robertd
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jun 15, 2004 5:19 am
Location: Denver, Colorado, USA
Contact:

Completely new install

Postby robertd » Tue Jun 15, 2004 5:30 am

Hi all
I am prepared to admit it, I'm totally new to Linux/Apache/MySQL/PHP. And as such I'm realy looking forward to learning! :grin:

I have a machine I'm dedicating to the task. I've loaded Fedora Core 2 Linux with the basic options for a personal desktop build. My desire is to learn to be a serious website builder using PHP and MySQL. I currently build and manage plenty of static websites, but want to be able to offer more to my clients.

First question - should I reload this machine with say the server build of Fedora?

Second question - what should I load next and get running? Apache? MySQL? or PHP?

Third question - can you recommend any good books or websites to start my learning process?

Many thanks
Robert.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Re: Completely new install

Postby swirlee » Tue Jun 15, 2004 7:14 am

robertd wrote:First question - should I reload this machine with say the server build of Fedora?

Second question - what should I load next and get running? Apache? MySQL? or PHP?

Third question - can you recommend any good books or websites to start my learning process?


Robert, this is quite a big undertaking. Unfortunately I can't help you much with the Linux questions. Chosing a distribution is a big matter of personal taste. Since you're a newbie, though, I'd seriously recommend picking one of the more "user-friendly" distributions like Debian, SuSE or Mandrake. Look around for recent reviews to see what's easiest to manage for newbies.

Concerning Apache, MySQL, and PHP, if you play your cards right, your Linux distribution will have them preconfigured and preinstalled. If not, the usual sequence to install is Apache first, then PHP, and then MySQL. Read the install docs for each of these to decide your best course of action.

Concerning books and web sites, the best web sites are the official ones. http://httpd.apache.org/, http://www.php.net/, and http://www.mysql.com/. I can't recommend a good book, but if I were looking for one I'd just go to Amazon and read the reviews.

I do have one suggestion: Make sure you have a thorough understanding of the basic concepts of PHP before you even look at integrating MySQL with your PHP scripts. Read the PHP documentation all the way through (okay, you can skip some of the function reference, but you shouldn't skip the Array and String functions). Then set aside PHP and learn MySQL. You should know how to do a CREATE TABLE, SELECT (with JOINs), UPDATE, DELETE, and you should at least know what indexes, foreign keys, and normalization are, though starting out an intimate knowledge of those isn't necessary. Once you've got a handle on both PHP and MySQL on their own, you can start putting together database-driven sites. Don't buy a book that starts you on PHP+MySQL in the second chapter. You'd get it eventually, but you'd be in for a lot of frustration along the way.

Anyway, good luck!

User avatar
robertd
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jun 15, 2004 5:19 am
Location: Denver, Colorado, USA
Contact:

Postby robertd » Tue Jun 15, 2004 7:45 am

Thanks swirlee!

I'll get my Linux disks out again and see if I can install the others as part of the install and see what develops.

Thanks you again.
Robert.

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Tue Jun 15, 2004 9:22 pm

buddy

just go the Add/Remove Applications
Go to HTTP servers

Check everything related to Apache, MySQL and PgSQL if you want with PgSQL

User avatar
robertd
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jun 15, 2004 5:19 am
Location: Denver, Colorado, USA
Contact:

Postby robertd » Wed Jun 16, 2004 5:06 am

OK, I did that - installed Apache, PHP and MySQL ..... now, how do I get Apache to start on the server? After I installed it, I didn't see Apache running as a service or anything. Perhaps I'm missing something? :-o

Thanks
Robert.

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Thu Jun 17, 2004 1:43 am

as a root do this

Code: Select all

/etc/rc.d/init.d/httpd start

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Postby WiZARD » Thu Jun 17, 2004 2:29 am

robertd wrote:OK, I did that - installed Apache, PHP and MySQL ..... now, how do I get Apache to start on the server? After I installed it, I didn't see Apache running as a service or anything. Perhaps I'm missing something? :-o

Thanks
Robert.

use 'top' and look httpd process

User avatar
robertd
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jun 15, 2004 5:19 am
Location: Denver, Colorado, USA
Contact:

Postby robertd » Thu Jun 17, 2004 4:49 am

Thanks guys!

Apache is now running and I can create and view .html files in my /var/www/html directory.

Onto my next bit of a challenge, learning PHP. This part I think will be extremely rewarding.

Robert.


Return to “PHP Installation”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest