On 03/21/17 12:11, Giovanni Bechis wrote:
> On 03/21/17 12:02, Paul Irofti wrote:
>> On Tue, Mar 21, 2017 at 07:56:55AM +0000, Stuart Henderson wrote:
>>> On 2017/03/20 15:03, Paul Irofti wrote:
>>>> phpMyAdmin has been installed into ${INSTDIR}.
>>>>
>>>> If using Apache, you can make this accessible to clients by enabling
>>>> -the configuration file:
>>>> +mod_rewrite in ${SYSCONFDIR}/apache2/httpd2.conf, the mysql php module,
>>>> +and the configuration file:
>>>>
>>>> # ln -s ../modules.sample/phpmyadmin.conf /var/www/conf/modules/
>>>> + # cp /etc/php-5.6.sample/mysqli.ini /etc/php-5.6/
>>>
>>> Please symlink rather than cp, and use variables so this doesn't
>>> get stale after a PHP update:
>>>
>>> # ln -s ../php-${MODPHP_VERSION}.sample/mysqli.ini
>>> ${SYSCONFDIR}/php-${MODPHP_VERSION}/
>>
>> Good point on the variables!
>>
>> I actually wanted to discus ln -s vs. cp. Isn't this a bad idea in
>> general? For the php bit I agree that it is useless to copy, but for the
>> phpmyadmin.conf I think it's actually required to cp instead of link: if
>> I customize the config I also modify the sample file which will get
>> overwritten by an update or pkg_add will scream about a bad checksum,
>> right?
>>
> exactly, config.inc.php should not be a symlink.
> Giovanni
>
s/config\.inc\.php/phpmyadmin\.conf/