Feed on
Posts
Comments

Archive for the 'Webserver' Category

to enable mod_headers in apache 2, enter on the command-line: $ sudo a2enmod headers followed by: $ sudo /etc/init.d/apache2 force-reload

how to restart the ssh daemon

to restart the ssh daemon: $ sudo kill -HUP `cat /var/run/sshd.pid` $ sshd

i’ve embedded my phpicalendar page inside of my wordpress template. to do this, all i had to do was copy the code i found in my wordpress header: (wp-content/themes/mytheme/header.php) into my phpicalendar header: (phpicalendar-2.1/templates/mytemplate/header.tpl). [update]: ok, to be more specific, first backup your phpicalendar header.tpl file. now, replace all the text before the “body” line […]

enable url_rewrite in gallery2

to enable url_rewrite, you first need to install mod_rewrite in apache. then, you need to add the following lines to httpd.conf: AllowOverride FileInfo Options and restart apache2.

restart apache2

to restart apache2, enter the following command: $ sudo /etc/init.d/apache2 force-reload

enable mod_rewrite in apache2

to enable mod_rewrite in apache2, run: $ sudo a2enmod rewrite and then restart apache2: $ /etc/init.d/apache2 force-reload

large images i uploaded into my wordpress blog would constantly float outside of my text margins and end up partially sitting beneath my sidebars. it took a while, but i finally found the piece of .css code to clean up the mess: p img { padding: 0; max-width: 100%; } simply insert the above code […]

installing the curl php extension

my wordpress installation on my debian box demanded that i have the curl extension for php. to install that extension: $ sudo apt-get install php4-curl $ sudo apache2ctl graceful

my wordpress installation on my debian box demanded that i have the curl extension for php. to install that extension: $ sudo apt-get install php4-curl $ sudo apache2ctl graceful

you can modify the header and/or body of gallery2 pages to customize your photo pages. for instance, i’ve added links back to my homepage and inserted some statcounter code to my gallery. to make changes, first figure out what theme you’re using. (go to site admin –> themes.) i’ll go through an example with my […]

« Prev - Next »