Welcome Guest ( Log In | Register )

Bump Topic Topic Closed RSS Feed

Outline · [ Standard ] · Linear+

 Webserver, What is really required ?

views
     
TSSeeD
post Feb 20 2006, 12:10 PM, updated 20y ago

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


I am trying to make a website you see.
So i try to host it with my PC first.
I've searched around and i though PHP would be enough, but then does Apache, MySQL and PHP comes together and i have to install them all ?
silverhawk
post Feb 20 2006, 12:59 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


There are packages that include everything you need like XAMPP

Or you can install them seperately, its up to you. Packages are easier to install, but i recommend seperate installations so you learn some things along the way.
TSSeeD
post Feb 20 2006, 01:08 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


So you require apache, MySQL, PHP and pearl for a normal webserver ?

NOTE: planning to install 1 by 1

This post has been edited by SeeD: Feb 20 2006, 01:17 PM
goldfries
post Feb 20 2006, 01:20 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(SeeD @ Feb 20 2006, 01:08 PM)
So you require apache, MySQL, PHP and pearl for a normal webserver ?

NOTE:  planning to install 1 by 1
*
a normal web page would require only Apache. (pure html)

if you require php scripting, then PHP is needed.

if you require MySQL databse, then MySQL is needed.

TSSeeD
post Feb 20 2006, 01:24 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


Then what are perl for ?
silverhawk
post Feb 20 2006, 01:45 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


PERL is mostly used in CGI scripts. Though CGI scripts don't always necessarily use PERL.

If you want to use PERL scripts, you will need to install the PERL intepreter too.
TSSeeD
post Feb 20 2006, 02:54 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


Well i started installing apache with this tutorial
http://www.ricocheting.com/server/apache.html

i've changed the setting for step 5 and 6 and then the whole apache wont start anymore. Whats the problem ?
But if i change back to the default settings it'll work again.

Anyone tell me why ?
goldfries
post Feb 20 2006, 02:58 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




when you change to something like
DocumentRoot "E:/htdocs"

this means you have to create a 'htdocs' directory (a.k.a folder) in your E drive and put your files in there cos by changing the documentroot folder and such, you're telling Apache "Hey, when you run please look for files in the folder."
TSSeeD
post Feb 20 2006, 03:04 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


So you mean when i create the public.html file
in the same folder i need htdocs folder ??
goldfries
post Feb 20 2006, 03:07 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(SeeD @ Feb 20 2006, 03:04 PM)
So you mean when i create the public.html file
in the same folder i need htdocs folder ??
*
put it in the folder you specified in steps 5 and 6. smile.gif
TSSeeD
post Feb 20 2006, 03:19 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


Oh i know where i did wrong
its public_html not public.html
stupid me doh.gif
TSSeeD
post Feb 20 2006, 03:38 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


Here's the problem again ...
i've done apache and abit of php ...
but when i create the test.php to test whether the PHP is working ...
i got downloads when i open that with IE ... whats the problem ?

http://www.ricocheting.com/server/php.html
silverhawk
post Feb 20 2006, 04:12 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


read here: http://www.php.net/manual/en/install.windows.php

You will have to add some lines to your apache config file so that it knows what to do with php files.
goldfries
post Feb 20 2006, 04:20 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(SeeD @ Feb 20 2006, 03:38 PM)
Here's the problem again ...
i've done apache and abit of php ...
but when i create the test.php to test whether the PHP is working ...
i got downloads when i open that with IE ... whats the problem ?

http://www.ricocheting.com/server/php.html
*
as long as test.php with <? phpinfo(); ?> doesn't work - you've made a mistake some where in the configuration.
TSSeeD
post Feb 20 2006, 04:26 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


The apache can start ... problem is when i open the .php testing file, it occured a download window for me to download.
Well i read somewhere and it says

QUOTE
If, instead of a page being displayed, you are prompted to download the file, PHP is not installed on your server and you should either serach for a new web host or ask your current host to install PHP.


How to install PHP ? i just unzipped it somwhere ..
goldfries
post Feb 20 2006, 04:32 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




you posted the link there yourself. did you follow the steps given?

read the link from Silverhawk too if you have the time.

you can't just UNZIP it somewhere and expect Apache to be a psychic you know.

you'll have to configure Apache to know that when a PHP file is called, it will fine the file and use the interpreter to read the PHP file and pass the information to the web-browser. smile.gif
abubin
post Feb 20 2006, 04:41 PM

10k Club
********
All Stars
10,429 posts

Joined: Jan 2003



you do know what when you sign up for webhosting, you don't need to install apache+php+mysql+perl? It will be already installed. You can just proceed with building your website.
silverhawk
post Feb 20 2006, 05:46 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


But he's not signing up for webhosting, he's doing it on his own computer
goldfries is right you know... apache aint psychic tongue.gif

read the link i provided, all the steps you need to follow are there.
KLKS
post Feb 20 2006, 06:03 PM

Getting Started
**
Junior Member
292 posts

Joined: Jan 2003


my solution to this would be VMWARE+Linux(CentOS) with all these installed, its faster and easier (to install and integrate Apache,MySQL,PHP,Perl) and dosent clutter up my main computer. plus its not exposed to the internet so less risks (can be configured to have port forwarding).

i've had problems making apache&php work with mysql in windows so thats why i opted for linux (everything can be selected during install time).
TSSeeD
post Feb 20 2006, 06:26 PM

I Love Bubbles
*******
Senior Member
6,728 posts

Joined: Jan 2003
From: YOUR HOUSE


QUOTE(abubin @ Feb 20 2006, 04:41 PM)
you do know what when you sign up for webhosting, you don't need to install apache+php+mysql+perl? It will be already installed. You can just proceed with building your website.
*
You learn only making a website for that.

I myself would want to get another PC just for the webhosting but i just cant. No money. laugh.gif Thats why im experimenting with my PC first.

OKay ill read the links first...

2 Pages  1 2 >Top
Topic ClosedOptions
 

Change to:
| Lo-Fi Version
0.0160sec    0.91    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 10:28 PM