This is how i set up apache for suse:
To access the http-server with a graphical interface:
go to start -> system -> control center -> Network services -> HTTP Server.
You can enable/disable the server here.
In a konsole (as root): manually starts the apache server; stop for stopping; restart for restarting.
To view the default-page in the root of your server enter this in a browser: http://localhost/
Do you get this error :?
httpd2: could not open document config file /etc/apache2/sysconfig.d/include.conf
Then edit /etc/apache2/httpd.conf with an # so you get this line:
# Include /etc/apache2/sysconfig.d/include.conf
You can do this through: start -> system -> file manager -> file manager - Super user mode, browse to the file and edit it with kate.
Next we need to configure apache to point to the right directories.
The default setting can be found at:
So it serves its pages from /srv/www/htdocs
We leave this directory setting as it is and use symlinks to get to the proper directories under home/user
We want symlinks so we edit this part so it looks like:
# Configure the DocumentRoot
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important. Please see
# for more information.
# Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
# Controls who can get stuff from this server.
Allow from all
Next we make the symlinks to link to our homedir where the pages are put.
Go to your homedir and drag the pages-dir to /srv/www/htdocs and choose link.
You might need to set the permissions to user: wwwrun , group: users.
The serverlog can be found at:
/edit: please note that i am running it like this as a test-server. It could be safer not to use symlinks since they might lead to unwanted dirs ...