Zend Server Mysql Socket problem with PDO [Solved]

The Problem This answer has eluded me for months. I have Zend Server CE installed on my Mac (and linux web servers). I would use a DSN similar to the following (please note that my real password is not ‘root’). mysql://root:[email protected]/thedatabase This would result in an error in a PHP Fatal error of ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock” This drove me mad looking for an answer.

Offsite Snapshot Backups using rsync

Creating simple backup snapshots using rsync and mv Summary Create the illusion of multiple backed up copies, but in reality only the changes are different thereby saving space on the HDD. Create a cron job to run the following script once a day. The script will keep 4 days of backups, edit the numbers to your liking. Utilizing some built in rsync features it will only store 1 copy of the file on disk unless it has changed.

Installing Zend Server on Centos to run Magento

Installed Zend Server CE on one of my servers today. Installing Zend Server CE via yum on Centos To install via YUM, you can add the Zend repo as /etc/yum.repos.d/zend.repo [Zend] name=Zend CE $releasever - $basearch - Released Updates baseurl=http://repos.zend.com/rpm/ce/$basearch/ enabled=1 gpgcheck=0 [Zendce-noarch] name=Zend CE - noarch baseurl=http://repos.zend.com/rpm/ce/noarch enabled=1 gpgcheck=0 Then run yum install zend-ce This will run a muck on your current website, it basically replaces your current php installation, replaces your mod_php with a zend.

Removing Encryption from SSL Key

While having an encrypted key is a good thing for an SSL web server, it just doesn’t work out so well. When your web server restarts, it hangs during startup asking for a passphrase for all the SSL certs. To remove the requirement to enter a password you can follow these steps. First backup you key # cp www.domain.key www.domain.key.encrypted Then create a plain text version # openssl rsa -in www.

Speeding up my web server

Google has created a campaign to make the web faster, and a corresponding website to help web admins to make it so. Speed is a big factor in customer perception of your site. Google has conditioned the masses to expect instant page loads and sites that take even 2-3 seconds to load will only be tollerated for so long. Couple this with pages become more dynamic and resource hungry everyday.

yum update dies in error 'TypeError: unsubscriptable object'... yum clean all

While updating one of my servers today I entered this command yum update file and received the following error message. Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 229, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 145, in main (result, resultmsgs) = base.buildTransaction() File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647, in buildTransaction (rescode, restring) = self.resolveDeps() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 704, in resolveDeps for po, dep in self.

Find JPG Files in Directory and CP (copy) to another directory

Today I was faced with the challenge of finding all the JPG files in a directory (and subdirectories of that) and copying them to another directory (striping out the subdirectory folder name). find /path/to/directory/ -iname "*.jpg" -exec cp '{}' /path/to/dest/dir/ \; That did it perfectly. Keywords Find Folder Strip Path Copy cp directory Reference: http://www.linuxquestions.org/questions/linux-newbie-8/shell-script-to-search-and-copy-jpg-to-another-folder.-730320/

[Solved] Samba 'tree connect failed: NT_STATUS_BAD_NETWORK_NAME'

I just reinstalled a new machine and this time left SElinux on. We’ll I should have know it would have caused problems with my Samba set up. Error Shane:~ shane$ smbclient -U admin //192.168.178.10/timemachine Password: Domain=[POWEREDGE] OS=[Unix] Server=[Samba 3.0.33-3.7.el5] tree connect failed: NT_STATUS_BAD_NETWORK_NAME Solution setsebool -P samba_export_all_rw on