Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142042 - webapp-config and wordpress problems...
Summary: webapp-config and wordpress problems...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Aaron Kulbe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-28 15:29 UTC by Eric Desgranges
Modified: 2006-11-07 11:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Desgranges 2006-07-28 15:29:39 UTC
When installing several instances of wordpress with the webapp-config tools, the wordpress/wp-config.php contains a unique password and database name for all websites (USE="vhosts"). This make the installation useless if you want to install wordpress for many hosts.

Looking at the wordpress-2.0.3.ebuild, I'd rather see something similar to this:

        webapp_serverowned ${MY_HTDOCSDIR}/wp-settings.php
        webapp_serverowned -R ${MY_HTDOCSDIR}/wp-admin
        webapp_serverowned -R ${MY_HTDOCSDIR}/wp-includes
        webapp_configfile ${MY_HTDOCSDIR}/wp-config.php 

rather than:

        webapp_serverowned ${MY_HTDOCSDIR}/index.php
        webapp_serverowned ${MY_HTDOCSDIR}/wp-admin/menu.php
        webapp_serverowned ${MY_HTDOCSDIR}

Also: the following instructions cause the emerge to fail in case you unmerge then re-emerge wordpress, it won't find the local docs="license.txt readme.html" files.

        dodoc ${docs}
        for doc in ${docs} INSTALL; do
                rm -f ${doc}
        done
Comment 1 Aaron Kulbe (RETIRED) gentoo-dev 2006-07-29 19:07:32 UTC
Sorry, that you *can* use multiple instances of WordPress within a single database doesn't mean I want to be responsible for supporting it.  It's not the way it was designed. One install, one database.  That's how it was made, anything else is a kludge.

As to the second issue... WORKSFORME.
Comment 2 Eric Desgranges 2006-08-01 02:55:00 UTC
That's exactly my problem, the webapp-config won't let me install different databases, all the 'wp-config.php' files point to the same database and username, it's not what I want!!! Each time I make a new WordPress installation via webapp-config the wp-config.php in all vhosts are reset to the same unique database.


(In reply to comment #1)
> Sorry, that you *can* use multiple instances of WordPress within a single
> database doesn't mean I want to be responsible for supporting it.  It's not the
> way it was designed. One install, one database.  That's how it was made,
> anything else is a kludge.
> 
> As to the second issue... WORKSFORME.
> 
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2006-08-17 08:08:11 UTC
Aaron,

What's the problem w/ marking wp-config.php as webapp_configfile?

Eric's problem is happening because wp-config.php in /var/www/... is a hard-link to the copy in /usr/share/webapps/... .  Marking the file as webapp_configfile will stop this happening.

Best regards,
Stu
Comment 4 Aaron Kulbe (RETIRED) gentoo-dev 2006-11-07 11:00:08 UTC
Fixed in 2.0.5