How can I configure apache 2 in ~/public_html on OpenSUSE 12.1

Hello dear Linux-Experts - good day!

I have OpenSUSE 12.1 installed. I tried a lot to get
the lampp on the system workin.

i set it up by YAST - (with the sheme-installations) how to get it working. How to configure the apache?

How can I set up apache2 in ~/public_html?

btw: i have that file found:

    # UserDir: The name of the directory that is appended onto a user's home
    # directory if a ~user request is received.
    <IfModule mod_userdir.c>
    	# Note that the name of the user directory ("public_html") cannot easily be
    	# changed here, since it is a compile time setting. The apache package
    	# would have to be rebuilt. You could work around by deleting
    	# /usr/sbin/suexec, but then all scripts from the directories would be
    	# executed with the UID of the webserver.
    	# To rebuild apache with another setting you need to change the 
    	# %userdir define in the spec file. 
    	# not every user's directory should be visible:
    	UserDir disabled root
    	# to enable UserDir only for a certain set of users, use this instead:
    	#UserDir disabled
    	#UserDir enabled user1 user2
    	# the UserDir directive is actually used inside the virtual hosts, to 
    	# have more control
    	#UserDir public_html
    	<Directory /home/*/public_html>
    		AllowOverride FileInfo AuthConfig Limit Indexes
    		Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    			Order allow,deny
    			Allow from all
    			Order deny,allow
    			Deny from all

can i do some thing here?


By default, in openSUSE, your web server runs on /public_html, as you can see in your file.

So, what’s the problem with your web server ?

And also have you checked the userdir modue is loaded?

apache2ctl -M |grep userdir
[Mon Feb 27 08:10:49 2012] [warn] module rewrite_module is already
loaded, skipping userdir_module (shared)
Syntax OK

If not the check via YaST /etc/sysconfig editor and add userdir to
the modules APACHE_MODULES section.

Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 1 day 11:15, 2 users, load average: 0.12, 0.09, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

hello dear Malcom - hello Daax

many thanks for the ideas and advices. GREAT to hear from you!

i tested this and got the results.

linux-r4qe:/home/martin # apache2ctl -M |grep userdir
httpd2: Syntax error on line 188 of /etc/apache2/httpd.conf: Could not open configuration file /etc/apache2/sysconfig.d/include.conf: No such file or directory
linux-r4qe:/home/martin # 

well i have to do the installation according this advice!:

If not the check via YaST /etc/sysconfig editor and add userdir to the modules APACHE_MODULES section.

ahhh - i understand. i do have to do this via YAST Question: Should i do a** search for the usedir !?** and afterwards install it!?
additional: Does it find “its way” to the** APACHE_MODULES-Section**

Love to hear from you