openSUSE Forums > Network/Internet » run php website on localhost

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-Jul-2008, 12:58
Puzzled Penguin
 
Join Date: Jul 2008
Posts: 2
meetzah hasn't been rated much yet
Default run php website on localhost

Hello

I am new to linux. On win I used a program called EasyPHP that installed php+apache+mysql and allow me to go to http://localhost/ to see the websites I placed in a "www" folder on my hardisk.

I am using OpenSuse 11 now. Cand I do the same thing?
The ideea for me is to create my website on localhost and after it is completed I will pot it on the internet. I tried to go to http://localhost/ but is not working....

Thnak you,
Mihai.
Reply With Quote
  #2 (permalink)  
Old 14-Jul-2008, 13:12
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,913
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: run php website on localhost

First your question "is it possible". Answer: "of course". There are zillions of LAMP servers around and keeping them local is only a question of security configuration.

Of course simply going to http://localhost/ does not work. You have first to see tha Apache, PHP and MySQL are installed. Maybe they are already, else goto YaST > Software > Software Management. Choose Patterns in the upper left menu and find LAMP server. Select and goto Next or Finish or what it is called lower right.

Starting Apache is also done from YaST > System > Sytem Services (Runlevel). Search for Apache and switch on.

You also have to configure Apache, especialy as you want it only available from localhost. And you have to provide some contents else you will still see not much.

For getting MySQL on the run there is plenty of documentation on the MySQL website.

Same for PHP.

Got stuck somewhere, come back to the forums and make new questions. Welcome
__________________
Henk van Velden
Reply With Quote
Reply

Bookmarks

Tags
apache, hosting, localhost, mysql, php


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2