Difference between pages "FAQ/Old" and "Package:Drupal"

From Funtoo
< FAQ(Difference between pages)
Jump to navigation Jump to search
 
m (add base url config)
 
Line 1: Line 1:
== Top Questions ==
{{Ebuild
|Summary=PHP-based open-source platform and content management system
|CatPkg=www-apps/drupal
|Maintainer=
|Homepage=http://drupal.org/
}}
Drupal is a powerful [[Web-server-stack]] web application that can be used to craft custom websites, for example: http://www.whitehouse.gov


=== Why use a Source-Based Linux Distribution like Funtoo Linux? ===
== Install ==
 
{{note|drupal likes php emerged with the gmp use flag enabled}}
Using a source-based Linux distribution like Funtoo Linux could be likened to driving an exotic sports car. It's an experience that is appreciated by professionals and technology enthusiasts because it simply offers a more direct, engaging experience with the underlying technology. You can push the technology further. You have more control. It is more satisfying.
 
If you aren't looking for something "special", there are a number of binary-only Linux distributions to choose from. They will get you from point A to point B. You won't have as much fun or be as connected to what's going on, but maybe that's not what you're looking for.
 
But if you ''do'' appreciate a deeper connection to technology, and pushing technology to its limits, Funtoo Linux may be a life-changing experience for you.
 
=== Do you support systemd? ===
 
Part of the distinctiveness of Funtoo Linux is its dependency-based OpenRC init system, so changing this would make it something other than Funtoo Linux. So we do '''not''' support systemd as part of Funtoo Linux.
 
Thanks to the work of Dantrell B., we do, however, fully support running GNOME 3.14 without depending on systemd.
 
We are planning to develop a new OpenRC-style init system, incorporating "next-gen" features, which will be comparable in functionality to systemd.
 
=== What's with the Question Mark in the Logo? ===
 
We're currently looking for a new logo. I change it periodically and include a question mark to encourage people to submit ideas. You can post ideas to the [http://forums.funtoo.org forums].
 
=== Do you use GitHub? ===
 
Funtoo Linux has core git repositories at git.funtoo.org, which are automatically synced to GitHub, so all our public repositories are available on GitHub. But we don't use GitHub for pull requests, documentation, or tracking bugs. We have our own infrastructure for that. More information is available on the [[How to Dev|How to 'Dev' page]].
 
=== Does Funtoo use an overlay? ===
 
An overlay is a Portage tree that is added "on top of" an existing Portage tree. Funtoo Linux allows you to use overlays, and we use overlays for development, but we deliver a single Funtoo Portage tree via git. This tree is generated automatically from the Gentoo Portage tree and a number of other overlays, and merged into a single tree. This is the tree that you get when you run <tt>emerge --sync</tt>. More information is available on the [[How to Dev|How to 'Dev' page]].
 
=== How do I see what overlay a particular ebuild comes from? ===
 
http://ports.funtoo.org/packages.xml lists all ebuilds that come from a non-Gentoo overlay, in XML format. You can search this file for the ebuild you are interested in. If you don't find it, then it came from Gentoo.
 
=== Does Funtoo Linux use a Red Hat or Debian kernel? ===
 
Funtoo Linux users are free to choose their own kernel, and we offer additional kernels from other Linux distributions such as Debian, Red Hat Enterprise Linux and others. These are documented on the [[Funtoo Linux Kernels]] page.
 
== Using Funtoo Linux, Portage and Git ==
 
=== How do I start using Funtoo Linux? ===
 
For information on how to start using Funtoo Linux, see [[Funtoo Linux Installation]].
 
=== Is it possible to convert an existing Gentoo Linux install to Funtoo Linux? ===
 
Yes, it is possible, but not supported. Some people have done it, but you should not rely on it to always work. It is always best to install Funtoo Linux by following the steps in [[Funtoo Linux Installation]].
 
=== What is mini-manifest? ===
 
Manifests are files that you will find inside a Portage tree on a Gentoo Linux or Funtoo Linux system, one associated with each package -- for example <tt>dev-lang/php</tt> will have a single Manifest file for all PHP ebuilds. Traditionally, the Manifest files contain cryptographic hashes of all files in the Portage tree, plus hashes of all downloadable files (distfiles) used to build the package.
 
A feature introduced by Funtoo Linux, and now integrated upstream into Gentoo's Portage, are mini-Manifests. Because we use git for our Portage tree, which uses cryptographic hashes internally, we don't need Manifests to include hashes for all files ''in'' Portage, just files that need to be downloaded from mirrors. This is what mini-Manifests are -- Manifest files that have gone on a diet.
 
