Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Joomla preinstalling issue?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Feb 11, 2018 3:01 pm    Post subject: Joomla preinstalling issue? Reply with quote

I want to build a home's web server - first on desktop and later on raspberry.
I installed nginx and is already working in my LAN.
Also found Joomla as suitable - hope it is good from security, functionality and resources aspects.
However, according this wiki https://wiki.gentoo.org/wiki/Joomla apache2 USE flag is needed...
Please inform if using nginx (rather apache), apache2 can be omitted and it is ok to have in make.conf?
Code:
USE="... php gd ..."

and in package.use:
Code:
dev-lang/php mysql mysqli postgres

_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3617

PostPosted: Sun Feb 11, 2018 4:57 pm    Post subject: Reply with quote

I personally have rather a bad experience with installing websites from distribution's package manager.
Whenever I tried they were kinda clunky. You can say someone tried to fit it into distro's standards and it didn't really work all that well. It's easier to just install dependencies and download the tarball from project's homepage.
Whether or not you can skip apache depends on what the CMS requires. It certainly does not strictly depend on apache. But it may require some funny variables you have to set, or extensions like mod_rewrite (in case of wordpress) you have to provide. Obviously, you need support for php in your webserver. I'm not sure nginx provides that.
If it turns out you _can't_ get away without apache, you can either replace nginx completely or use it as a reverse proxy. The last option requires you to change apache's port to something less standard. 81 and 8080 are pretty common picks.
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Feb 11, 2018 6:53 pm    Post subject: Reply with quote

szatox,

Thought I am asking an "obvious" question - using nginx no need of apache USE flag -
but according your reply could be that apache is needed anyway... Do not know how can verify?
If apache is must, I may choose Drupal - but not sure it is suitable to beginner like me. As you may see in its wiki,
apache USE flag is optional (maybe same as Joomla??): https://wiki.gentoo.org/wiki/Drupal

No problem regarding PHP - There is a detailed instruction how to add PHP in nginx wiki.

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3617

PostPosted: Sun Feb 11, 2018 7:59 pm    Post subject: Reply with quote

You can verify here: https://downloads.joomla.org/technical-requirements
Code:
Software    Recommended    Minimum    More information
Nginx    1.8 +    1.0    https://www.nginx.com/resources/wiki/

And really, don't bother with whatever version is in three. Things tend to be much easier when you consider your website servre-independed, self-contained package.

Regarding settings flags as global vs package-specific, depends on your goal. I like setting flags as global, since it creates some sort of network effect. Since I decided to install some software, I may just as well let the other stuff benefit from it.... And software that can't benefit from those flags will simply ignore them anyway, so it's not a big deal.
However, on my tiny server I set use flags per package. As I said, it is tiny. Disk space and RAM is precious there. If I don't know I need something, I don't want it there, regardless of potential benefits somewhere in the distant future.
In most cases, both approaches work just fine. Only a handful of flags must be set as global or per package. If you don't know better by yourself, sticking to the advice from wiki tends to be a good idea.
Oh, you may want to drop either mysql or postgres. You only need one database backend.
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Feb 11, 2018 9:45 pm    Post subject: Reply with quote

OK - So according the link apache2 USE flag is needed.. Does it mean that only Apache mod_rewrite extension is needed or whole apache webserver?
Maybe before installing Joomla with apache, or replace nginx completely, I will give a chance to Drupal -
Drupal gentoo's wiki looks "nicer" and no need of apche. As far as I read, Drupal requires more technical knowledge,
and learning curve is a bit steeper - can be a good reason to learn a bit of HTML, PHP, Mysql...

Quote:
Regarding settings flags as global vs package-specific

In the past I had some issues with my system, and one forum's member advise me to delete all global USE flags from make.conf,
and use only per package in package.use. It made some order in the system but meanwhile I started to add global USE flags from time to time.
As you said, your approach to set it globally makes sense for machine with enough resources, but not for raspberry...

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum