You are here: Home
Search
Search Only:

Search Keyword file

Total: 34 results found.

Page 1 of 2
Here's a little PHP command line script to do Apache Log Rotation on your web server. This script uses zip to compress the files and retains the logs for 10 days before deletion. <?php date_default_timezone_set('America/New_York'); ...
... no xorg.conf file at all. I thought, okay, I can just get a default xorg.conf from the CD or perhaps from my backup. Okay, I'll boot grub to recovery mode. Wait the ESC key doesn't pull up grub anymore. ...
... exposes you to a Man-in-the-middle attack.You've been advised! I've changed settings in most of my /etc/ssh/ssh_config files to stop the machine from begging for a "yes" response, to just automatically ...
4. PHP CLI: Rsync Script
(Tech Notes/Linux)
... to sync root user files. This can be removed if that behavior is not desired. The script also utilizes the --delete feature of rsync to remove files in the destination that do not exist in the source. ...
5. Ubuntu: Change Hostname
(Tech Notes/Linux)
... the file /etc/hostname to read the hostname of the system at boot time and set it up using the init script /etc/init.d/hostname.sh /etc/hostname server So on a Debian based system we can edit the ...
I ran across the need to copy a large directory structure to a remote machine this week. I just needed the directory structure, not the files. There is a way to do this locally using the cp command with ...
... I'd modify a text document over the internet, like the entire content of the document would be appended to the file upon saving, every save. Rather than spend the time debugging, a new installation was ...
... is "Yes", then read on. Changing the message is relatively easy. Simply modify motd. The file is located in /var/run on my system. Other information I've found suggests the file is located in /etc. I ...
9. HTTP Server Response Codes
(Development/HTML)
... in the URL. 405 The method you are using to access the file is not allowed. 406 The page you are requesting exists but you cannot see it because your own system doesn't understand ...
I've been working on a project using php executed from the command line. The project downloads files via FTP from several sources, renames the files and tosses the files into a new directory structure. ...
The location of a user's crontab file, in Linux, varies from distribution to distribution. It can even vary in different releases of a distribution. In Ubuntu (and variants) for release 9.04 the location ...
... outputfile.sql   Restore $ mysql -u username -p --database=databasename < outputfile.sql   That's it, short and sweet. Told ya it was easy!    ...
13. WordPress: Remove Logo on Login Form
(Development/WordPress)
... to something just as ugly perhaps, but less confusing. Unfortunately, we'll need to modify one or two of the WordPress files to get the job done. The first file being: wp-login.php. This will apply to ...
14. Joomla!: DHTML Menus Behind Flash
(Development/Joomla)
... issue with flash. Simply saving the flash file with the WMODE setting set to Transparent is the Adobe fix. That's all well and good, but I'm using Joomla for the site and many of the flash files are called ...
  For the past day or so I've been working through issues to add/change or delete strings in multiple files. As usual there is plethora of methods to do try. Each have a place in an administrator's arsenal. ...
16. Linux: File & Directory Pruning
(Tech Notes/Linux)
On occasion it is necessary to delete older files and directories while retaining the original directory structure. The find command provides a lot of horsepower to get the job done. As I'm not aware of ...
17. Postfix: Delete Deferred
(Tech Notes/Linux)
... with at the moment is a Mac OS-X Server and the data files are stored in /var/spool/postfix subdirectories. It occasionally becomes necessary to delete the content of the deferred mail folder. To accomplish ...
18. Linux CLI: List Users and Groups
(Tech Notes/Linux)
At times it's necessary to get a list of users and groups on a Linux system from the command line interface (CLI). The files containing the information are located in your /etc directory. passwd - This ...
... bridge-utils    2. Next, you must add an entry to the file /etc/network/interfaces to de-        scribe the bridge. The following sample entry creates a bridge called br0, adds        the host ethernet ...
... the keys in your local user directory;             ssh-keygen -t rsa -b 4096 -f $HOME/$HOST-rsync-key After creating the key either upload "-rsync-key.pub" file to the remote system's, root user's /.ssh ...
<< Start < Prev 1 2 Next > End >>