WordPress has an app. That means there’s an API to normalize communication using a predictable programmatic interface. In this case, as with many others, that’s done using a standard REST interface to communicate. The easiest way to interact with any API is to just read some stuff from the server via curl. You can feed curl the URL to the API by using your URL followed by /wp-json – as follows, assuming a URL of https://www.krypted.com: curl https://krypted.com//wp-json To view header information: curl -s -D - https://krypted.com/ -o /dev/null In the below example we’ll ask for a list of posts by adding /wp/v2/posts to the URL: curl https://krypted.com//wp-json/wp/v2/posts You’ll see…
-
-
Installing Final Cut Server on Lion & Mountain Lion Server
Thanks to Allan Sanderson for the following submission, which outlines how to install Final Cut Server in Lion and Mountain Lion Server. In Server.app ————- Websites: Check “Enable PHP web applications” Install Java ———— Open /Applications/Utilities/Java Preferences.app You’ll be prompted by Software Update service to install Java, click “Continue”, provide admin credentials when promopted. Install Final Cut Server ———————— Run Final Cut Server installer. Then run Software Update to get ProApplications 2010-02 & Final Cut Server v1.5.2 updates. Check Configuration ——————- 1) Check fcsvr user has been created: dscl /Local/Default -search /Users RecordName fcsvr Output should look something like this: fcsvr RecordName = ( fcsvr ) 2) Check “fcsvr” user’s…
-
Using the CrashPlan Pro REST API
CrashPlan Pro Server is a pretty cool tool with a lot of great features that can be used to back up client computers. There are a lot of things that CrashPlan Pro is good at out of the box, but there are also a lot of other things that CrashPlan Pro wasn’t intended for that it could be good at, given a little additional flexibility. The REST API that CrashPlan Pro uses provides a little flexibility and as with most APIs I would expect it to provide even more as time goes on. I often hear people run away screaming when REST comes up, thinking they’re going to have to…
-
php from the Command Line
Using php at the command line isn’t an exact science in regard to which scripts that run in a web page will function from the shell. However, if you are automating many tasks, such as how you would go about with a shell script, then php is a nice alternative to other languages. To get started, let’s look at the version of php that we’re running. A quick way to test this is type the following from the command line. php -v This should result in something like the following message, which includes the version of PHP you are running and the current date: PHP 5.3.0 (cli) (built: Jul 19 2009…
-
MagpieRSS, a PHP Based RSS Parser
RSS is an incredibly powerful way to manage content. Using RSS you can provide a feed to users and your website simultaneously. You can then have items your site, such as WordPress dynamically generate pages for browsers using items published in the feed and have users able to view the feed without seeing the rich media objects that you might also put on the site. A basic RSS feed might include something like the following: <item> <title>My Article</title> <link>http://https://krypted.com//article1</link> <description>Some article on my site.</description> </item> Each of the above items is a field that has been defined in the rss file that is used to view your feed, similar to…
-
Mac OS X Server: GUI Security for MySQL
Prior to Mac OS X 10.5 MySQL was administered in a stand-alone application. In 10.5, MySQL has been moved into Server Admin. Many of the security-centric aspects of MySQL should be managed in the my.cnf file or using MySQL tools. However, you can disable network connections using Server Admin unless the database actually needs to be accessed from hosts other than the server. Additionally, many administrators who lack the time to turn MySQL into a bastille of security choose to implement PHPMyAdmin with Mac OS X Server to easily update settings they might not be so quick to find in the command line.
-
Mac OS X Server: php.ini
A customer recently called asking us to expand the timeout variable for downloading files via PHP from their server. By default the php.ini file does not exist in Mac OS X Server. If you need to use php.ini to granularly configure the parameters for PHP then you should download it from php.net by downloading the source code for PHP for the version that comes up when you run php -v from your server. In the tarball there will be a file called php.ini-recommended. Then copy this file to /etc/php.ini and modify the appropriate settings: upload_max_filesize = whatever you want the new maximum to be posters.max_execution_time = 30 max_input_time = 60 post_max_size…
-
Open Source and Development
I originally posted this at http://www.318.com/TechJournal Developers of code have always been fairly open with their tips and tricks. New advancements in the websphere come fast and many of them come from the open source community. Led by people like Linus Torvalds, the original author of Linux, the open source ommunity has rewritten many of the most popular proprietary applications on the market and made them freely available to the world, asking only that if they don’t sell the code you don’t turn around and sell the code as well. This was the foundation for the web. Apache, the most popular web server in use, is a product of the…
-
Installing Joomla! on Mac OS X Server
I originally posted this at http://www.318.com/TechJournal 1. Enable MySQL. 2. Create a database in MySQL called joomladb. 3. Create a new user called jadmin that has full priviledges to this database (the user does not need to be called jadmin, but that is the username we will be using for this walkthrough). 4. Download the latest stable release of Joomla. 5. Extract the tar files into a new folder (for this example we are going to call it joomla to keep things easy). 6. Make the following folders writeable for Joomla administrator/backups/ administrator/components/ administrator/modules/ administrator/templates/ cache/ components/ images/ images/banners/ images/stories/ language/ mambots/ mambots/content/ mambots/editors/ mambots/editors-xtd/ mambots/search/ media/ modules/ templates/ 7.…