Mochabomb

Web Design and Technical notes

Mochabomb header image 1

PHP memory limit results in blank pages

November 5th, 2007 1:47 pm · No Comments

From a Drupal install, got a blank page when logging in….

[Mon Nov 05 13:20:36 2007] [error] [client 71.139.36.123] PHP Fatal error:
Allowed memory size of 16777216 bytes exhausted (tried to allocate 92160 bytes) in
/home/someuser/public_html/modules/event/event_timezones.inc on line 331, referer: http://example.com/

Up the memory in php.ini a few MB, restart httpd and all was working..

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

→ No CommentsTags: Apache · Drupal · Linux · PHP

DNS Troubleshooting

November 1st, 2007 4:09 am · No Comments

Yeah, its 5am - got clients that rely on me to get things done…

DNS: Best free tool to use: http://www.dns.lu/en/EN-LUTestNoms.php

If seeing “not advertising as nameserver”, that means in the zone file that server is not listed:

mochabomb.com.  IN      NS ns1.mochabomb.com.
mochabomb.com.  IN      NS ns2.mochabomb.com.
mochabomb.com.  IN      NS ns4.mochabomb.com.

.. for the server it resides on - and that record can be a slave record, just need to add all slaves in the master DNS server so that the slave server advertizes itself as an authority….

In /etc/named.conf is where a zone is set as master or slave. A slave can be authoritative if its name is listed/resolved by the master record.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

→ No CommentsTags: Linux

Easy Wordpress Upgrade…

October 28th, 2007 2:38 am · 1 Comment

0. Deactivate modules that might conflict/break with upgrade…
1. Have backups of your wordpress files and database..
2. I used ssh for the upgrade, so I untar’d the tar.gz file somewhere.
3. cp -rp wordpress/* ../../blog/ *this copies over all new files to old location, leaving old files intact.
4. somedomain.com/blogdir/wp-admin/upgrade.php - click click done…

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

→ 1 CommentTags: Wordpress

Exodus maintenance

October 28th, 2007 1:04 am · No Comments

Exodus is down for maintenance (making some security updates) - will be back up in 15 minutes.
2:10am - Exodus back up

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

→ No CommentsTags: Status

Quick NFS Setup Notes

October 27th, 2007 2:39 am · No Comments

Quick NFS Setup Notes:

Server with files to be shared:
# service portmap start; service nfslock start; service nfs start
# echo " /home/sharedfiles (ro,sync) >> /etc/exports

Server that accesses these files
Edit /etc/vfstab
server:/share/adir /opt/adir nfs ro,sync 0 0

Add a macro.NFS to /etc/shorewall:
###############################################################################
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/
# PORT PORT(S) DEST LIMIT GROUP
PARAM - - udp 111,2049
PARAM - - tcp 111,2049
PARAM - - udp 4000:4003
PARAM - - tcp 4000:4003
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

→ No CommentsTags: Linux