Apache & Myql on opensuse 11.4 - installed a LAMPP - where is the document root now

hello dear alll

just intalled a Apache & Myql on opensuse 11.4 -

Well in other wods i managed to installe a LAMPP - where is the document root now!?

Where to put the files - eg .for

a. Drupal
b. joomla

i cannot find the document-root!"? Should the stuff go there?!"

love to hear from you

grreetubgs

As you are apparently a novice, start by installing the* pattern* “Web and LAMP Server” with YaST.

Then you can use YaST >> Network Services >> HTTP Server
to manage basic configuration, install required modules, and set up Virtual Hosts

The default DocumentRoot iis /srv/www
I generally create a directory * /srv/www/vhosts.d* and then create further sub-directories for the VirtualHost DocumentRoots.
The VirtualHost Configuration files will be in* /etc/apache2/vhosts.d*. Again basic configuration, such as specifyinf DocumentRoot can be achieved via YaST.

Most webmasters/hosmasters would know what they were doing and install/configure this stuff using an ssh terminal, text editor (e.g. vim, emacs or maybe kate) and there personal scripts. I would suggest you practice with a simple site, phpinfo(), etc. before trying to configure a third party CMS.

hello many thanks eng-int

found all as you described

unfortunatley there is no writing access for the www-folder

well logged in superuser in the termianl i wanted to change this

chmod -Rc a +xxx /www

does not fit - the termial throws out errors

thx for any and all help here

You need to read man chmod.

Anyway if you were trying to give write permission to all to all files in* /srv/www* you seriously shouldn’t be doing this until you learn something about configuring web-sites and basic security.

As root I generally:
mkdir /srv/www/vhosts.d
chown <webmaster usrername> /srv/www/vhosts.d

/srv/www/vhosts.d should be readable and traversable by all, but only writeable by it’s owner (the user designated as the webmaster.

Joomla et al may have different permissions for its own sub-directories, hence one source of insecurity associated with these installations.

You will save yourself a lot of time if you do some reading on the subjects of general Gnu/Linux administration, Apache, PHP, and web administration before, or at concurrent with, trying to set up a complex system.

hello dear eng int

many thanks for the good answer!