Outline ·
[ Standard ] ·
Linear+
Webserver, What is really required ?
|
TSSeeD
|
Feb 20 2006, 12:10 PM, updated 20y ago
|
|
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
|
Feb 20 2006, 12:59 PM
|
Eyes on Target
|
There are packages that include everything you need like XAMPPOr 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
|
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
This post has been edited by SeeD: Feb 20 2006, 01:17 PM
|
|
|
|
|
|
goldfries
|
Feb 20 2006, 01:20 PM
|
40K Club
|
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
|
Feb 20 2006, 01:24 PM
|
|
Then what are perl for ?
|
|
|
|
|
|
silverhawk
|
Feb 20 2006, 01:45 PM
|
Eyes on Target
|
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
|
Feb 20 2006, 02:54 PM
|
|
Well i started installing apache with this tutorial http://www.ricocheting.com/server/apache.htmli'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
|
Feb 20 2006, 02:58 PM
|
40K Club
|
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
|
Feb 20 2006, 03:04 PM
|
|
So you mean when i create the public.html file in the same folder i need htdocs folder ??
|
|
|
|
|
|
goldfries
|
Feb 20 2006, 03:07 PM
|
40K Club
|
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.
|
|
|
|
|
|
TSSeeD
|
Feb 20 2006, 03:19 PM
|
|
Oh i know where i did wrong its public_html not public.html stupid me
|
|
|
|
|
|
TSSeeD
|
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
|
|
|
|
|
|
silverhawk
|
Feb 20 2006, 04:12 PM
|
Eyes on Target
|
read here: http://www.php.net/manual/en/install.windows.phpYou will have to add some lines to your apache config file so that it knows what to do with php files.
|
|
|
|
|
|
goldfries
|
Feb 20 2006, 04:20 PM
|
40K Club
|
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.htmlas long as test.php with <? phpinfo(); ?> doesn't work - you've made a mistake some where in the configuration.
|
|
|
|
|
|
TSSeeD
|
Feb 20 2006, 04:26 PM
|
|
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
|
Feb 20 2006, 04:32 PM
|
40K Club
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
|
silverhawk
|
Feb 20 2006, 05:46 PM
|
Eyes on Target
|
But he's not signing up for webhosting, he's doing it on his own computer goldfries is right you know... apache aint psychic  read the link i provided, all the steps you need to follow are there.
|
|
|
|
|
|
KLKS
|
Feb 20 2006, 06:03 PM
|
Getting Started

|
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
|
Feb 20 2006, 06:26 PM
|
|
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.  Thats why im experimenting with my PC first. OKay ill read the links first...
|
|
|
|
|