This error happens because your server doesn’t have ServerName Apache 2 variable defined and reverse lookup on your IP address returns nothing. We can specify ServerName as 127.0.0.1 to make this message disappear. Just open your favorite terminal emulator and paste: echo “ServerName 127.0.0.1” | sudo tee -a /etc/apache2/conf.d/server_name Restart Apache sudo service apache2 restart
Create New MySQL User & Grant Priveleges
CREATE USER ‘newuser’@’localhost’ IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON *.* TO ‘newuser’@’localhost’; The *.* refers to Database_Name.Table_Name Reload Privileges FLUSH PRIVILEGES: How To Grant Different User Permissions Here is a short list of other common possible permissions to give users: ALL PRIVILEGES- as we saw previously, this would allow a MySQL user all access […]
Plex Media Server 501 Error on PS3
Seemed to have happened out of nowhere, just started getting errors. Came across this old post, but it seems to have done the trick. 1. Locate your Plug-ins directory (For me, this refers to the /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/ directory.). 2. Delete the System.bundle and Framework.bundle directories. 3. Restart the media server.
Show Full Path in Finder Title Bar
$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
$wpdb::prepare()
I thought $wpdb->prepare() had been working for me. I really did. What I hadn’t realized, or taken the time to learn, was that prepare() functions similarly to printf(), taking placeholders for arguments provided after the query that is being prepared, i.e. $wpdb->prepare(“SELECT * FROM table_name WHERE id = %d AND title = %s SORT BY […]
30 Woothemes Canvas Tweaks
#1: Remove Page Titles .page .title { display: none; } #2: Remove page title from a specific page Change the page id 200 for this one to work .page-id-200 .title { display: none; } #3: Remove image border .entry img, img.thumbnail { background: none; border: medium none; padding: 5px; } #4: Change colour of drop […]