LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-18-2005, 04:39 AM   #1
minignaz
LQ Newbie
 
Registered: Oct 2005
Distribution: SuSe
Posts: 2

Rep: Reputation: 0
Web Server With SuSe - Need Help


Hi there,

Im new here and new to linux, I was going to post this in the newbies section, but felt it was a bit more specific than what else was in there.

A bit of background I think,

I got the SuSe version of Linux installed onto a machine I plan to use to host my own site and a few others at a later time.

What I would like to know is how I can set it up to do this hosting, that pages will be in PHP and MySQL so I know I will need to get them, I also assume I will need to get apache aswell, is this all correct?

The questions I have are these:

What do I do with them once I have them installed?
Is there an order to installing them?
Where do I put the web pages (e.g. in Windows they would go in the wwwroot folder and setup through IIS, but where in Linux?)?

Im sorry if this is the wrong place for this, its just Im wanting to know this information specific for SuSe.

Thank you for you help in advance.
 
Old 10-18-2005, 05:18 AM   #2
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
Re: Web Server With SuSe - Need Help

Its as easy as one-two-three .. well almost : here is a perfect guide for you : Installing lamp stack on suse
It covers installing Apache, PHP and MySQL . Follow the guide and I'm quite sure you'll get everything working in no time.
REMEMBER to open port for http server in Firewall.

I don't know what version you are using and in what format(cd/dvd), but that guide has been done for suse 9.1.
If you have newer version of suse its even easyer.
In suse10 differences were in mysql usergroup and mysql folder rights handling. Some of those tasks had already been done by default.

Note that phpMyAdmin might be missing from the version you are using. Fortunately the guide also covers the aspect of getting it from net if its not available.

Default path for webpages is /srv/www/htdocs/

Notice that also users have their public_html directories shared in apache default config.
By this I mean that if you put page (lets say something.html) in /home/username/public_html/something.html
it is available for everybody in address : http://localhost/~username/something.html
 
Old 10-18-2005, 05:51 AM   #3
klodoma
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
First of all, what version of Suse did you installed? It is not very relevant if you installed one of 9.x versions !? maybe 10?

First of all: with Yast you install apache, php, php mod for mysql.

The apache configuration directory is: /etc/apache2/ .
The main config file: default-server.conf is where you make all the aliases.

DocumentRoot "/www/http/home/" >>>> this is the root directory.

Alias example:
Alias /forum "/www/http/phpBB2/"
<Directory "/www/http/phpBB2/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

The www root directory should be owned by wwwrun user. That is a system user.

Php configuration file is in: /etc/php.ini. It starts automatically with apache if installed.

You start apache with /etc/init.d/apache2 start
You start mysql with /etc/init.d/mysql start

...


That's in big lines...

Hope this helps.
Andy.
 
Old 10-18-2005, 07:10 AM   #4
minignaz
LQ Newbie
 
Registered: Oct 2005
Distribution: SuSe
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the replies, Im having a look at the tutorial just now, Im using version 9.1 so it should be easy enough to do.


Thanks for the help.
 
Old 10-18-2005, 07:54 AM   #5
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
While this article is actually for Windows the same principles apply to Linux.

Well worth a read in any case.

http://www.devarticles.com/c/a/Apach...under_Windows/

Cheers

-K
 
Old 10-18-2005, 08:16 AM   #6
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
One more thing about php.
I would recommend installing these extra php packages, they'll come handy sooner or later

php-session - enable session functions in php
php-pear - extensions and small applications for php
php-gd - library for manipulating images
 
  


Reply



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
suse 9.3 web server Help shane200_ SUSE / openSUSE 0 05-18-2005 11:07 AM
Suse or Fedora for just Web Server fr600 Linux - Newbie 5 04-13-2005 09:51 PM
SUSE 9.1 Web Server Hangs with out any errors cdabb Linux - Enterprise 4 02-21-2005 11:18 AM
Creating a Web Server out of SuSE 9.1 Tuul SUSE / openSUSE 2 01-25-2005 09:12 AM
My Linux Web Server (SuSE 9.0) Gear_freak2000 Linux - Newbie 2 02-06-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:01 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
Open Source Consulting | Domain Registration