=== How do I get my initial Portage tree, or update my Portage tree? ===
 
This is done by typing:
 
<console>
###i## emerge --sync
</console>
 
Emerge will use the <tt>git pull</tt> command to update your tree for you, or will use <tt>git clone</tt> if one doesn't exist.
 
=== I set up my initial git-based Portage tree, but <tt>/usr/portage</tt> seems to be empty. ===
 
You forgot to type:


<console>
<console>
###i## cd /usr/portage
###i## emerge drupal
###i## git checkout funtoo.org
</console>
</console>
Funtoo Linux's portage tree snapshot ships with a mostly empty branch active by default to reduce the size of the resultant snapshot tarball.
=== What is the status of Funtoo's UTF-8 support? ===
Funtoo Linux has UTF-8 enabled by default, even for the <tt>root</tt> user. This allows UTF-8 files to be edited without issue, <tt>root</tt> GNU screen sessions to display UTF-8 character sets properly, etc. The classic sort order of <tt>ls -a</tt> has been preserved by setting <tt>LC_COLLATE</tt> to <tt>POSIX</tt>. All other locale settings inherit the system default defined in the <tt>LANG</tt> variable, which is set to <tt>en_US.UTF-8</tt>.
=== What if I want to use a non-English locale/language? ===
I recommend two things. First, it's strongly recommended that you always use a UTF-8-based locale.
The next thing I recommend is to try to avoid changing the global system LANG setting, and instead set the LANG setting on a per-user basis by adding the desired LANG setting to your <tt>~/.bashrc</tt>. This will preserve English log output in <tt>/var/log</tt> and make it easier to search for more common matching English strings on the Internet when you need help.
If you really want to change the default system LANG setting (taking into account the paragraph above,) then it's recommended that you create your own <tt>/etc/env.d/02locale</tt> file that contains something like this:
<pre>
LANG="fr_CA.UTF-8"
</pre>
You will need to run <tt>env-update</tt> and <tt>source /etc/profile</tt> to apply changes immediately to any open shells, and reboot to apply changes fully.
=== What is different with Funtoo's Ruby? ===
Funtoo Linux tracks Gentoo's Ruby, but we do have one change for ruby-1.9 and greater - the binary name is changed with /usr/bin/ruby1.9 instead of Gentoo's /usr/bin/ruby19. This makes the versioning consistent with Python binaries and MacOS X. This means that for ruby-1.9 and greater. While the path to the binary has changed, all Portage variables are the same as Gentoo, so you should use &quot;ruby19&quot; for the <tt>RUBY_TARGETS</tt> setting in <tt>/etc/make.conf</tt>.
=== Does Funtoo Linux use an older udev? ===
Historically, we have, in order to avoid problems introduced with newer udev versions.
We have just recently migrated to <tt>eudev</tt>, an udev fork, and will be keeping udev up-to-date.
=== What is the minimum kernel version I can use with Funtoo Linux? ===
We test and support 2.6.32 and above, and maintain compatiblity with RHEL 6 kernels, which are based on 2.6.32 and heavily patched.
=== Why is package.mask a directory? ===
Portage allows <tt>/usr/portage/profiles/package.mask</tt> to be a directory. We use this to organize our package masks into categories so they are easier to maintain.


=== Git complains and aborts when I emerge --sync. ===
=== MySQL ===
{{warning|default "changeme" passwords are insecure, change them!}}


It appears that a previous git merge was interrupted or did not complete, leaving your portage tree in an intermediate state. Typically, this can be fixed by typing:
To create a database for drupal to interact with:


<console>
<console>###i## mysql -u root -p
###i## cd /usr/portage
mysql> ##i##CREATE DATABASE IF NOT EXISTS `drupal` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
###i## git reset --hard
mysql> ##i##CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> ##i##GRANT LOCK TABLES, SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `drupal`.* TO 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> ##i##\q
</console>
</console>
This should restore your portage tree to a consistent state and allow future <tt>emerge --sync</tt> commands to complete successfully.
=== webapp-config ===
 
{{note|1=
If this doesn't work, the simplest way to fix this is to delete your <tt>/usr/portage</tt> directory and run <tt>emerge --sync</tt> again. This will download a fresh tree.
<code>webapp-config</code> is currently broken for Drupal so you must run it yourself:}}
 
=== How do I tell if a problem I am having originates from Gentoo or Funtoo? ===
 
