Services/wordpress

From popdata
Jump to: navigation, search

Wordpress Admin

We run the backported debian packages from: ftp://ftp.cyconet.org lenny-backports/main so upgrades are pulled from there.

Adding a new WordPress Blog

  • Add the site to apache config
    • create a file in /etc/apache2/sites-available like this:
<VirtualHost *:80>
        ServerAdmin web@popdata.bc.ca
        ServerName newblog.popdata.bc.ca

        DocumentRoot /var/www
        Alias / /usr/share/wordpress/
        <Directory /usr/share/wordpress>
            Options FollowSymLinks ExecCGI Indexes
            AllowOverride Limit Options FileInfo
            DirectoryIndex index.php
        </Directory>
        <Location />
            Options FollowSymLinks ExecCGI Indexes
            Allow from all
        </Location>

        ErrorLog /var/log/apache2/blog_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/blog_access.log combined
        ServerSignature On
</VirtualHost>
    • enable the site: a2ensite popdata-wwwdev
    • reload apache: /etc/init.d/apache2 reload
  • create the database
cd /usr/share/doc/wordpress/examples
sh setup-mysql newblog.popdata.bc.ca

Authentication from Gilbert AD

  • User profiles are fetched from Gilbert Active Directory. For example, corrections to email address made on PD LDAP via PDS will not appear on WordPress.