Linux
Debian: Squeeze cannot load Broadcom LAN drivers bnx2/bnx2-mips-09-5.0.0.j3.fw
by Ali on Oct.11, 2011, under Debian, Linux
You may run into a window asking you to provide the bnx2/bnx2-mips-09-5.0.0.j3.fw package to continue installation. Don’t freak out, visit this link and download the deb package from a mirror. Copy the package to a USB drive AND DO NOT EXTRACT THE .FW FILES, COPY THE DEB PACKAGE ONLY. INSTALL WILL EXTRACT WHAT IT NEEDS ACCORDINGLY and then click continue.
Apache: NameVirtualHost *:80 has no VirtualHosts error message
by Ali on Jan.14, 2011, under Linux, Misc
If you’re getting the following error when trying to restart Apache server:
NameVirtualHost *:80 has no VirtualHosts
Edit your ports.conf:
nano /etc/apache2/ports.conf
and comment out NameVirtualHost towards the top of your config file.
This should work considering all other settings are correct.
Linux: Remove installed RPM packages manually
by Ali on Oct.17, 2009, under Linux, Misc
Sometimes you screw up an application and are unable to use rpm -e to remove them from your system. Here is how you go about doing that:
To find installed RPM packages:
rpm -qa | grep <string>
To remove:
rpm -e --nodeps --allmatches <package name>
Misc: Error 500 – Internal server error while editing posts – unable to view wordpress dashboard items
by Ali on Jul.12, 2009, under Linux, Misc
If it’s only happening to a few posts or you can’t see all items/boxes in your dashboard then it’s your php module starving for more memory.
If you’re hosting the site, edit php.ini and add give it more memory. If you don’t know where php.ini is use the following command:
find / -name "php.ini"
Find memory section and dedicate what you want.
If your site is hosted, then create a php.ini file in wp-admin directory, and add the following line:
memory=15MB
If 15 is not good enough try 20 or 30.
Linux: vsftpd and symbolic links
by Ali on Jul.06, 2009, under Linux
vsftpd is all about security, and that’s why you cannot access linked directories through vsftpd with any ftp client. My arguement is that if you know how to use symlinks, or are careful enough not to link directories you don’t want to share then who’s vsftpd to butt in and completely disallow you to use such convenient feature of an OS? Reminds me of Windows Server type security… they block IE by default so that you have to either allow every single site, or disable IE ESC altogether.
Here is my convenient workaround: use mount bind!
mount --bind /sourcedirectory /destinationdirectory
You can either use @reboot cron job to have the directories mounted, or mount though fstab by adding the following line:
/directory-you-want-to-mount /destination-directory none bind
Haa… gotcha, but don’t go too fast! This is mount, not ln and will NOT create a mount point in your destination directory. For instance, if you want to mount /home/share to /home/user/share you will need to create /home/user/share first, then mount. Also keep in mind that if you have a copy or rsync job to copy contents of /home/share AND /home/user recursively, you will create two full copies of /home/share directory. One in /home/share and one in /home/user/share. Exclude one of the directories from your cp or rsync job.