Let us figure this out for you. Report a bug to our bug tracker, and we will determine how to resolve the issue. See [[Reporting Bugs]].
 
=== How can I see the differences between the Gentoo and Funtoo Portage trees? ===
 
In the old days, this was tricky. We do not have a comprehensive way to do this, but here are some things to start looking at:
 
* See the [http://www.github.com/funtoo/funtoo-overlay funtoo-overlay] for our main repository of Funtoo-specific stuff -- this is our main Funtoo package repository, but not our only one.
* To get a full view of everything, see [http://git.funtoo.org/funtoo-overlay/tree/funtoo/scripts/merge.py our merge script] which generates our unified <tt>emerge --sync</tt>able tree. This describes everything that is part of Funtoo Linux.
* We have an automated report which is visible at [[Compare Forked Packages To Gentoo]]. This report is designed for Funtoo developers, and lists only the "bad" stuff -- areas in which our packages are older than what is in Gentoo Linux. We use this report to identify ebuilds that need to be updated in Funtoo Linux.
 
=== Is Paludis compatible with the Funtoo Portage tree? ===
 
Paludis does not appear to be compatible with the Funtoo Portage tree, unfortunately. It does not support the <tt>package.mask</tt> directory without additional hooks, and also does not support merging device nodes. These features are supported by Portage and we use both of these capabilities. I think that both <tt>package.mask</tt> (and <tt>package.keywords</tt>, etc.) directories are a good idea, and I also think it's a good idea for the package manager to support device nodes, which is particularly useful for the <tt>udev</tt> and <tt>baselayout</tt> ebuilds. Funtoo Linux has separate versions of these packages, and these ebuilds are easier to maintain if device nodes are correctly supported by the package manger, and the <tt>package.mask</tt> directory is a great help to us as well.
 
We could maintain a patched version of Paludis that would be useable with the Funtoo Portage tree, but I don't want to get into the business of supporting a non-standard package manager as the upstream project seems not seem very supportive of getting these compatibility issues resolved, and thus this could turn into a maintenance burden for Funtoo. So I'd rather just not support Paludis for now.
 
=== What about pkgcore? ===
 
Pkgcore is not currently compatible with Funtoo Linux and this isn't something we test.
 
=== How do I report a bug? ===
 
We have a bug tracker. See [[Reporting Bugs]].
 
=== How do I become a Funtoo developer? ===
 
First, we want you to be a Funtoo Linux user. Funtoo Linux is a project run by users.
 
We have different ways you can get involved:
 
==== Staff ====
 
Staff members help with things like ebuild maintenance, ensuring stages build, wiki documentation, and generally supporting the project by keeping it healthy.
 
==== Developers ====
 
Developers help by working on maintenance of certain ebuilds, or even entire architectures or flavors of Funtoo Linux, like ARM or hardened.
 
==== Contributors ====
 
Contributors often work semi-independently, and commit their ebuilds or code to their own repositories. We then 'pull' from these repositories, often using automated tools, so their updates automatically become part of Funtoo Linux.
 
==== In Summary ====
 
In reality, no one person fits 100% into a single category, and people who are actively involved in Funtoo Linux are doing some level of each of these things.
 
I suggest hanging out in the #funtoo channel on Freenode and participating in [http://forums.funtoo.org the forums] and getting to know everyone in the community, and find an area in Funtoo Linux that you want to improve. If you have skills, and don't know what to improve, then ask in the Forums, and we'll help point you in the right direction.
 
I always need people who are passionate about documenting technologies. There is so much to be documented. We have lots of bugs on the bug tracker that you can help with. And we are always open to people who want to take an out-of-date ebuild and give it some love. A great way to start doing this is to start filing bugs on [http://bugs.funtoo.org our bug tracker] and then start fixing these bugs by submitting patches. After a while, we'll get the idea that you are wanting to help, and we'll either start merging in an overlay of yours or find some other way for you to contribute.
 
Here are some tips for working with us:
 
* We have limited time, and don't work on Funtoo Linux full-time. Please be respectful of that.
* We are a very small project. As of mid-June 2014, we have four staff members (including BDFL) with commit rights Funtoo repositories, and only two (including BDFL) commit regularly.
* A priority is placed on being friendly and easy-going. If you are irritable or get into arguments often, and think that your technical skills will result in these deficiencies being overlooked, you will be unpleasantly surprised. We're called 'fun'too for a reason.
 
== General Funtoo Stuff ==
 
=== What is 'Funtoo' all about? And 'Funtoo Linux'? ===
 
<tt>Funtoo</tt> by itself refers to this site, or the larger <tt>Funtoo</tt> project run by Daniel Robbins. That's just a fancy way of saying that <tt>Funtoo</tt> refers to all the stuff I'm doing.
 
''Funtoo Linux'' refers specifically to my variant of Gentoo Linux.
 
If you see me use the phrase <tt>Funtoo Portage tree</tt> or <tt>Funtoo ebuild</tt>, I'm just talking about our separate (and slightly different) Portage tree, or our version of an ebuild.
 
=== What is 'tnufoo'? ===
 
<tt>tnufoo</tt> is <tt>funtoo</tt> rotated 180 degrees vertically.
 
=== How many developers are working on Funtoo Linux? ===
 
Funtoo Linux development is led by Daniel Robbins. We have one development lead, and a couple of other people who commit semi-infrequently. So, currently, about 4 people.
 
=== Is Funtoo Linux a fork of Gentoo Linux? ===
 
Funtoo Linux is not a full fork of Gentoo Linux, but we do fork some ebuilds.
 
It's more accurate to refer to Funtoo Linux as a <tt>Gentoo Linux variant</tt>, meaning that it is more like another flavor of Gentoo than a fork.
 
We share our changes and bug fixes with the Gentoo project, so Gentoo is free to merge in any of our changes at any time.
 
=== What is the best way to interact with the Funtoo community? ===
 
There is a list of resources on our [[Welcome]] page that is kept up-to-date.
 
=== What Architectures does Funtoo Linux support? ===
 
Currently, Funtoo Linux is supporting x86-32bit, x86-64bit, including hardened and pure64 (non-multilib), as well as ARM. There has been a Sparc64 build in the past, which could always come back in the future if others come forward to maintain it.


=== How should a developer use package.mask? ===
To run <code>webapp-config</code>, you must know the version number of the webapp you're installing. To find the version number:


We have various package.mask files in <tt>funtoo-overlay</tt>:
<console>###i## equery l drupal</console>


* <tt>funtoo-cautionary</tt> - masks that are in place to protect us from upstream changes in Gentoo Linux, or from ourselves.
then run something similar to this, making sure to replace the version number with your current drupal version.
* <tt>funtoo-staging</tt> - stuff that is masked for testing, and is intended to be unmasked soon.
* <tt>funtoo-toolchain</tt> - masks related to our toolchain, which is treated with care (we like to upgrade it in a careful and coordinated fashion.)
* <tt>funtoo-udev</tt> - this may disappear soon -- it's one of those mask files that we create for a special purpose -- in this case, stuff related to our <tt>eudev</tt> migration.


=== Do you use the normal Gentoo system profiles? ===
<console>###i## webapp-config -I -h localhost -u root -d /drupal drupal 7.31</console>


I designed a new profile system for Funtoo which you can read about at [[Funtoo 1.0 Profile]]. It has a lot of cool functionality, including ''flavors'', ''mix-ins'' and other cool things. Thanks to Ryan Harris (rh1) for the excellent Funtoo <tt>eselect</tt> implementation for our new profile system.
=== web install ===
Start your web server, and database.


=== Is Funtoo Linux More Stable Than Gentoo Linux? ===
==== nginx ====
configure your nginx similar to official documentation.  http://wiki.nginx.org/Drupal


The short answer is that we don't know, but some people think it is, and we strive to make it more reliable than Gentoo, not because we're competitive, but because Funtoo Linux originally started as a version of Gentoo Linux that had several bugs fixed. We like to fix things that we find that aren't working.
point your browser @ http://localhost/drupal/install.php


=== Do you use Gentoo's Guide XML for Documentation? ===
==== apache ====
If you are using apache 2.4, or newer run this sed command.
<console>###i## sed -i 's\Order allow,deny\Require all granted\' /var/www/localhost/htdocs/drupal/.htaccess</console>


I've made the decision to go with MediaWiki as our official documentation format.
point your browser @ http://localhost/drupal/install.php


=== Are you looking for translators? ===
=== Permission Adjustments ===
==== Enable Theme & Module Uploads ====
{{note| if you're using nginx change to nobody:nogroup}}
<console>###i## chown -R apache:apache /var/www/localhost/htdocs/drupal/sites/all/</console>


Many kind people have provided translations of the funtoo.org pages, and the old version of the site used to contain these translations. However, after much consideration, I've decided to not provide translated versions of funtoo.org pages, for several reasons:
* [https://www.drupal.org/project/project_theme drupal theme index]


* Translated documents tend to become out-of-date
* [https://www.drupal.org/project/project_module drupal extensions]
* Updating the translated documents is quite a bit of work
* Most people online seem to have at least a basic grasp of English


For these reasons, I'm going to focus on improving the quantity and quality of English documentation, and not focus on translations for now.
==== Adjust for Security ====
<console>###i## chmod 640 /var/www/localhost/htdocs/drupal/sites/default/settings.php</console>


== Forking the Portage Tree ==
== Post Install ==
=== base url ===
To set your base url:


=== I want to fork the Portage tree. How do I do this? ===
{{file|name=/var/www/localhost/htdocs/drupal/sites/default/settings.php|lang=php|desc=ip address listening to external requests or domain name|body=
$base_url = 'http://0.0.0.0/drupal';  // NO trailing slash!
}}
=== Cron ===
Drupal automates several tasks by cron.  see official documentation to setup a cron job.
https://www.drupal.org/node/23714


Currently, the best way to do it involves forking the [http://www.github.com/funtoo/funtoo-overlay funtoo-overlay], which is much smaller, or creating your own overlay. I have scripts that combine the Funtoo overlay and the Gentoo tree to create a unified Portage tree.
=== Maintenance Mode Access ===
If you suddenly find your self locked out of your drupal cms because it is in maintenence mode:


=== Where can I learn more about <tt>git</tt>? ===
http://localhost/drupal/user


So, you want to learn more about <tt>git</tt>, do you? A collection of excellent git resources is now available on the [[Git Guide]].
== Troubleshooting ==
If you are having problems logging into the admin console flush your browser cache.


=== Where can I learn more about the Funtoo Linux philosophy -- what you are about? ===
== Media ==
=== Overview ===
{{#widget:YouTube|id=kaOuQxsjs3E}}


See [[Funtoo Linux Vision]].
=== Tutorials ===
{{#widget:YouTube|playlist=PL15BE2E8313A4E809}}


[[Category:FAQ]]
== External Resources ==
[[Category:Official Documentation]]
* https://wiki.gentoo.org/wiki/Drupal
* [http://youtu.be/sfrfuCLH9sg google tech talks: implementing drupal]
* [https://www.youtube.com/channel/UCyLF5zO6ghZcOXKHRWTipvw drupalize.me youtube channel]
{{EbuildFooter}}

Revision as of 20:58, November 11, 2014

Drupal

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Drupal is a powerful Web-server-stack web application that can be used to craft custom websites, for example: http://www.whitehouse.gov

Install

   Note

drupal likes php emerged with the gmp use flag enabled

root # emerge drupal

MySQL

   Warning

default "changeme" passwords are insecure, change them!

To create a database for drupal to interact with:

root # mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS `drupal` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT LOCK TABLES, SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `drupal`.* TO 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q

webapp-config

   Note

webapp-config is currently broken for Drupal so you must run it yourself:

To run webapp-config, you must know the version number of the webapp you're installing. To find the version number:

root # equery l drupal

then run something similar to this, making sure to replace the version number with your current drupal version.

root # webapp-config -I -h localhost -u root -d /drupal drupal 7.31

web install

Start your web server, and database.

nginx

configure your nginx similar to official documentation. http://wiki.nginx.org/Drupal

point your browser @ http://localhost/drupal/install.php

apache

If you are using apache 2.4, or newer run this sed command.

root # sed -i 's\Order allow,deny\Require all granted\' /var/www/localhost/htdocs/drupal/.htaccess

point your browser @ http://localhost/drupal/install.php

Permission Adjustments

Enable Theme & Module Uploads

   Note
if you're using nginx change to nobody:nogroup
root # chown -R apache:apache /var/www/localhost/htdocs/drupal/sites/all/

Adjust for Security

root # chmod 640 /var/www/localhost/htdocs/drupal/sites/default/settings.php

Post Install

base url

To set your base url:

   /var/www/localhost/htdocs/drupal/sites/default/settings.php (php source code) - ip address listening to external requests or domain name
$base_url = 'http://0.0.0.0/drupal';  // NO trailing slash!

Cron

Drupal automates several tasks by cron. see official documentation to setup a cron job. https://www.drupal.org/node/23714

Maintenance Mode Access

If you suddenly find your self locked out of your drupal cms because it is in maintenence mode:

http://localhost/drupal/user

Troubleshooting

If you are having problems logging into the admin console flush your browser cache.

Media

Overview

Tutorials

External Resources