Results 1 to 6 of 6

Thread: Joomla Installation

  1. #1
    Join Date
    Dec 2008
    Location
    East of Eden (tx)
    Posts
    313

    Default Joomla Installation

    I posted on 5 April about needing to set up a LAMP server to test drive Joomala (Website Content Manager). After hitting the books for a few days, I was able to do that successfully. It is up and running. Needless to say, I do not understand the things that were done behind the scenes, so I have a few simple newcomer questions:

    1) I changed the permissions on the srv/www/... folders to allow full access for members of the "users" group so I could copy the Joomla installation files to .../htdocs. After deleting the old index.html file, the Joomla installation came up, so it worked. However, I suspect that what I did is not good practice. What should I have done instead? Apache 2 is running as localhost and I am the only user.

    2) The second step of the Joomla installation is a "pre-installation check". It says that I need: a) Zlib Compression support and b) configuration.php writable.

    How do I do those two things?

    Cordially,
    TwoHoot
    #1 - openSUSE Leap 42.3; AMD A6-3670; Radeon(tm) HD; 8gb memory; 500 gb HD; KDE 5.8.7
    #2 - openSUSE Leap 42.2; Toshiba Satellite L70-A (Dual Boot - Win10); KDE 5.8.3
    #3 - openSUSE Leap 42.3; AMD A6-6400K; Radeon HD; 8gb memory; 1tb HD; KDE 5.8.7

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Joomla Installation

    It's ok to change the ownership of /srv/www/htdocs/joomla (or wherever you have it) to allow users to edit the files within. However any upload directories should be writable to wwwrun, the account of the webserver. And as you saw, to write the configuration the first time, configuration.php should be writable by wwwrun. After the config is done, you should change it back to some other account to prevent reconfiguration via the web page.

    For zlib you need the php5-zlib package. This can be installed via YaST or zypper, i.e.

    Code:
    zypper in php5-zlib

  3. #3
    ab@novell.com NNTP User

    Default Re: Joomla Installation

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

    1. True, that probably isn't a great practice. Typically you want to
    prevent the 'wwwrun' user from owning files and you want to prevent the
    Apache service from modify files ('wwwrun' user or 'www' group). So how
    do you do this? I typically set all of the files I modify to be
    user-owned by my user and then I make them group-owned by 'www, with
    permissions of 640 for files and 750 for directories. This lets the web
    server view the files enough to send them to users after processing but
    keeps anybody from modifying them. You can also get into extended
    attributes but I don't want to talk about that right now.

    2. Add PHP's zlib package, which is probably something simple like the
    following:

    sudo /sbin/yast -i php5-zlib

    For the second set configuration.php to be (temporarily) writable by the
    Apache user.... set its permissions to 666 if nothing else and then when
    the configuration is saved re-set this back to 440 or whatever it should
    be for security.

    Good luck.





    TwoHoot wrote:
    > I posted on 5 April about needing to set up a LAMP server to test drive
    > Joomala (Website Content Manager). After hitting the books for a few
    > days, I was able to do that successfully. It is up and running. Needless
    > to say, I do not understand the things that were done behind the scenes,
    > so I have a few simple newcomer questions:
    >
    > 1) I changed the permissions on the srv/www/... folders to allow full
    > access for members of the "users" group so I could copy the Joomla
    > installation files to .../htdocs. After deleting the old index.html
    > file, the Joomla installation came up, so it worked. However, I suspect
    > that what I did is not good practice. What should I have done instead?
    > Apache 2 is running as localhost and I am the only user.
    >
    > 2) The second step of the Joomla installation is a "pre-installation
    > check". It says that I need: a) Zlib Compression support and b)
    > configuration.php writable.
    >
    > How do I do those two things?
    >
    > Cordially,
    > TwoHoot
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iQIcBAEBAgAGBQJJ3R/2AAoJEF+XTK08PnB5kXcQAI5coFoEeiz3LromjN2NBxyf
    t4Mz+3FJ+oM4dc7jx6fVnj/JzjYYL6Ti2U6h0VAdz+rOUfTbJJyetfLfzc/fMOYg
    LYbeKtb+9hY9pa3Vhinu2rMxnrlBhmhjsndsDW5qM7m3OOZu/o+EdoT1O0Dk6dAN
    W3rIn0vgKzuueiPs1VAPUzXIYF3zxC1WixJiuvDIJKiJmGzG/PYnCHzwtbz7iPpA
    iracJgnxkB7cjpNc2YEgBc4C6VriirDEaUZaCYPkigGSEhrK564erA//5UU8akJH
    tuvUEKjUuU33lVGoAKoaxqG7NQAZui6AlRB/NHtl5vCxxbVHMVDNFDCwMJ7K0odi
    Nz/wL5GMkzs3L9jbQ5VEg1Ae0u8kgWC+k64Eeeyy4hJmoZrt3tT4VitIEirOyFCo
    aqJwIOiBhk4D6RfOCp3RT/Z2AYV/78Y4YiRs6Gdlq1U66yxLMuvYZCIF7grS0SNL
    tlWphngh0MocvXyBhEBeRvoAzmaawCV7rjAoZMlV7kSUyf42fjucizWPeZfBVT3y
    Ai1dn81xDxSWNzfKRW3JN+tVvN2zLVAh5zJXBEKLlf6bXq9ouMcagaumSiAtNo/T
    EHxTpNvJdF4MQz7TPvXvpJHDBXLHUnpvzp9bfV5eb6Yf6XjCP9c/nOj8EdezWtYY
    QiWpHJ0aXycgVKQ0uMvt
    =WNvz
    -----END PGP SIGNATURE-----

  4. #4
    Join Date
    Dec 2008
    Location
    East of Eden (tx)
    Posts
    313

    Default Re: Joomla Installation

    Thank you. I installed the PHP5lib using YaST with no problem.

    However, I don't know where to start with the configuration.PHP. Where and how do I find it for starters?

    I know it is a dumb question. Maybe if you point me in the right direction on this problem, I will be able to apply the lessons learned to future problems and not have to bother the forum.

    Again, thank you for your help.

    Cordially,
    TwoHoot
    #1 - openSUSE Leap 42.3; AMD A6-3670; Radeon(tm) HD; 8gb memory; 500 gb HD; KDE 5.8.7
    #2 - openSUSE Leap 42.2; Toshiba Satellite L70-A (Dual Boot - Win10); KDE 5.8.3
    #3 - openSUSE Leap 42.3; AMD A6-6400K; Radeon HD; 8gb memory; 1tb HD; KDE 5.8.7

  5. #5
    ab@novell.com NNTP User

    Default Re: Joomla Installation

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

    If you installed php5-zlib then you just need to restart Apache and the
    changes should be applied for that error to go away. Changing the
    permissions on the file can be done without restart anything though I'm
    not sure if you're asking about that....

    Good luck.





    TwoHoot wrote:
    > Thank you. I installed the PHP5lib using YaST with no problem.
    >
    > However, I don't know where to start with the configuration.PHP. Where
    > and how do I find it for starters?
    >
    > I know it is a dumb question. Maybe if you point me in the right
    > direction on this problem, I will be able to apply the lessons learned
    > to future problems and not have to bother the forum.
    >
    > Again, thank you for your help.
    >
    > Cordially,
    > TwoHoot
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iQIcBAEBAgAGBQJJ3ToQAAoJEF+XTK08PnB5ie4P/i48+JjNbNG0HF5EP/bRYxAT
    MHiK0cib+lZ6eMNFa4v4rf/qbmTKrKDH+ZVHdrABsflFxibxCNfm4Si/Y8/0pP+B
    EH17ggjDHWsOPARPt0Ep5thPaSq80JJjRPcJTL/8V9G+nG7PzdlozXBBSVNe4uar
    4MOHiypy1VscqmWDmEZ2vXNAjcKAot/EHe4zI2MDnVkVJf+18k44sKyDY4eAM1gK
    6c+ly6t4yEDZDlraPnAqttelxDjeIi1HmFjycNX7htlgRSosZniXaFabb3avgkJc
    xeF9FOdRpeNPVfUSGJNW9RKQ6amH9SHD1BPDT6APkg66N/lk3K2nkyXo9EgP8jol
    mtV7za94H2XDFvrp6jw930e2TCWZzGVXT33Yv+3dYZz2QiDiUKnlEuAudnCZlXPa
    yIFPqkHAsjYrljl15t1H3IAYmuUoZt4Wwe+tCj5Zr6D4dbcMyfnb6qgzxNEGywjF
    aZwEr3KxZ4IlU8FWukwhI1/+UOZDdo0n9SLrLfaYKFk5isqojH8Z09igPlOfZlXy
    FEvprx5yRdz/QezfcV2UmTQjKl6p0Q5/ihVt0HDe2i+VU9I/c8haDmf+sZTt66N6
    HYyoURku5THowu6nS9e/kIvcMNYPMo2oUvlAb2XdDx8WjWAhuv8t+NZGHT5FxPF/
    0yhdGa7wBFeovM22byrH
    =9/Xf
    -----END PGP SIGNATURE-----

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Joomla Installation

    What usually happens is that the web app creates it when you go into the configuration screen, so it won't exist at the beginning. Just go the configuration screen and it will probably say "I can't write to this file". Temporarily give write access to wwwrun to the directory, and revert it after the configuration file has been created, and also change the owner of the configuration file. I'm sure the Joomla install docs cover all this.

Posting Permissions

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