Results 1 to 10 of 10

Thread: LAMPP: file-permissions causes terrific errors in Server

  1. #1

    Default LAMPP: file-permissions causes terrific errors in Server

    hello dear Suse-friends,

    well last weekend i set up a LAMPP-System on my openSuse 11.4 system.

    Well the lampp includes the Apache 2.2, a MySQL-Server, PHP 5.3x and phpMyadmin. I Well the LAMP is allready up and running. I also have installed a CMS - a joomla Version 1.7.3 - the installaton went smoothly and was no problem at all.

    But afterwards i wanted to install some extensions and templates. Note this is the critical point in each installation of Joomla. Now the system needs to get the files via a FTP-process.

    And believe it or not - this fails every time i try it! i get the error - cant move the files
    Well i guess that this might have to do with the Apache / or the whole Lampp-System. What do you think!!?

    Perhaps this is an issue of permissions!? See the folder where i installed the joomla!

    mkdir /srv/www/basic


    Well the installation of the joomla 1.7.3 went nice - and was installing smoothly - true vanilla.

    srv/www/htdocs/basic

    BTW see the paths

    PHP Code:
    public $unicodeslugs '0';
        public 
    $feed_limit '10';
        public 
    $log_path '/srv/www/htdocs/basic/logs';
        public 
    $tmp_path '/srv/www/htdocs/basic/tmp';
        public 
    $lifetime '15';
        public 
    $session_handler 'database';

    well the issue that arises - when i try to install some extensions i got the error - can t move files!

    Well i am a bit unsure where this issue has its origin. What causes this error!?

    look forward to hear from you!

    dilbertone

  2. #2
    Join Date
    Jul 2009
    Location
    Montreal, Québec
    Posts
    833

    Default Re : LAMPP: file-permissions causes terrific errors in Server

    Hi,

    You have a permission error.

    In openSUSE, when you install a LAMP solution, usually you run your server in this folder : ~/username/public_html.

    Since you installed your LAMP in srv/www, those folders belong to root. So you should change the ownership of those folders like that in terminal :

    Code:
    su -
    password
    your_hostname:/home/the_user_to_give_ownership # chown -R the_user_to_give_ownership:users /srv/www

  3. #3

    Default Re: Re : LAMPP: file-permissions causes terrific errors in Server

    hello dear DaaX

    many many thanks for the answer and the hints - guess that you are right. I will try out all you advice and finally come back and report all the findings.

    meanwhile many many thanks

    greetings dilbert!

  4. #4

    Default Re: Re : LAMPP: file-permissions causes terrific errors in Server

    hello dear DaaX - again me!

    again me - and a big big sorry for answering again - i am pretty new to Lamp /p and therefore i apologize for all kind of newbie-questions.


    well i have heard that Permissions - LAMPP files need to belong to nobody:root

    duhhh - what does that mean!?

    but see what i have here - (in the somewhat misconfigured lamp - where the www is in srv/www/htdocs/ [basic]

    Therefore some additional questions that arise out of some findings: well i need your assistance here: see what i have here

    PHP Code:
    linux-vi17:/srv # ls -l 
    insgesamt 8
    drwxr
    -xr-x 2 root   root  4096 18. Feb 2011  ftp
    drwxrwxrwx 7 martin users 4096  3. Jan 14
    :50 www
    linux
    -vi17:/srv 
    should i change this recoursively to

    a. the root
    b. the user martin

    with full access rights to do all .-...
    By the way .- we see interesting things.

    i have the ftp and the www-folder that is used by different users. well that must lead to terrible misbehaviour - does nt it?

    i guess that this only can cause chaos at the highest level?!

    what do you sugest here!? i can imagine that it would be great to unify the both -

    either to make
    a. martin as the owner of the ftp or
    b. root make the owner of the www


    am i wrong here!?

    love to hear from you

    greetings
    dilbertone
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  5. #5
    Join Date
    Jul 2009
    Location
    Montreal, Québec
    Posts
    833

    Default Re : Re: Re : LAMPP: file-permissions causes terrific errors in Server

    Hi,

    Apply the same command that I gave you for the /ftp folder also. Sorry, I forgot to mention it.

  6. #6

    Default Re: Re : Re: Re : LAMPP: file-permissions causes terrific errors in Server

    hello DaaX many many thanks

    greetings dilbert
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  7. #7

    Default Re: Re : Re: Re : LAMPP: file-permissions causes terrific errors in Server

    i have installed and tried to configure the Apache 2 in OpenSuse 12.1

    Well i have a bunch of questions;

    the first one; Is this the document-root? /home/username/public_html

    is this correct!? see the page 3 /or 4 of the configuration guide of the HTTP server.
    Code:
    Document Root: "/srv/www/htdocs"
    Directory; "/srv/www/htdocs"
    Alias: /icons/ "/usr/share/apache2/icons/"
    Directory: "/usr/share/apache2/icons"
    Script Alias: /cgi-bin/ "/srv/www/cgi-bin/"
    Directory: "/srv/www/cgi-bin"
    mod_userdir.c: empty here nothing is filled in ;-)
    include: /etc/apache2/conf.d/*.conf
    include: /etc/apache2/conf.d/apache2-manual?conf
    Servername linux-r4qe
    E-Mail des Servername: root@linux-r4qe
    While running the apache-configuring tool I have on page 5/5

    Code:
    listening on
    all, port 80
    Standardhost
    in 
    SSL deaktiviert
    Virtuelle Hosts
    linux-r4qe in "/srv/www/htdocs", SSL deaktiviert
    Is Apache installed and configured correctly?

    As you might find this question a bit silly or newbie-like, here are some explanations: I have installed the LAMP some months ago - but in a wrong path.

    Code:
    public $unicodeslugs = '0';
        public $feed_limit = '10';
        public $log_path = '/srv/www/htdocs/basic/logs';
        public $tmp_path = '/srv/www/htdocs/basic/tmp';
        public $lifetime = '15';
        public $session_handler = 'database';
    }
    I always thougth that the path should be this one here:
    Code:
    /home/username/public_html

    love to hear from you

    greetings
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: LAMPP: file-permissions causes terrific errors in Server

    On 2012-03-08 22:06, dilbertone wrote:
    > is this correct!? see the page 3 /or 4 of the configuration guide of
    > the HTTP server.


    You will have to post a link to that document you are followin.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  9. #9
    Join Date
    Mar 2011
    Location
    Dhaka, Bangladesh
    Posts
    42

    Default Re: LAMPP: file-permissions causes terrific errors in Server

    see the page 3 /or 4 of the configuration guide of
    > the HTTP server.

    please post the link of the guide
    AMD Phenom II X4 965 Black Edition, Gigabyte GA 880gm-ud2h mobo, 4GB RAM
    with Opensuse 11.4 KDE

  10. #10

    Default Re: LAMPP: file-permissions causes terrific errors in Server

    hello good day


    Quote Originally Posted by hasan65 View Post
    see the page 3 /or 4 of the configuration guide of
    > the HTTP server.

    please post the link of the guide
    great to hear from you...

    Webserver (LAMP) unter openSUSE 12.1 installieren | mnTechBlog

    this is unfortunatley in German - can we translate this? I love to hear from you

    greetings
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •