Restart Apache
sudo /etc/init.d/apache2 restart
sudo gedit /some/path/filename.php
Comment out “skip-networking parameter” in /etc/my.cnf
Examples:
———
(using S3 bucket ‘mybucket’ and prefix ‘pre’)
Put the local etc directory itself into S3
s3sync.rb -r /etc mybucket:pre
(This will yield S3 keys named pre/etc/…)
Put the contents of the local /etc dir into S3, rename dir:
s3sync.rb -r /etc/ mybucket:pre/etcbackup
(This will yield S3 keys named pre/etcbackup/…)
Put contents of S3 “directory” etc into local dir
s3sync.rb -r mybucket:pre/etc/ /root/etcrestore
(This will yield local files at /root/etcrestore/…)
Put the contents of S3 “directory” etc into a local dir named etc
s3sync.rb -r mybucket:pre/etc /root
(This will yield local files at /root/etc/…)
Put S3 nodes under the key pre/etc/ to the local dir etcrestore
**and create local dirs even if S3 side lacks dir nodes**
s3sync.rb -r --make-dirs mybucket:pre/etc/ /root/etcrestore
(This will yield local files at /root/etcrestore/…)
Source: http://s3.amazonaws.com/ServEdge_pub/s3sync/README.txt
If you are creating a new passwd file:
C:\wamp\bin\apache\Apache2.2.11\bin\htpasswd.exe -c passfile username
If your are editing and existing password file:
C:\wamp\bin\apache\Apache2.2.11\bin\htpasswd.exe passfile username
.htaccess contents:
AuthType Basic require valid-user Satisfy all AuthUserFile C:/webroot/passwdfile AuthName "My Secret Folder"
Move the created pass file to the desired location. and add a .htaccess file to the folder you want to protect and then gracefully restart apache.
This is done through the wamp system tray icon.
To search the current directory and all subdirectories for a folder or file, use the following command:
find . -name filename
Source: http://www.tech-recipes.com/rx/976/unixlinux-easily-find-or-search-files-or-directories/
SELECT mail.mail_name, domains.name FROM domains LEFT JOIN mail ON domains.id = mail.dom_id LEFT JOIN DomainServices ON domains.id = DomainServices.dom_id WHERE mail.postbox = 'true' AND mail.mail_group = 'false' AND DomainServices.type = 'mail' AND DomainServices.status = '0'
Click on the header link in the mail server queue:
Received: (qmail 30501 invoked by uid 10077); 3 Dec 2009 21:47:42 -0500 Date: 3 Dec 2009 21:47:42 -0500 Message-ID: <20091204024742.30498.qmail@hostserver.com> To: email@domain.com Subject: This is a test. MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: <user@domain.com>
It says its invoked by uid 10077 which corresponds to the account on the /etc/password file:
-bash-3.2# more /etc/passwd | grep 10077 username:x:10077:2522::/var/www/vhosts/domain.com:/bin/false
That rule will accept Postini’s block. Then, to block the rest of the email:
It is important that you have the rules in this order, otherwise all email will be denied. Ensure that the ALLOW is above the DENY in the display list when you are done, then commit the changes.
Source: http://www.experts-exchange.com/OS/Linux/Q_24418022.html