Apache2

Hello, I have instal OpenSuse 11.1 and I wonder if I can use apache2 , and how can I configure it to work , I want to use in my home network , my goal is to learn Java Script and other and I would like to use OpenSuse
Thank you
Tipou

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sudo zypper in apache2

Good luck.

tipou wrote:
> Hello, I have instal OpenSuse 11.1 and I wonder if I can use apache2 ,
> and how can I configure it to work , I want to use in my home network ,
> my goal is to learn Java Script and other and I would like to use
> OpenSuse
> Thank you
> Tipou
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ9lfJAAoJEF+XTK08PnB5XscP/1sfTuFMc8ssnh9z/iI839po
AprTBIv2yxRbk/ObGsUVDCmUt2Tesx2sIN8j6U3BR4IxXfq5YsOIcMJep8R8X0bZ
GRotG4icKU95naPMyPBG+dMRFgcjB3oCNSN+NKMZ3sIi1ld1ioviRYWugHi/pumg
VBf9zFfdCk2R/Q0d+Z5K74BxIRUD/o6YrE9+i2A6kaSnktBDiXBbYXkjsTfpP3Oj
PHNu/WJr0L8o3Q9EEwrGUWbepruxmDMBvEGJ0kFNcURawHuK4i9KyhIzFY3QxKOx
WzJIGyuy3AYKeAd7LXkWGFx+4KiEOFMC50Yyr2cpWMRF+C61T8w/rlht9u7IP3xU
KFWargGMDz9KrnD84ssRv+SBokj2ITZR/dt3GUWB/6vTv9VLMJ64MzPFA8Qbq6Nk
/Hyewjff3+/BHjMarWnmJVhqJQ8HAYcsDlRuoHs7Ul1HKcOqemWRBvCxHmN4mWkS
JW+mYf3xK7PX7GjPeKvwo7KPb0AXZH+S74I8GI8WlEbjYAffT/ZuAdN/QGS9D3LY
iZyOKtRBSBVp25hjPz2Bzr+p6xr3pyGtoXf2I+gx7EC1DgPxQmkR2fTaDOFEUPE9
/gXqSBr/lSEQapJuQYvnkAhCufTYlB9yvWkZxMJCZ+OfADq1745D5A4dtLBK6GMV
MLVy6rIHFty/LALe1spN
=WYgW
-----END PGP SIGNATURE-----

Hi,

Apache is no problem to set up on opensuse. As ab@novell.com wrote you can install Apache from the command line using zypper or, if you prefer, you can do it using YAST. Then go to YAST -> System Services to start it. Finally you should place your html, js, css, php, pl, etc files in the ‘/srv/www/htdocs’ directory.

Have fun,
Barry.

Of course to place your files inside the directory /srv/www/htdocs first you need to change the owner for it with:


chown <yourUserName>:users /srv/www/htdocs

replace the <yourUserName> with your user name.
That’s all.

If you just want to learn better idea to use the public_html folder in your home.
Just go to Yast and and edit the settings in > network services > HTTP sever
Change the default root and directory to “/home/yourUserName/public_html” keep the quotes
If you don’t see HTTP server in yast install it , search for http in software and it will be the bottom of the list

You also need to set apache to autostart in Yast > System > runlevel

A good reason for using public_html is that your files will not be deleted if you upgrade. Though you will have to set the defaults in Yast again

Geoff