<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ServerPress.com</title>
	<atom:link href="http://serverpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://serverpress.com</link>
	<description>Developer and Designer Solutions for WordPress</description>
	<lastBuildDate>Fri, 18 May 2012 21:56:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Resetting Your WordPress Password</title>
		<link>http://serverpress.com/news/resetting-your-wordpress-password/</link>
		<comments>http://serverpress.com/news/resetting-your-wordpress-password/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 02:09:45 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[forgot]]></category>
		<category><![CDATA[lost]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[remember]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=4262</guid>
		<description><![CDATA[Have you ever forgotten your password? It can happen to the best of us. DesktopServer makes it really easy to create multiple sites fast and losing one of your passwords isn&#8217;t uncommon. Perhaps you got side tracked working on another project or the client delayed getting back to you. You revisit your existing site and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever forgotten your password? It can happen to the best of us. DesktopServer makes it really easy to create multiple sites fast and losing one of your passwords isn&#8217;t uncommon. Perhaps you got side tracked working on another project or the client delayed getting back to you. You revisit your existing site and attempt a login only to realize you&#8217;ve totally forgotten the login details! Thankfully, DesktopServer includes the phpMyAdmin utility for administering your WordPress website&#8217;s MySQL database and it allows you to update your password painlessly. Here is how to do it:<span id="more-4262"></span></p>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/select-db.jpg"><img class="alignleft size-medium wp-image-4265" title="Select the database for your website." src="http://serverpress.com/wp-content/uploads/2012/04/select-db-300x197.jpg" alt="" width="300" height="197" /></a>First, open your web browser and visit http://localhost/phpmyadmin. All of your website databases will appear on the left hand side. When DesktopServer creates or imports a new WordPress website, it chooses a name based on the first few characters of your website&#8217;s domain name, followed by &#8216;db&#8217; and a few random characters. For instance, the website www.example.dev might have a database name of &#8216;exampleDBxyz123&#8242;. You can be absolutely sure by checking your website&#8217;s wp-config.php file for the line that defines the DB_NAME value. When you find your database, click the link on the left hand side.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/edit-user.jpg"><img class="alignleft size-medium wp-image-4266" title="Select the wp_users table and click edit for the desired username." src="http://serverpress.com/wp-content/uploads/2012/04/edit-user-300x187.jpg" alt="" width="300" height="187" /></a>Now that your database has been selected, a list of tables should appear as links on the left hand side. Locate the wp_users table and click the link. Next, the contents of the wp_users table should appear displaying users. Find the line listing the user you want to change the password for. You can use the user_login or user_email columns to help you locate the user. In our example, we have only one user, &#8216;admin&#8217;. Click the left most edit link to modify this user&#8217;s password.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/update-password.jpg"><img class="alignleft size-medium wp-image-4267" title="Replace the encrypted password with your new password." src="http://serverpress.com/wp-content/uploads/2012/04/update-password-300x200.jpg" alt="" width="300" height="200" /></a>A detail page will appear when you click the Edit link for a given user. In the first column, look for the row titled &#8216;user_pass&#8217; and set the drop down combo box value to MD5 for the function column. The value column will contain your current password in an encrypted form. You can replace the contents of the value text field with your new password. Simply type it in plain text. Lastly, click the &#8216;Go&#8217; button. The MD5 setting in the drop down combo box will automatically scramble and secure the password for you.</p>
<div class="clear"></div>
<p>You can now visit your WordPress website&#8217;s login page and enter your username and new password to login.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/resetting-your-wordpress-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using NetBeans for WordPress Debugging &amp; Development</title>
		<link>http://serverpress.com/news/using-netbeans-for-wordpress-debugging-development/</link>
		<comments>http://serverpress.com/news/using-netbeans-for-wordpress-debugging-development/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 20:45:14 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2687</guid>
		<description><![CDATA[NetBeans is an excellent, free IDE (Integrated Development Environment) that is well suited for WordPress website development. Coupled with the free or premium version of DesktopServer and you will have a modern, professional IDE setup. Even if you are already using another editor or development environment like Adobe Dreamweaver (great for design, not so great [...]]]></description>
			<content:encoded><![CDATA[<p>NetBeans is an excellent, free IDE (Integrated Development Environment) that is well suited for WordPress website development. Coupled with the free or premium version of DesktopServer and you will have a modern, professional IDE setup. Even if you are already using another editor or development environment like Adobe Dreamweaver (great for design, not so great for debugging), you may still want to give NetBeans a try or use it as your powerful secondary editor. In this post I&#8217;ll show you how easy it is to get started and I&#8217;ll cover the basics of using NetBeans for WordPress development.</p>
<h4>NetBeans IDE</h4>
<p>But first, why NetBeans? NetBeans is a mature editor with years of refinement under its belt. While NetBeans is a serious and optimized editor for C++, Java, and PHP coding, beginners will appreciate the straightforward and simple features. Hardcore developers will appreciate the lighter runtime and active community support for PHP (unfortunately, development has stalled for the heavier Eclipse editor for PHP). Since WordPress &#8216;template tags&#8217; are just PHP functions, NetBeans makes working with WordPress powerful yet elegant. It provides code hinting to predict your needs and help correct your mistakes. For instance, it underlines and changes the font color to make errors obvious. NetBeans tries to understand your code, not just allow you to edit it. A built-in navigation panel allows you to walk through HTML elements, CSS elements, and blocks of PHP code to simplify the critical task of just finding things. Code folding makes reading long complex template documents a breeze by summarizing lines of code into convenient rollovers. This makes it much easier on the eyes (and the brain) by simplifying complex document parts into smaller &#8216;folded&#8217; excerpts. Given the right key combinations, <em>NetBeans will even write code for you</em>.<span id="more-2687"></span></p>
<h4>Getting Started</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2012/03/download-netbeans.jpg"><img class="alignleft size-medium wp-image-3937" title="Download the PHP version for your platform." src="http://serverpress.com/wp-content/uploads/2012/03/download-netbeans-300x255.jpg" alt="" width="300" height="255" /></a>To get started, you will want to visit the NetBeans download page at (<a href="http://NetBeans.org/downloads/index.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/NetBeans.org/downloads/index.html?referer=');">http://netbeans.org/downloads/index.html</a>) and install the version specific for PHP and your computer platform (support for both Mac and Windows). The installer is typical and straight forward. Simply install using the defaults. After installing NetBeans, take a moment to configure a few more options that will make working with NetBeans even better.</p>
<div class="clear"></div>
<div class="clear"><a href="http://serverpress.com/wp-content/uploads/2012/03/enable-debug.jpg"><img class="alignright size-medium wp-image-4006" title="Enable enhanced features." src="http://serverpress.com/wp-content/uploads/2012/03/enable-debug-300x232.jpg" alt="" width="300" height="232" /></a>First, make sure you have checked the &#8216;Enable debug services&#8217; check box in DesktopServer. You can find this setting in DesktopServer&#8217;s first main menu option &#8216;Stop or restart&#8230;&#8217;. Be sure to select the &#8216;Restart&#8217; option followed by clicking the &#8216;Next&#8217; button. Then start NetBeans for the first time and visit the options panel via the pull down menu for your platform: The NetBeans → Preferences on Mac OS X, or Tools → Options menu on Windows.</div>
<div class="clear"></div>
<div class="clear"><a href="http://serverpress.com/wp-content/uploads/2012/03/netbeans-options.jpg"><img class="alignleft size-medium wp-image-4010" title="Netbean options, PHP, Debugging." src="http://serverpress.com/wp-content/uploads/2012/03/netbeans-options-300x253.jpg" alt="" width="300" height="253" /></a>The NetBeans options window will show a number of tabs and sub-tabs. Click the PHP section followed by the Debugging sub tab. You will want to uncheck the &#8216;Stop at First Line&#8217; check box followed by check marking the &#8216;Watches and Balloon Evaluation&#8217;. You can safely ignore the dialog box that appears regarding stability issues with NetBeans. For the most part, debug services outweigh any stability issues that you might encounter. Most issues that we had were purely aesthetic and rare at that. Click OK to close the window and the options panel.</div>
<div class="clear"></div>
<div class="divider-fullwidth"></div>
<h4>Import Your Project</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2012/03/new-project.jpg"><img class="alignleft size-medium wp-image-4015" title="Select the pull down menu File, New Project." src="http://serverpress.com/wp-content/uploads/2012/03/new-project-300x253.jpg" alt="" width="300" height="253" /></a>If you haven&#8217;t already created a project, take a moment to try the simple www.example.dev website as outlined in <a href="http://serverpress.com/news/getting-started-with-desktopserver/" target="_blank">&#8220;Getting Started with DesktopServer&#8221;</a>, steps 1 to 10. Importing your existing project into NetBeans is easy. Use NetBeans&#8217; File → New Project pull down menu to open the New Project dialog. Select the option &#8216;PHP Application with Existing Sources&#8217;, then click the &#8216;Next&#8217; button to continue.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/03/select-source-folder.jpg"><img class="alignleft size-medium wp-image-4017" title="Select the source folder containing your website." src="http://serverpress.com/wp-content/uploads/2012/03/select-source-folder-300x236.jpg" alt="" width="300" height="236" /></a>NetBeans will prompt you for the source folder of your existing WordPress website. Navigate to the root folder by clicking the &#8216;Browse&#8230;&#8217; button and selecting the source folder. Be sure to double-click the source folder (it should contain the wp-content folder). I.e. double-click the www.example.dev folder, followed by clicking the &#8216;Open&#8217; button. By default, DesktopServer uses PHP 5.3 to match the most common hosting provider configurations found on the Internet today. Be sure to click the drop down combo box for the PHP Version and select PHP 5.3. Click the &#8216;Next&#8217; button to continue.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/03/remove-localhost.jpg"><img class="alignleft size-medium wp-image-4022" title="Remove the 'localhost' in http://localhost/www.example.dev/." src="http://serverpress.com/wp-content/uploads/2012/03/remove-localhost-300x263.jpg" alt="" width="300" height="263" /></a>DesktopServer will personalize your website project with its own isolated, unique domain name (on top of the fake .dev top-level domain). Be sure to remove the &#8216;localhost&#8217; in the http://localhost project URL. This will allow you to properly launch, view, and debug your project from NetBeans&#8217; toolbar. In our example, the project URL should simply read http://www.example.dev. Lastly, click the &#8216;Finish&#8217; button and NetBeans will begin scanning and indexing your website for fast search and project navigation. You will be able to quickly find template files, functions and work on all your website files faster when indexing completes (a progress bar may become visible in the lower right hand side until indexing completes).</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/03/set-main-project.jpg"><img class="alignleft size-medium wp-image-4024" title="Right click your project domain name and Set as Main Project." src="http://serverpress.com/wp-content/uploads/2012/03/set-main-project-300x253.jpg" alt="" width="300" height="253" /></a>Set the main project you are working on by right clicking your project&#8217;s domain name and selecting &#8216;Set as Main Project&#8217; from the pop up context menu. Your selected project will appear in bold. You will want to use the &#8216;Set as Main Project&#8217; option to take advantage of NetBeans&#8217; exclusive debugging features which we will cover later in this post. Each time you close and then re-open NetBeans, your last open project and any files that you have open will automatically be displayed in the main document editing area. Window positions and any panels that you have sized to your preference will also be restored automatically. You can rearrange and size the window and panels to your liking. To reset the user interface to the default, simply select the Window → Reset Windows pull down menu.</p>
<div class="clear"></div>
<div class="divider-fullwidth"></div>
<h4>Editing Features</h4>
<p>Get ready to take advantage of some fast, professional development features! NetBeans is a full featured yet free IDE (Integrated Development Environment). But don&#8217;t let the free price fool you. It is a powerful environment that rivals expensive editors that cost hundreds of dollars. In many ways, NetBeans performance and features are unparalleled. Now that you have your project open in NetBeans, you will want to familiarize yourself with the editing features. Like most standard text editors, you can use the File and Edit pull down menus to open, close, and edit files. However, NetBeans offers a more powerful way to work with your website files by displaying the &#8216;Projects&#8217; tab in the upper left hand side. The Projects panel contains a tree structure that shows you all your files and folders. You can easily navigate the tree structure to open a file (via double-click) or copy, rename, create new, or delete files (via a right-click pop-up context menu). Below the Project panel, you&#8217;ll find a special Navigator panel that can help you navigate complex template files. Click the image below for a larger view of the index.php file from our example website. Here, we&#8217;ve opened our index.php file from WordPress&#8217; default Twenty Eleven theme. This file lives in our example site folder at www.example.dev/wp-content/themes/twentyeleven/index.php. Locate the index.php file using the Project panel and double-click to open it. The Navigator panel should appear revealing HTML elements that are present in the file as an easy to read tree structure.</p>
<p style="text-align: center;"><a href="http://serverpress.com/wp-content/uploads/2012/04/code-folding.jpg"><img class="aligncenter  wp-image-4062" title="Use the Navigator panel and Code Folding to traverse template files." src="http://serverpress.com/wp-content/uploads/2012/04/code-folding-1024x598.jpg" alt="" width="737" height="430" /></a></p>
<p>You can use the Navigator panel to quickly find elements (or PHP functions and classes for code gurus) in your template files. Simply expand the HTML tree branch in the Navigator panel to show the child elements. Double clicking the elements will move the cursor in the code editor area and highlight both the starting and ending tags in yellow. This makes locating broken elements a breeze and traversing unfamiliar theme files easier. If your template pages are feature packed or lengthy, you can give your eyes (and scroll bar) a rest by leveraging &#8220;code folding&#8221;. Code folding allows you to summarize blocks of code into one line to reduce the complex appearance of your documents. Your complete document is preserved, but the line numbers are literally skipped from view and represented as an excerpt. Leverage code folding by clicking the +/- symbols (to the right of the line numbers, left of your document&#8217;s actual code). As a shortcut, you can collapse or expand your entire document at once via the pull down menu View → Code Folds. This will allow you to drill down and reveal just the pertinent areas of the file you want to focus on or quickly expand your document to show every line number. A convenient rollover feature allows you to peek inside of code folds by simply hovering the mouse pointer over a collapsed region. Code hinting features are very straight forward: just type and NetBeans will pop up suggestions to auto-complete and write code for you. For instance, if you type within the PHP code blocks wp_ and then pause, NetBeans automatically pops up a selective list of WordPress API functions (which begin with wp_). If you desire, you may select from the list using your arrow keys and just press the enter key. Your cursor is automatically positioned within function parameters for you to continue typing along. If you write your own PHP functions, NetBeans will remember them and suggest them within the context of your project. NetBeans actually tries to understand your code and predict your needs.</p>
<div class="clear"></div>
<div class="divider-fullwidth"></div>
<h4>Search Everything</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/search-in-files.jpg"><img class="alignleft size-medium wp-image-4069" title="Search within Files using the Project panel." src="http://serverpress.com/wp-content/uploads/2012/04/search-in-files-300x260.jpg" alt="" width="300" height="260" /></a>Search is essential to a powerful editor and NetBeans provides <strong>four</strong> essential search features. First, the typical in-file search is available (via Ctrl+F on Windows or Command+F on Macintosh). This will help you locate items in the open document, much like any text editor or word processor. Second, you can search within a group of files or within the entire project by right-clicking a folder in the Project panel and selecting &#8216;Find&#8217; from the pop up context menu. You will be able to quickly search all files within the given folder (and sub folders) for a specific word in an instant. Files matching your search criteria appear in the Search Results panel at the bottom. The Search Results panel displays a convenient list of files with expandable details to show line numbers, cursor positioning and even a little excerpt of where the match exists. Double clicking any of the results immediately opens the file for editing and positions your cursor at the exact location of the successful match. Like in-file search, you can specify case sensitive matching, regular expression pattern matching, and other criteria to help you pinpoint what you are looking for.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/function-find.jpg"><img class="alignleft size-medium wp-image-4072" title="Right-click a function to bring up additional features." src="http://serverpress.com/wp-content/uploads/2012/04/function-find-300x257.jpg" alt="" width="300" height="257" /></a>NetBeans offers two more search / navigation features specifically for PHP developers. The &#8220;Go to Declaration&#8221; and &#8220;Find Usages&#8221; context menus. Simply right-click any PHP function to display the pop up menu. As the name implies, the Go to Declaration menu item will search your entire project for the declaration of a function. This is good for locating items in functions.php or a plugin if your template or plugin development consists of a unwieldy number of files. The complimentary Find Usages menu item conveniently locates everywhere that a given function is being used. In our example image to the right, we&#8217;ve opened up the index.php file in WordPress&#8217; default Twenty Eleven theme and right clicked the function &#8220;twentyeleven_content_nav&#8221;. The function is used to display the content navigation links on the web page. Clicking the Go to Declaration menu will immediately open the functions.php file and position the cursor where the function is defined. Likewise, the Find Usages menu will display a Usages panel which is similar to the Search Results panel when using NetBeans&#8217; Find feature. A list of files, followed by line numbers and quick excerpts displays in the Usages panel allowing the developer to quickly access all the occurrences of where the function is being used. This is especially useful if you have decided to rename something and would like to locate any and all references where the old name is still being used. Search is complimented with a fast and efficient Replace feature should you decide to do bulk renaming across files and folders (accessible via the Edit pull down menu). NetBeans makes searching and navigating a WordPress website&#8217;s files fast and easy.</p>
<div class="clear"></div>
<div class="divider-fullwidth"></div>
<h4>Debugging with NetBeans</h4>
<p>This next section covers features for web designers familiar with PHP and for web developers that wish to take their programming skills to the next level. After all, WordPress&#8217; template tags are merely a collection of PHP functions and many designers are already familiar with theme frameworks that leverage hooks and filters. Surprisingly, not all programmers use a debugger as setup is often a challenge. Using DesktopServer with NetBeans eliminates the setup challenge (no need to configure files manually, ports, or install additional software). For those of us that can&#8217;t keep all the details in our head or need a hint or just want to know what the hell is going on, the debugger is irreplaceable. While there isn&#8217;t enough room in this article to cover the nuances of debugging -much less the fine art of programming patterns for easier debugging, I&#8217;ll at least define the debugging process while focusing on the goal of simply introducing this useful DesktopServer + NetBeans feature.</p>
<h5>Debugging Briefly Defined</h5>
<p>To understand the debugger, we first need to cover programming fundamentals: you write instructions like musical notes, and the computer plays them back like a musician reading a score. This analogy could be extended to a needle on a record (remember those?), playing back the recorded musical notes as the record spins. When you alter template files (or any .php files), you are changing the musical notes that are &#8216;played back&#8217; when the web page loads. For the most part, musical notes are read in order like a book, line by line from top to bottom. Things get complicated when we introduce conditionals (&#8216;if&#8217; and &#8216;switch&#8217; statements) that can change the position of the needle on the record or line number, or even the current page where we are reading those musical notes. This is where the NetBeans debugger can really help: by stopping the needle on the record and keeping the record from spinning (until we want it too). We are allowed to review the musical notes that have already been played and future notes that are about to be played. By tracing the flow of instructions (&#8216;notes&#8217;), we can understand where we are going and how we got there. Which is helpful if we are not seeing what we expected, or if we are just plain lost. As a bonus, the debugger also keeps a journal of where we&#8217;ve been and a powerful watch tool to help us if we are out-of-tune or off-key, so to speak.</p>
<h5>Starting the Debugger</h5>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/inspect-variables.jpg"><img class="alignleft size-medium wp-image-4077" title="Use Debug Main Project button on the toolbar to start debugging." src="http://serverpress.com/wp-content/uploads/2012/04/inspect-variables-300x221.jpg" alt="" width="300" height="221" /></a>So let&#8217;s get started! First, you will want to begin by creating a &#8216;breakpoint&#8217;. A breakpoint is simply a location in our PHP file that defines a line number where we want to pause execution (or in our record player analogy, stop the needle from playing more musical notes). Setting a breakpoint is easy, just click the line number that contains PHP code and the entire line will change from a white background to red. The red line is an indicator of a breakpoint. To follow along with the image to the left, open WordPress&#8217; default Twenty Eleven theme folder and create a breakpoint on line number 22 of the index.php file (i.e., at /wp-content/themes/twentyeleven/index.php). Second, click the &#8216;Debug Main Project&#8217; button on the toolbar. This button appears to the right of the green arrow icon. The green arrow button is also known as the &#8216;Run Main Project&#8217; button, which only starts your default web browser (if it isn&#8217;t opened already) and visits your site&#8217;s homepage. No big deal there. You could have just as easily opened your web browser and typed in the URL to your website. The second button is much more important: &#8216;Debug Main Project&#8217; because it changes NetBeans from an editor to a debugger.</p>
<p>Once in debug mode, the extra debug buttons will appear on the toolbar and your default web browser will open. Your browser will appear as if it is loading forever (this is because we&#8217;ve paused the record). Switch your focus back to NetBeans and you will notice that the editor is in debug mode. The additional &#8216;step&#8217; icon buttons should appear along with a green line where the red line for our breakpoint formerly resided. The green line represents the &#8216;instruction pointer&#8217; (or needle in our record player analogy) showing us the next line of code to be run. You&#8217;ve now stopped on your first breakpoint and can try to inspect what WordPress is doing internally, such as variable values and the call stack (the journal or where we have been). With NetBeans in debug mode, look for the Variables panel. By default, the Variables panel should appear as a tab at the bottom of NetBeans&#8217; main editor window. Follow through with step 4 (as shown in the image above) and right-click within the Variables panel and select &#8216;New Watch&#8230;&#8217; from the context pop-up menu. A dialog box should appear allowing you to type in a variable to inspect the contents. In our example, we typed in the global $post variable to see the current post being accessed in WordPress. The Variables panel will update and show us the variable contents. Since the $post variable is actually an object containing other public PHP properties, it will appear as a tree structure that you can click to further expand and see its contents. You can remove the variable by right-clicking $post in the list and selecting &#8216;Delete&#8217; from the pop up context menu.</p>
<div><a href="http://serverpress.com/wp-content/uploads/2012/04/peek-variables.jpg"><img class="alignleft size-medium wp-image-4075" title="Use the Variables panel to peek at WordPress internals." src="http://serverpress.com/wp-content/uploads/2012/04/peek-variables-300x182.jpg" alt="" width="300" height="182" /></a>You can only inspect variable contents while the instruction pointer is paused on a breakpoint. Your web browser may appear blank or to have stalled, waiting for the rest of the webpage to load. To complete the webpage loading (or continue our record playing music analogy), click the Continue button. The Continue button appears as the green circle with a right facing arrow to the right of the Debug Main Project button. NetBeans will finish transmitting the entire webpage to your browser and the page should render. Using the Continue button does not stop NetBeans&#8217; debug mode. If you click &#8216;reload&#8217; on your web browser or type the URL to a web page that stumbles across the same breakpoint, the instruction pointer (record player needle) will pause playback on the same breakpoint. Your webpage will appear loading indefinitely and you can inspect variable values again or click Continue to resume playback. To switch back to editing your documents and exit NetBeans&#8217; debug mode, use the Stop Debug button. Stop appears as a red square with a white center and returns NetBeans to editor mode. Editor mode is where you can safely make changes and see them reflected the next time you visit your web pages or start the debug process again. So far we&#8217;ve covered the first four buttons on the debugger toolbar:</div>
<div>
<ol>
<li>Run Main Project &#8211; simply open your default web browser and visit your WordPress&#8217; home page. For the most part, we can ignore this button.</li>
<li>Debug Main Project &#8211; Put NetBeans into debug mode while also opening up your web browser to visit your WordPress&#8217; home page, but stop on any pre-defined breakpoints. This is our most important button.</li>
<li>Finish Debugger (a.k.a. Stop) &#8211; Stops the debugging process and puts NetBeans back into editor mode, allowing you to safely make edits to your documents.</li>
<li>Continue &#8211; Continue debugging and stopping on the next pre-defined breakpoints (if any).</li>
</ol>
</div>
<div class="clear"></div>
<h5>Going Step By Step</h5>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/debug-toolbar.jpg"><img class="size-medium wp-image-4099 alignleft" title="Use the debugging toolbar to navigate code step by step." src="http://serverpress.com/wp-content/uploads/2012/04/debug-toolbar-300x98.jpg" alt="" width="300" height="98" /></a>The additional step buttons on the tool bar are equally important to debugging and each restarts then pauses the playback of our &#8216;record player&#8217; but with subtle differences. To understand the differences, we need to go back to our basic programming fundamentals again: PHP code is often written in titled paragraphs (known as functions) that are re-played by simply referring to the paragraph title (the function name). Calling the function by name repeatedly allows PHP programmers to invoke the same paragraph of behavior without having to re-write the entire paragraph over and over. In fact, most of WordPress is simply functions that call other functions and so on. Keep in mind that those function definitions may exist in other PHP files throughout your WordPress project. For convenience, the NetBeans debugger provides the Step Over button as the first step button on the toolbar, just to the right of the Continue button. Pressing the Step Over button will advance to the next line of PHP code (usually in the current file you are viewing). Step Over will skip jumping to other functions and stepping through their lines of code (and avoids opening up the other files containing function definitions). The lines of code for the called functions still get processed (as with all the debugger buttons), but we just don&#8217;t have to go through every line of code and open all their associated files, which can quickly become cumbersome.</p>
<p>In contrast to the Step Over button is the Step Into button. Unlike Step Over, Step Into will show us every line of PHP code the instruction pointer processes. The button will &#8216;Step Into&#8217; every function definition&#8217;s lines of code. If a function is defined in another file and is not a native PHP function (PHP&#8217;s basic built-in vocabulary), the Step Into button will automatically open and load the file where the function lives and place the instruction pointer on the first line within the function definition. More often than not, functions usually call other functions, which call other functions, and so on. With function definitions spread across multiple files, things can get complicated rather quickly.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2012/04/call-stack.jpg"><img class="alignleft size-medium wp-image-4137" title="Use the Call Stack to trace the source code route up to your breakpoint." src="http://serverpress.com/wp-content/uploads/2012/04/call-stack-271x300.jpg" alt="" width="271" height="300" /></a>Thankfully, NetBeans provides another window panel to help sort out called functions and their files: the Call Stack. By default, the Call Stack appears while NetBeans is in debug mode just below the main editor window as a tab next to the Variables panel. It is like a journal that shows us a list of files loaded along the way to our breakpoint. The Call Stack shows listings such as plugin files that loaded and their processed order. The list is similar to the browser history of clicked hyperlinks in your web browser. Ever wanted to know which plugin files are loaded first or at all? Check the Call Stack. You can double-click any of the entries in the Call Stack list and the given PHP file will open and the cursor will automatically be placed on the last line number that the file processed before calling another PHP function in another PHP file.</p>
<div class="clear"></div>
<p>The second to last button in the debug toolbar group is the Step Out button. It provides a convenient way to &#8216;Step Out&#8217; of the current child function and pause immediately within the parent calling function. It acts like the back button on your web browser by taking you back to the original calling function. Lastly, there is the Run to Cursor button. As the name implies, this button works like the Continue button by letting the instruction pointer progress to where ever our blinking cursor is positioned before pausing again. You can use the Run to Cursor button by placing the cursor on a line ahead of the instruction pointer&#8217;s current green line (the line must contain valid PHP code). After placing the blinking cursor on another line, press the Run to Cursor button and the instruction pointer will advance until it reaches the blinking cursor. If the cursor does not contain PHP that the instruction pointer will pass through, the effect is the same as the Continue button. The Run to Cursor button is great for stepping through multiple lines of code to reach what you consider is important to walk through. It also makes cycling through loops easier. As we mentioned earlier, the computer reads our PHP scripts much like a musician reads music note by note, line by line. Repeatable lines of music sometimes accompany music scores in the form of &#8216;repeat barlines&#8217; and &#8216;volta brackets&#8217;. Don&#8217;t worry if you are not familiar with music scores. As a developer, you should simply know that PHP includes special statements for loops, and conditionals (&#8216;if&#8217;, &#8216;switch&#8217;, &#8216;while&#8217;, &#8216;for&#8230;&#8217;, etc.) that influence which lines of code get processed next. One of the most important loops that you should familiarize yourself with is the post loop (a.k.a. <a title="The Loop definition" href="http://codex.wordpress.org/The_Loop" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/The_Loop?referer=');">The Loop</a> in the official codex). You can use the step buttons to follow the instruction pointer along and see how loops get processed and how the instruction pointer moves through files which can help you find problem areas.</p>
<h5>Debugging Tips</h5>
<p>Here are some tips that can help make working with the debugger easier.</p>
<ul>
<li>You can only create breakpoints on lines that contain PHP code. If you would like to create a breakpoint on an arbitrary line, you can always try placing a non-trivial PHP code block to set a breakpoint on a line, such as: &lt;?php $x = 1; ?&gt; <!--?php $x = 1; ?-->followed by clicking the line number to set the breakpoint.</li>
<li>Keep in mind that you can create breakpoints even during debug mode. If you step past a line of interest, simply go back and click the line number to create a breakpoint. You can then restart debug mode by using the Stop and Debug Main Project buttons.</li>
<li>Running in debug mode is slower than simply visiting the website with the debugger stopped because NetBeans must gather extra data. However, you can still gauge relatively slow parts of your program (or plugins) by setting multiple breakpoints and using the Continue button to estimate the length of time before breakpoints turn from red to green.</li>
<li>Breakpoints are preserved even after you close and re-open files. To clear all breakpoints in a given project, use the Breakpoints window panel that is accessible via Ctrl+Shift+5 or via the pull down menu:<br />
Window → Debugging → Breakpoints.</li>
<li>You can add a variable to the Variables panel quickly by simply placing the cursor on the variable and pressing Shift+Ctrl+F7 on Windows or Shift+Command+F7 on Macintosh. You can also right-click and select &#8216;New Watch&#8217; to watch the variable contents in the Variables window panel.</li>
<li>WordPress has dozens of <a href="http://codex.wordpress.org/Global_Variables" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Global_Variables?referer=');">global variables (see http://codex.wordpress.org/Global_Variables)</a> that you can use and examine. In some cases, you may need to prepend the &#8216;global&#8217; statement to gain access. For instance, choose a location for your breakpoint and prepend the PHP block <!--?php global $wp; ?--> <!--?php global $wp; ?-->before the breakpoint and you will be able to add the $wp variable to your Variables panel to view its contents.</li>
<li>Some WordPress <a href="http://codex.wordpress.org/Template_Tags/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Tags/?referer=');">template tags</a> and <a href="http://codex.wordpress.org/Function_Reference" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference?referer=');">functions</a> have return values, while others echo them out to the display. Often times there is a return value equivalent of the same function or an option parameter that you can pass to get a return value (i.e. see <a href="http://codex.wordpress.org/Function_Reference/wp_list_categories" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference/wp_list_categories?referer=');">wp_list_categories</a> &#8216;echo&#8217; parameter). Casting a return value into a variable can assist in viewing the contents in the Variables panel. You could cast a return value from a function into a variable such as $x =<a href="http://codex.wordpress.org/Function_Reference/get_bloginfo" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference/get_bloginfo?referer=');"> get_bloginfo(&#8216;name&#8217;);</a> (versus using the echoing version of the same function <a href="http://codex.wordpress.org/Template_Tags/bloginfo" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Tags/bloginfo?referer=');">bloginfo(&#8216;name&#8217;);</a> ) to find out the value.</li>
<li><a href="http://codex.wordpress.org/Template_Tags/bloginfo" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Tags/bloginfo?referer=');">F</a>or additional information specific to NetBeans debugging with PHP, see <a href="http://netbeans.org/kb/docs/php/debugging.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/netbeans.org/kb/docs/php/debugging.html?referer=');">Debugging PHP Source Code in the NetBeans IDE at http://netbeans.org/kb/docs/php/debugging.html.</a></li>
</ul>
<div class="clear">If you can master the art of basic debugging, you do not need to know everything about the a program to change, hack, or morph code to your needs. Debugging reveals to you the working internals of everything, much like a microscope can show structors of a larger component. You&#8217;ll be able to decipher the characteristics and behavior of an application based on its fundamental pieces and know which functions are being used. Most importantly, the debugger can reveal why something is happening or NOT happening such as when a condition is not being met. You won&#8217;t need to know everything about a program&#8217;s design or even programming design patterns and methodologies to start working with the debugger. Debugging takes a lower level approach and will allow you to see under WordPress&#8217; hood and watch how the program makes decisions and outputs various portions of your template files or, just as importantly, why it does not.</div>
<div class="clear"></div>
<h4>Conclusion</h4>
<p>NetBeans is a free yet elegant code editor that supports powerful features often reserved for expensive commercial products such as code folding, a code navigator, and project manager. It tries to understand your code by providing predictive code hints and highlighting errors. NetBeans also includes important search features that support selective pattern matching, advanced regular expressions, and search &amp; replace (either globally, locally or with a custom filter). When coupled with DesktopServer, NetBeans provides a strong debugging tool. However, we have only scratched the surface of NetBeans as there are many more powerful features that we have not covered: such as Git/SVN/other source code integration, differencing, unit testing, code profiling, refactoring and MySQL integration to name a few. NetBeans can scale well for beginning development professionals to seasoned development masters and is able to assist you more and more as your skill level improves and project needs increase. For instance, you may wish to <a href="http://www.nutt.net/2012/03/30/adding-wordpress-templates-to-netbeans/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.nutt.net/2012/03/30/adding-wordpress-templates-to-netbeans/?referer=');">add WordPress specific templates to NetBeans</a> or leverage NetBeans&#8217; plugin repository to make <a href="http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=21086" target="_blank" onclick="pageTracker._trackPageview('/outgoing/plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=21086&amp;referer=');">PHP documentation one click away</a>. The amazing NetBeans IDE is free, fast, lightweight, and even easier to use when coupled with either the free or premium version of DesktopServer. NetBeans is well worth the download even if you only use a fraction of its features. Give it a try!</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/using-netbeans-for-wordpress-debugging-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sponsoring WordCamp San Diego 2012</title>
		<link>http://serverpress.com/news/sponsoring-wordcamp-san-diego-2012/</link>
		<comments>http://serverpress.com/news/sponsoring-wordcamp-san-diego-2012/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 07:01:53 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[sponsor]]></category>
		<category><![CDATA[training]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=3958</guid>
		<description><![CDATA[We&#8217;re happy to be accepted as an official sponsor for WordCamp San Diego 2012 &#8220;Spring Training&#8221;. WordCamps are casual, locally-organized, non- profit conferences covering everything related to WordPress. They typically include sessions on how to use WordPress more effectively. Check out the WordCamp San Diego 2012 pages for more information on what you can expect [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://serverpress.com/wp-content/uploads/2012/03/web_badges_sponsoring2.jpeg"><img class="alignleft size-full wp-image-3959" title="WordCamp San Diego" src="http://serverpress.com/wp-content/uploads/2012/03/web_badges_sponsoring2.jpeg" alt="" width="150" height="150" /></a>We&#8217;re happy to be accepted as an official sponsor for WordCamp San Diego 2012 &#8220;Spring Training&#8221;. WordCamps are casual, locally-organized, non- profit conferences covering everything related to WordPress. They typically include sessions on how to use WordPress more effectively.</p>
<p>Check out the WordCamp San Diego 2012 pages for more information on what you can expect from WordCamps. You can find links back to WordCamp central and where to find WordCamps in a city near you. Hopefully we&#8217;ll be there to meet you too! Please visit <a href="http://2012.sandiego.wordcamp.org/about/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/2012.sandiego.wordcamp.org/about/?referer=');">http://2012.sandiego.wordcamp.org/about/</a> to learn more.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/sponsoring-wordcamp-san-diego-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying Your Website Using cPanel</title>
		<link>http://serverpress.com/news/deploying-your-website-using-cpanel/</link>
		<comments>http://serverpress.com/news/deploying-your-website-using-cpanel/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 20:27:30 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2007</guid>
		<description><![CDATA[Deploying your WordPress website from your desktop to a live server is easy if your host uses cPanel. You won&#8217;t even need to mess around with FTP software as cPanel includes a file manager utility that can greatly simplify and speed this task for you. DesktopServer Premium also features a Quick Deploy feature that can [...]]]></description>
			<content:encoded><![CDATA[<p>Deploying your WordPress website from your desktop to a live server is easy if your host uses cPanel. You won&#8217;t even need to mess around with FTP software as cPanel includes a file manager utility that can greatly simplify and speed this task for you. DesktopServer Premium also features a <a href="http://serverpress.com/news/using-quick-deploy-on-a-live-server/">Quick Deploy</a> feature that can make it faster for small to medium-sized sites. But in this post I&#8217;ll show you how to deploy a site manually with cPanel alone which is better suited for larger or more complex sites that Quick Deploy may not support. There are three basic steps to deploying manually:</p>
<ol>
<li>Create an Empty Database</li>
<li>Export Your Development Website</li>
<li>Upload Your Website Data</li>
</ol>
<p><span id="more-2007"></span></p>
<h4>Step 1 &#8211; Use cPanel to Create an Empty Database</h4>
<p>WordPress separates style and content by storing page and post content in a MySQL database. This requires that you create an empty database for storing your website content. Thankfully, cPanel makes it simple to create a new database for your content.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2012/01/mysql-db-wizard.jpg"><img class="alignleft size-medium wp-image-3319" title="Locate the MySQL Database WIzard icon" src="http://serverpress.com/wp-content/uploads/2012/01/mysql-db-wizard-300x174.jpg" alt="" width="300" height="174" /></a>First login to cPanel, navigate to the Databases section and click on the icon titled &#8220;MySQL Database Wizard&#8221;. The database wizard will allow you to quickly do the following:</p>
<ul class="services-list" style="white-space: nowrap;">
<li>Create a database and name it.</li>
<li>Create a username for the database.</li>
<li>Specify a password for the database.</li>
<li>Grant the username privileges to the database.</li>
</ul>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/01/create-dbname.jpg"><img class="alignleft size-medium wp-image-3317" title="Create a database name." src="http://serverpress.com/wp-content/uploads/2012/01/create-dbname-300x219.jpg" alt="" width="300" height="219" /></a>After clicking the &#8220;MySQL Database Wizard&#8221; icon, you can then specify your database name. Your database name may be prefixed with your cPanel account username followed by an underscore. Be sure to record your complete database name with the prefix and underscore (i.e. scarroll_example). Click the &#8220;Next Step&#8221; button to continue.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/01/create-username-and-pass.jpg"><img class="alignleft size-medium wp-image-3318" title="Create a username and password." src="http://serverpress.com/wp-content/uploads/2012/01/create-username-and-pass-300x219.jpg" alt="" width="300" height="219" /></a>Next, you will be prompted for a database username. Like the name of your database, your chosen database username maybe prefixed with your cPanel account username followed by an underscore. For simplicity, you can use the same name for both the database username and the database name (this will also make it easier for phpMyAdmin to manage). Next, specify a password or click the &#8220;Password Generator&#8221; button to have a password generated for you. Click the &#8220;Create User&#8221; button to continue.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/01/all-privileges.jpg"><img class="alignleft size-medium wp-image-3316" title="Record your database, username and password. Be sure to grant all privileges." src="http://serverpress.com/wp-content/uploads/2012/01/all-privileges-300x220.jpg" alt="" width="300" height="220" /></a>Be sure to record your database name, username and password on the following screen as you will need this information when exporting your website from DesktopServer. Lastly, you will see the privileges section. Simply click the &#8220;All Privileges&#8221; checkbox as WordPress will need all privileges to work effectively. Click the last &#8220;Next Step&#8221; button to finish and complete the MySQL Database Wizard.</p>
<div class="clear"></div>
<p>Now that you have an empty database created on your live server with valid credentials, your next step will be to give the database credentials to DesktopServer&#8217;s export process. This will allow DesktopServer to prepare a copy of your wp-config.php file for hosting on your live server.</p>
<h4>Step 2 &#8211; Use DesktopServer to Export Your Development Website</h4>
<p>Provide those user credentials you recorded from your live server in step 1 to DesktopServer so that we can create an export that will work on your live server.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2011/11/exportImport.jpg"><img class="alignleft size-medium wp-image-1659" title="Export or import a website" src="http://serverpress.com/wp-content/uploads/2011/11/exportImport-300x229.jpg" alt="" width="300" height="229" /></a>First, start DesktopServer and select the last option to &#8220;Export or import a website&#8221;, followed by the &#8220;Export a website archive&#8221; option. Clicking the &#8220;Next&#8221; button will take you to the export options screen.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/11/exportOptions.jpg"><img class="alignleft size-medium wp-image-1664" title="Fill out database credentials. Use localhost for the Host field if you do not have one." src="http://serverpress.com/wp-content/uploads/2011/11/exportOptions-300x224.jpg" alt="" width="300" height="224" /></a>The export options screen will display a drop down list of websites that you have created on DesktopServer. Select the website that you want to export to your live server followed by the database name and credentials you obtained using the MySQL Database Wizard. Unless you were provided with a specific host, <em><strong>be sure to type</strong></em> <code>localhost</code> <em><strong>for the &#8220;Host&#8221; field</strong></em>. Then click the &#8220;Next&#8221; button to continue.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/11/export2.jpg"><img class="alignleft size-medium wp-image-1670" title="Define your live Site Name" src="http://serverpress.com/wp-content/uploads/2011/11/export2-300x224.jpg" alt="" width="300" height="224" /></a>Lastly, you will need to provide the live server domain name that users will use to reach your site. Be sure to include the valid TLD (top level domain) extension (i.e. www.example.com, postmy.info, testing.co.uk, etc.).</p>
<div class="clear"></div>
<p>Click the &#8220;Next&#8221; button and DesktopServer will start exporting your website, replacing .dev with your chosen top level domain in the database and php files. You will see a link to the folder containing your file archive. The archive will contain your complete WordPress website which includes the WordPress core files, themes, plugins, and a complete export of your database as a text file called database.sql.</p>
<h4>Step 3 &#8211; Upload Your Website Data</h4>
<p>Deploying your website manually is a simple two-part process: 1) Import your database and 2) Upload your WordPress files. We will start with extracting the database.sql file from our archive. Decompress the archive file by double clicking it (on Macintosh) or right-clicking it and selecting &#8220;Extract All&#8230;&#8221; from the pop-up context menu (on Windows). Open the extracted folder and move the database.sql file to the desktop or a new place by dragging it from the folder.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/compress-database-separately.jpg"><img class="alignleft size-medium wp-image-3569" title="Move the database.sql file out of the decompressed folder." src="http://serverpress.com/wp-content/uploads/2012/02/compress-database-separately-300x195.jpg" alt="" width="300" height="195" /></a>Your database.sql file may be large if your website has a lot of posts and pages or uses third-party plugins to store an extensive amount of data (i.e. real estate listings, list of products for eCommerce, etc.). In either case you may wish to compress the database.sql for faster uploading as a separate zip archive. Simply right-click the database.sql file and select the &#8216;Send To → Compressed (zipped) Folder&#8217; (on Windows) or &#8216;Compressed &#8220;database.sql&#8221;&#8216; (on Macintosh) from the pop-up context menu. It is important to make sure that the file name ends with a &#8220;.sql.zip&#8221; otherwise cPanel&#8217;s phpMyAdmin may not know what to do with the file. By default, Windows renames the file and removes the sql extension to read just &#8220;database.zip&#8221;. Windows users must rename the file (right-click and select rename) to database.sql.zip for compatibility.</p>
<h5>Import Your Database</h5>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/import-db.jpg"><img class="alignleft size-medium wp-image-3576" title="Import the database.sql.zip file into your live server database." src="http://serverpress.com/wp-content/uploads/2012/02/import-db-300x201.jpg" alt="" width="300" height="201" /></a>Now go to your live website&#8217;s cPanel and click on the phpMyAdmin icon. phpMyAdmin should appear and present you with a list of databases on the left hand side. Select the database by the name you used in Step 1. Be sure to select your database first as we&#8217;ll be uploading the database.sql.zip file and it is important to have the proper database selected. Next, click the Import tab at the top of the phpMyAdmin page, followed by the &#8220;Browse&#8221; button and select the database.sql.zip file. Lastly, click the &#8220;Go&#8221; button to begin uploading and importing your data into your live website database.</p>
<div class="clear"></div>
<h5>Upload You WordPress Files</h5>
<p>Next, you will need to upload your WordPress website files and folders. Once again, cPanel makes this incredibly easy and significantly faster then having to use a client FTP program. You will be able to take advantage of maximum compression without having to wait on uploading multiple files because cPanel will allow you to use the server to decompress and move files. Start by going back to your extracted folder from your website archive. This folder will be much smaller since you&#8217;ve moved the database.sql file out of it. Before compressing it, be sure to move or discard the original website archive that contained the database.sql file to avoid confusion (as it will have a similar .zip name). To re-compress the extracted folder that has only your WordPress website files (minus the database.sql you moved out), right-click the folder and select the &#8216;Send To → Compressed (zipped) Folder&#8217; (on Windows) or &#8216;Compressed&#8217; (on Macintosh) from the pop-up context menu.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/cpanel-upload-zip.jpg"><img class="alignleft size-medium wp-image-3581" title="Use the file manager to upload our WordPress files." src="http://serverpress.com/wp-content/uploads/2012/02/cpanel-upload-zip-300x174.jpg" alt="" width="300" height="174" /></a><a href="http://serverpress.com/wp-content/uploads/2012/02/cpanel-file-manager-upload.jpg"><img class="alignright size-medium wp-image-3587" title="Remove index.html (if present) and upload the zip." src="http://serverpress.com/wp-content/uploads/2012/02/cpanel-file-manager-upload-300x179.jpg" alt="" width="300" height="179" /></a></p>
<div class="clear"></div>
<p>After compression, you can upload the file using cPanel&#8217;s File Manager. Select the File Manager icon from cPanel and select your website root folder. The website root folder is usually labeled www or public_html. You might have both folders where one is simply an alias for the other. Highlight the folder in the left hand side of the File Manager and select the &#8220;Upload&#8221; icon from the toolbar.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/upload-our-zip.jpg"><img class="alignleft size-medium wp-image-3593" title="Upload our website files quickly as one compressed package." src="http://serverpress.com/wp-content/uploads/2012/02/upload-our-zip-300x212.jpg" alt="" width="300" height="212" /></a>Clicking &#8220;Upload&#8221; will cause File Manager to present you with a webpage to upload your website archive file. Click &#8220;Browse&#8221; and select your file. A progress bar will automatically be displayed indicating the progress of your upload. The status will change to &#8220;Complete&#8221; when the upload has finish. After the file finishes uploading, go back to File Manager&#8217;s list of files. If the uploaded archive isn&#8217;t initially visible, try the &#8220;Reload&#8221; icon above the list of files.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/extract-zip.jpg"><img class="alignleft size-medium wp-image-3594" title="Extract your WordPress files from the archive." src="http://serverpress.com/wp-content/uploads/2012/02/extract-zip-300x169.jpg" alt="" width="300" height="169" /></a>Next, find and click the archive file to highlight it. Use the &#8220;Extract&#8221; icon on the button toolbar to extract the contents of the website archive. By default, the contents of the file will be extracted to a folder with the same name as the archive file. You may need to wait while the server extracts the files. If the folder does not appear visible, try the &#8220;Reload&#8221; button above the list of files.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2012/02/move-files.jpg"><img class="alignleft size-medium wp-image-3595" title="Move the extracted files to your site root folder." src="http://serverpress.com/wp-content/uploads/2012/02/move-files-300x175.jpg" alt="" width="300" height="175" /></a>You will need to move the contents of the extracted files folder to the site root. cPanel makes moving the files easy. Select the extracted folder in the folder list (left hand side) or double-click the extracted folder in the file list view (right hand side in the File Manager) to view the list of extracted files. With the folder contents revealed, simply click the &#8220;Select all&#8221; button above the list of files followed by the &#8220;Move File&#8221; icon on the icon toolbar. Use the backspace (delete on Macintosh) key to correct the folder path to read /public_html/ as we will want to move the files to the site root.</p>
<div class="clear"></div>
<p>After moving the files to the correct location, you can discard (delete) the website archive along with the extracted folder by simply highlighting (click) the items in File Manager and clicking the &#8220;Delete&#8221; icon (red &#8216;X&#8217;) on the icon toolbar. You should now be able to visit your website&#8217;s home page (i.e. http://www.example.com). However, you may need to first update your .htaccess file by re-saving your permalink settings from WordPress&#8217; admin pages. To access WordPress&#8217; admin pages, visit the sub-folder &#8216;wp-admin&#8217; (i.e. http://www.example.com/wp-admin). Go to the Settings → Permalinks menu followed by clicking the &#8220;Save Changes&#8221; button. If you are installing a WordPress multisite, you may need to update your .htaccess file manually by visiting the Settings → Network Setup menu and updating the .htaccess file with the suggested settings found there. You can use cPanel&#8217;s File Manager to edit any PHP file by selecting the file and using the &#8220;Edit&#8221; icon on the toolbar. By using DesktopServer&#8217;s export functions to prepare your website along with cPanel&#8217;s built-in File Manager, you can speed deployment of your complex or larger WordPress websites on a live server without any extra tools or utilities. Equipped with this experience and knowledge will make you a more skilled and valuable WordPress developer. You will be able to take on larger projects on a multitude of professional hosting providers that support the cPanel interface.</p>
<h4>Troubleshooting</h4>
<p>Error establishing a database connection &#8211; This is an indicator of an incorrect username, database name, or password in the wp-config.php file. You can correct and/or double-check these items from within File Manager. Simply find the file using cPanel&#8217;s File Manager by clicking the public_html folder from the folder list (left hand side of File Manager). Select the wp-config.php file in the file list and click the &#8220;Edit&#8221; icon on the toolbar to edit the file contents on the live server. An editor will appear that will allow you to edit the file contents. Look carefully at the definitions for the DB_NAME, DB_USER, DB_PASSWORD and DB_HOST. You can save changes via the &#8220;Save Changes&#8221; button in the upper right hand corner of your web browser.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/show-hidden.jpg"><img class="alignleft size-medium wp-image-2219" title="Show Hidden File Option" src="http://serverpress.com/wp-content/uploads/2011/12/show-hidden-300x240.jpg" alt="" width="300" height="240" /></a>You will have to turn on hidden files if you need to open the .htaccess file manually to edit it. The opportunity to show hidden files is shown when first you click on the File Manager icon in cPanel. A prompt will ask you if you want to see hidden files or if you want to dismiss the prompt in future sessions. To reset the prompt and to see the view hidden files checkbox again, use the reset interface link in cPanel.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/deploying-your-website-using-cpanel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New DesktopServer Version 3.3.1 Released</title>
		<link>http://serverpress.com/news/new-desktopserver-version-3-3-1-released/</link>
		<comments>http://serverpress.com/news/new-desktopserver-version-3-3-1-released/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 08:02:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Software Updates]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=3283</guid>
		<description><![CDATA[Note: Existing users should use our update instructions below to preserve existing sites. A new version of DesktopServer (version 3.3.1) is now available in our downloads section. This version includes critical and important updates to both our free DesktopServer Limited and DesktopServer Premium version. Update Instructions First, you must stop web and database services using [...]]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #ffff99;"><em>Note: Existing users should use our update instructions below to preserve existing sites.</em></span></p>
<p>A new version of DesktopServer (version 3.3.1) is now available in our downloads section. This version includes critical and important updates to both our free DesktopServer Limited and DesktopServer Premium version.</p>
<p><span id="more-3283"></span></p>
<h4>Update Instructions</h4>
<ol>
<li>First, you must stop web and database services using DesktopServer&#8217;s first option &#8220;Stop or restart the web and database services&#8221;, followed by &#8220;Stop the web and database services&#8221;. Once database and web services have stopped, be sure to close the DesktopServer application.</li>
<li>Download the ZIP archive for your specific platform (Windows or Macintosh) with the &#8216;Update Only&#8217; option from our <a href="http://serverpress.com/downloads">download page</a>.</li>
<li>Replace the main application program inside your current server folder by first deleting the existing DesktopServer application file (drag only this single file to the trash):</li>
<ol>
<li>For Mac, first drag only the existing &#8220;DesktopServer.app&#8221; to the trashcan, you maybe prompted for your password.</li>
<li>For Windows computers, first delete only the existing &#8220;DesktopServer.exe&#8221;.</li>
<li>Next, move the new DesktopServer <strong>and Update folder</strong> to your <code>c:\xampplite</code> (Windows) or XAMPP (Macintosh) folder.</li>
</ol>
<li>Start the new DesktopServer application. The contents of the Update folder will automatically be merged with your current installation and may take a several minutes to complete. Once complete, DesktopServer will restart.</li>
</ol>
<h4>Change Log</h4>
<p>This version (3.3.1) includes the following updates:</p>
<ul>
<li>New Blueprints option for non-WordPress sites (the &#8216;Version&#8217; label has been replaced with &#8216;Blueprint&#8217;).</li>
<li>New support for native language WordPress in the blueprints folder. Tested with <a href="http://fr.wordpress.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/fr.wordpress.org/?referer=');">French</a>, <a href="http://de.wordpress.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/de.wordpress.org/?referer=');">German</a>, <a href="http://es.wordpress.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/es.wordpress.org/?referer=');">Spanish</a>, <a href="http://lv.wordpress.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/lv.wordpress.org/?referer=');">Latvian</a>.</li>
<li>Now includes WordPress 3.3.1 core files in the blueprints folder.</li>
<li>Additional fixes for <a href="http://serverpress.com/news/using-dreamweaver-for-wordpress-design-and-development/" target="_blank">Dreamweaver Live View modes</a> to support child themes.</li>
<li>Additional fixes for import on Windows based system (better memory management).</li>
<li>Fixes for MySQL on Macintosh to clear tmp folder when selecting &#8216;Stop the web &amp; database services&#8217;.</li>
<li>Fixes for PHP on Windows to clean up sessions when selecting &#8216;Stop the web &amp; database services&#8217;.</li>
<li>Fixes importing or creating a website on partitions other then C:\ drive on Windows based systems.</li>
<ul>
<li><a href="http://serverpress.com/news/enabling-mail-on-windows/" target="_blank">Note: Email settings will be overwritten. You may update accordingly</a>.</li>
</ul>
<li>Fixes attempts to create a site name beginning with a period or dash.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/new-desktopserver-version-3-3-1-released/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>All ServerPress.com Servers Upgraded &#8211; Cluster Now Supports Mixed Configurations (Nginx or Apache)</title>
		<link>http://serverpress.com/news/status/all-serverpress-com-servers-upgraded-cluster-now-supports-mixed-configurations-nginx-or-apache/</link>
		<comments>http://serverpress.com/news/status/all-serverpress-com-servers-upgraded-cluster-now-supports-mixed-configurations-nginx-or-apache/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 11:05:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System Status]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=3023</guid>
		<description><![CDATA[All ServerPress.com servers have been upgraded to support mixed clusters with new support for Nginx. We&#8217;ll now be able to bring Nginx and/or Apache servers into the mix for upcoming 2012 features and services.]]></description>
			<content:encoded><![CDATA[<p>All ServerPress.com servers have been upgraded to support mixed clusters with new support for Nginx. We&#8217;ll now be able to bring Nginx and/or Apache servers into the mix for upcoming 2012 features and services.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/status/all-serverpress-com-servers-upgraded-cluster-now-supports-mixed-configurations-nginx-or-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Dreamweaver for WordPress Design and Development</title>
		<link>http://serverpress.com/news/using-dreamweaver-for-wordpress-design-and-development/</link>
		<comments>http://serverpress.com/news/using-dreamweaver-for-wordpress-design-and-development/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 09:20:41 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2537</guid>
		<description><![CDATA[DesktopServer Premium edition version 3.3 now includes extended support for Adobe Dreamweaver&#8217;s Live View. No other web server provides extended Live View support directly for WordPress template files in Dreamweaver. At best, you can only use WordPress with Dreamweaver&#8217;s Live View on just the index.php file in your WordPress&#8217; site root folder. But DesktopServer takes [...]]]></description>
			<content:encoded><![CDATA[<p>DesktopServer Premium edition version 3.3 now includes extended support for <a href="http://www.tkqlhce.com/click-5593186-10469538" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.tkqlhce.com/click-5593186-10469538?referer=');">Adobe Dreamweaver&#8217;s</a><img src="http://www.tqlkg.com/image-5593186-10469538" alt="" width="1" height="1" border="0" /> Live View. No other web server provides extended Live View support directly for WordPress <a title="Template Hierarchy" href="http://codex.wordpress.org/Template_Hierarchy" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Hierarchy?referer=');">template files</a> in Dreamweaver. At best, you can only use WordPress with Dreamweaver&#8217;s Live View on just the index.php file in your WordPress&#8217; site root folder. But DesktopServer takes Live View further by sensing Dreamweaver&#8217;s built in browser. DesktopServer directly renders WordPress <a title="Template Hierarchy" href="http://codex.wordpress.org/Template_Hierarchy" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Hierarchy?referer=');">template files</a> (and their include file fragments) for more visual feedback and to assist in faster theme design &amp; development. Originally introduced in Dreamweaver CS4, Live View (formerly Live Data in CS3) provides a more modern embedded web browser. Dreamweaver optimizes web development by allowing designers to work on their website files in Code View while seeing a real Live View of their site in Dreamweaver&#8217;s Design View window. For an abridged overview, check out the video below.<span id="more-2537"></span></p>
<div style="float: right; padding: 0px 5px 32px 15px;"><video width="640" height="480" poster="http://serverpress.com/wp-content/uploads/" controls autobuffer>
<source src="http://serverpress.com/wp-content/uploads/dw-support.m4v" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="http://serverpress.com/wp-content/uploads/dw-support.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object id="flowplayer" width="640" height="480" data="http://serverpress.com/wp-content/plugins/universal-video/player/flowplayer-3.2.7.swf" 
	type="application/x-shockwave-flash"><param name="movie" value="http://serverpress.com/wp-content/plugins/universal-video/player/flowplayer-3.2.7.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value='config={"clip": {"url": "http://serverpress.com/wp-content/uploads/dw-support.m4v", "autoPlay":false, "autoBuffering":true}}' /></object></video></div>
<p>The Live View feature is a much-needed update to Dreamweaver&#8217;s original Live Data mode in Dreamweaver CS3. Although DesktopServer&#8217;s extended features will also work with Dreamweaver CS3&#8242;s older, dated embedded browser (aka Live Data mode), WordPress designers will benefit the most from the latest version of <a href="http://www.tkqlhce.com/click-5593186-10469538" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.tkqlhce.com/click-5593186-10469538?referer=');">Dreamweaver CS5.5</a><img src="http://www.tqlkg.com/image-5593186-10469538" alt="" width="1" height="1" border="0" /> which includes a cutting edge WebKit based browser rendering engine as well as support for multi-monitor workspaces. In this guide, I&#8217;ll show you how to streamline your design environment for working with Dreamweaver and WordPress.</p>
<div class="divider-content"></div>
<h4>Enable Dreamweaver Support</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/dw-checkbox.jpg"><img class="alignleft size-medium wp-image-2543" title="Enable Dreamweaver Support" src="http://serverpress.com/wp-content/uploads/2011/12/dw-checkbox-300x229.jpg" alt="" width="300" height="229" /></a>When you start DesktopServer Premium version 3.3 for the first time or after selecting the first option to &#8220;Stop or restart web and database services&#8221;, you will see a new checkbox that is titled &#8220;Enable Dreamweaver support&#8221;. When turned on, DesktopServer will perform extended rendering when viewing WordPress template pages directly in Dreamweaver. That is to say, template page files will render in Live View that exist in your wp-content/themes/[active theme] directory where [active theme] is your currently selected and activated WordPress theme folder. DesktopServer will also automatically create a Dreamweaver compatible site definition file when creating a new website, copying an existing website or importing a website archive (zip file). You can find the file in your website&#8217;s folder named as &#8220;dreamweaver.ste&#8221;. (i.e. ../Websites/www.example.dev/dreamweaver.ste). When exporting your website, DesktopServer will omit this file so you won&#8217;t have to worry about security risks (as the file might pose a security risk by revealing your server&#8217;s file paths to potential hackers). If you transfer your files to your server by another means, be sure to omit this file or simply delete it after importing your site into Dreamweaver as it isn&#8217;t needed after import. <span style="display: none;">If you already have your website defined, you can manually create a site definition for your existing website by seeing my post titled, <a href="http://serverpress.com/how-to/how-to-add-a-dreamweaver-site-definition-for-a-website" target="_blank">How to Add a Dreamweaver Site Definition for a Website</a>.</span></p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/dw-managesites.jpg"><img class="size-medium wp-image-2546 alignright" title="Add your website to the Manage Sites window" src="http://serverpress.com/wp-content/uploads/2011/12/dw-managesites-300x209.jpg" alt="" width="300" height="209" /></a> If you haven&#8217;t created a website yet, simply follow the directions in the post <a title="Getting Started with DesktopServer" href="http://serverpress.com/news/getting-started-with-desktopserver/" target="_blank">Getting Started with DesktopServer</a>. Next, locate the dreamweaver.ste file in Finder (Mac) or Explorer (Windows) and double-click the file. Dreamweaver should start and automatically import your site and display the Manage Sites window or alternatively, you can import it using Deamweaver&#8217;s Site → Manage Sites pull down menu, followed by clicking the Import button. You can delete the dreamweaver.ste file after importing it into Dreamweaver. The imported site definition file will automatically configure Dreamweaver to use DesktopServer as a testing server, pre-configured for a MySQL and PHP setup and to support Dreamweaver&#8217;s Live View mode. From the Manage Sites window, you can click the Edit button to view the configuration options or define additional servers to sync with.</p>
<div class="divider-content"></div>
<h4>Enable Code Hints</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/code-hints.gif"><img class="alignleft size-medium wp-image-2597" title="Enable Code Hints in Dreamweaver CS5" src="http://serverpress.com/wp-content/uploads/2011/12/code-hints-300x204.gif" alt="" width="300" height="204" /></a><a href="http://www.tkqlhce.com/click-5593186-10469538" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.tkqlhce.com/click-5593186-10469538?referer=');">Adobe Dreamweaver CS5</a> now includes PHP code hints optimized specifically for WordPress. To enable this feature, all you need to do is enable the Dreamweaver code hints configuration file. Just select the pull down menu Site → Site-Specific Code Hints to bring up the Site-Specific Code Hints dialog box. You will see a drop down combo box labeled &#8220;Structure&#8221; from which you can select the WordPress option. Ensure that the site root is selected (as shown in the image on the left) and click the OK button. Dreamweaver will automatically scan your site and provide code hints for clue insights into <a href="http://codex.wordpress.org/Template_Tags" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Template_Tags?referer=');">WordPress&#8217; Template Tag API and proper syntax</a>. To use code hints, simply begin typing a few letters of the WordPress template tag inside a valid PHP block followed by pressing Ctrl+Space bar. For example, with the cursor position right after the underscore in the code block <code>&lt;?php get_ ?&gt; </code>press the Ctrl+space bar key combo and a popup list will appear containing a matching set of  WordPress template tags that begin with &#8220;get_&#8221;, such as get_header, etc. Code hints can eliminate a lot of guess-work and speed your development process by providing an instant reference without having to look up template tag syntax on the web.</p>
<div class="divider-content"></div>
<h4>Using Dreamweaver and WordPress</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/dw-interface.jpg"><img class="alignleft size-medium wp-image-2547" title="Use Split view to accelerate design and development" src="http://serverpress.com/wp-content/uploads/2011/12/dw-interface-300x199.jpg" alt="" width="300" height="199" /></a>Now that Dreamweaver is properly configured, you can jump right into design and editing. Use the File window/panel in Dreamweaver to select the WordPress website you wish to edit. In Dreamweaver CS5.5&#8242;s default workspace, you can find the panel in the lower left hand side with a drop down to select from a list of sites. Select the site you have just imported and navigate the file tree (click the thumbnail to the left and see #1). To view your site as a visitor would, go to the root of your website and locate the index.php file. There are many index.php files in a typical WordPress installation, but we are concerned with the one that lives in the root of your website. It will be in the same folder as your wp-config.php file. Open the file and switch your editor to Split or Design view mode using the toolbar. Next click the Live View button and you should see your website displayed in Dreamweaver&#8217;s Design View area (see #2 in the image for the Design View area). Unlike a real web browser, the hyperlinks in Design View are disabled and the render is only an estimation of what a visitor would see. Use the Preview icon (the earth globe icon) on the toolbar to launch your web browser and see your site in an actual web browser.</p>
<blockquote style="font-size: larger;"><p>DesktopServer&#8217;s real power is the convenience feature of viewing your theme files directly [and] &#8230;using Dreamweaver&#8217;s Inspect toolbar button to analyze elements and their corresponding code.</p></blockquote>
<p>DesktopServer&#8217;s real power is the convenience feature of viewing your theme files directly. For instance, you can open your theme&#8217;s header file directly by navigating to your active theme&#8217;s header.php file. The file would be located in a sub-folder of your active theme in the wp-content/themes folder path. In a typical web server, opening your theme files directly would produce an error and Live View would fail to deliver anything useful. DesktopServer compensates by acknowledging Live View and attempts to apply your style.css file to your template files dynamically as well as attempting to load various WordPress modules to assist you with design time feedback. While not perfect, this can greatly reduce the amount of task switching you perform while editing your site. Simply keep in mind that your CSS rules are influenced by element parent and child hierarchies; so not everything may render unless you address the element directly to apply a given CSS style. For instance, the sidebar.php file may not display a background color because the file itself is an include file intended to be embedded inside another file like page.php. Alternatively, you can open the page.php file, single.php, or your theme&#8217;s index.php file and see how content is rendered. Another convenience feature is the ability to click various elements in Split view&#8217;s Design View area which will cause Dreamweaver to position the cursor in Code View as close as possible to the code that produces the actual output (see #3 in the thumbnail). Especially powerful is using Dreamweaver&#8217;s Inspect toolbar button to highlight elements and analyze their corresponding code. This can help you learn what various WordPress template tags output when passed different parameters. As well as isolate and highlight problems or areas of interest. You can view most changes quickly by simply clicking in the Design View area with Live View turned on or by saving your file (Ctrl+S on Windows or Command+S on Mac) and clicking the refresh icon on the toolbar. To enable Dreamweaver&#8217;s native CSS panels, you may need to attach the style.css file as a Design Time style sheet. Design-Time style sheets only apply while you are working in the document. Place your cursor in Code View and use the pull down menu View → Style Rendering → Design-time to attach your theme&#8217;s style.css file.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/render-content.jpg"><img class="size-medium wp-image-2552 alignright" title="For more percise rendering, open active theme template files." src="http://serverpress.com/wp-content/uploads/2011/12/render-content-300x200.jpg" alt="" width="300" height="200" /></a>The actual content that is displayed in Dreamweaver&#8217;s Live View is determined by the currently selected front page. You can change the content output to test different post scenarios by using WordPress&#8217; admin menu under Settings → Reading. Select a different front page and that content will be displayed in Dreamweaver&#8217;s Live View rendering. The currently selected content can also influence your CSS rules as WordPress&#8217; template tags are often used to output a value for the body or parent element IDs and class tags in HTML (often the case with the <a href="http://codex.wordpress.org/Function_Reference/post_class" target="_blank" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference/post_class?referer=');">post_class </a>template tag). Be sure to set the front page accordingly to avoid confusion. I found this to be especially true when viewing a single post as the front page but loading a multi-column page template in Dreamweaver (and vice versa). Most everything else rendered accurately, but margins abide by the actual output WordPress produces and any CSS rule that binds to the post_class template tag can change the page&#8217;s appearance. Thankfully, you can verify what class and id tags are present along with all output by quickly doing a &#8216;view source&#8217; using Dreamweaver&#8217;s Live Code button.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/dyn-related.gif"><img class="alignleft size-full wp-image-2764" title="Use default permalinks during theme design." src="http://serverpress.com/wp-content/uploads/2011/12/dyn-related.gif" alt="" width="249" height="131" /></a>An alert message maybe displayed about dynamically related files not resolving. This is because Dreamweaver doesn&#8217;t understand WordPress&#8217; ability to mask URLs with permalinks. You can safely dismiss this message or switch permalinks in WordPress&#8217; admin menu via Settings → Permalinks and selecting the default option.</p>
<div class="clear"></div>
<p>You can make dozens of changes to customize and craft your own personalized theme files and view the results quickly with this setup. Development is faster now that you have your WordPress website loaded locally inside <a href="http://www.tkqlhce.com/click-5593186-10469538" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.tkqlhce.com/click-5593186-10469538?referer=');">Dreamweaver</a>. This guide just scratches the surface to help you get started with a streamlined design and development environment. DesktopServer Premium edition allows you to take your WordPress designs further by unleashing the power of Dreamweaver&#8217;s integrated development environment. Now you can customize the look and feel of your WordPress powered websites and view the results even faster.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/using-dreamweaver-for-wordpress-design-and-development/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>New DesktopServer Version 3.3.0 Released</title>
		<link>http://serverpress.com/news/new-desktopserver-version-3-3-0-released/</link>
		<comments>http://serverpress.com/news/new-desktopserver-version-3-3-0-released/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 22:28:24 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Software Updates]]></category>
		<category><![CDATA[desktopserver]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2521</guid>
		<description><![CDATA[Note: Existing users should use our update instructions below to preserve existing sites. A new version of DesktopServer (version 3.3.0) is now available in our downloads section. This version includes critical and important updates to both our free DesktopServer Limited and premium member access DesktopServer version. Update Instructions First, you must stop web and database [...]]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #ffff99;"><em>Note: Existing users should use our update instructions below to preserve existing sites.</em></span></p>
<p>A new version of DesktopServer (version 3.3.0) is now available in our downloads section. This version includes critical and important updates to both our free DesktopServer Limited and premium member access DesktopServer version.</p>
<p><span id="more-2521"></span></p>
<h4>Update Instructions</h4>
<ol>
<li>First, you must stop web and database services using DesktopServer&#8217;s first option &#8220;Stop or restart the web and database services&#8221;, followed by &#8220;Stop the web and database services&#8221;. Once database and web services have stopped, be sure to close the DesktopServer application.</li>
<li>Download the ZIP archive for your specific platform (Windows or Macintosh) with the &#8216;Update Only&#8217; option from our <a href="http://serverpress.com/downloads">download page</a>.</li>
<li>Replace the main application program inside your current server folder by first deleting the existing DesktopServer application file (drag only this single file to the trash):</li>
<ol>
<li>For Mac, first drag only the existing &#8220;DesktopServer.app&#8221; to the trashcan, you maybe prompted for your password. Next, move the new &#8220;DesktopServer.app&#8221; file and the Update folder to your existing Applications → XAMPP folder.</li>
<li>For Windows computers, first delete only the existing &#8220;DesktopServer.exe&#8221;. Next, move the new &#8220;DesktopServer.exe&#8221; file and Update folder to your <code>c:\xampplite</code> folder.</li>
</ol>
<li>Start the new DesktopServer application. This may take a several seconds to start for the first time. You may be prompted to wait for an additional update to be applied which may take several minutes. Once complete, DesktopServer will restart.</li>
</ol>
<h4>Change Log</h4>
<p>This version (3.3.0) includes the following updates:</p>
<ul>
<li>New support for <a href="http://serverpress.com/news/using-dreamweaver-for-wordpress-design-and-development/" target="_blank">Dreamweaver Live Data and Live View modes</a>.</li>
<li>New support for Dreamweaver site definition files.</li>
<li>New enable debug services switch with default set to off (enables Wishlist and non-GPL compliant encrypted plugins).</li>
<li>New MySQL optimizations for Macintosh for improved performance and stability.</li>
<li>Fixes MySQL thread stack overrun errors on Macintosh when running stored procedures.</li>
<li>Fixes for security permissions on Mac and allows WordPress to upgrade gracefully.</li>
<li>Now includes updated WordPress 3.3 core files.</li>
<li>Now includes updated phpMyAdmin 3.4.9 for both Mac and Windows.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/new-desktopserver-version-3-3-0-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using cPanel to Import a Live Website</title>
		<link>http://serverpress.com/news/using-cpanel-to-import-a-live-website/</link>
		<comments>http://serverpress.com/news/using-cpanel-to-import-a-live-website/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 01:46:35 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[desktopserver]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2214</guid>
		<description><![CDATA[Many hosting providers use cPanel as their control panel for website administration. You can use cPanel features alone to copy your WordPress website and run a mirror image locally on DesktopServer. In this article, I&#8217;ll show you how to copy your existing live WordPress website to your local computer. Note that this requires DesktopServer Premium. [...]]]></description>
			<content:encoded><![CDATA[<p>Many hosting providers use cPanel as their control panel for website administration. You can use cPanel features alone to copy your WordPress website and run a mirror image locally on DesktopServer. In this article, I&#8217;ll show you how to copy your existing live WordPress website to your local computer. Note that this requires <a title="Membership Options" href="http://serverpress.com/membership-options/">DesktopServer Premium</a>. We are going to use DesktopServer&#8217;s import feature which will ask you for a zip archive file containing your WordPress website (plugin files, theme files, etc.) and a &#8220;database export&#8221; file that contains your posts, pages, configurations, and settings. You can create this zip archive file in a two step process that I will detail below. The first step will be to download all of your WordPress files and the second will be to obtain the database export file. Both can be done easily through cPanel. The third step will be to simply import the zip file as a new website in DesktopServer.<span id="more-2214"></span></p>
<div class="divider-content"></div>
<h4>Step 1 &#8211; Download Your Website Files</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/cPanel-File-Manager.jpg"><img class="alignleft size-medium wp-image-2216" title="cPanel File Manager" src="http://serverpress.com/wp-content/uploads/2011/12/cPanel-File-Manager-300x174.jpg" alt="" width="300" height="174" /></a>First, you will want to download the files that make up your WordPress website. You could do this with your favorite FTP program. But as we mentioned, we&#8217;re going to demonstrate how to do this with cPanel alone. Within cPanel is an icon dedicated to managing your website files. Login to your live website&#8217;s cPanel and locate the &#8216;File Manager&#8217; icon and click it. File Manager is usually found in the group titled &#8216;Files&#8217;.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/show-hidden.jpg"><img class="size-medium wp-image-2219 alignright" title="Show Hidden File Option" src="http://serverpress.com/wp-content/uploads/2011/12/show-hidden-300x240.jpg" alt="" width="300" height="240" /></a>When you click the File Manager icon for the first time, you should see a pop-up window with the option to display hidden files. We are interested in preserving the permalink settings that are stored in the .htaccess hidden file. However, if you do not obtain this file, you can simply re-save your permalink settings using WordPress&#8217; admin menu Settings → Permalinks. Once the File Manager loads, you will be presented with a list of folders on the left hand side of your screen and the contents of the currently selected folder on the right hand side. The folder containing your WordPress installation may vary depending on how your hosting company chooses to configure their services. Typically, your files will be located inside a folder titled public_html or www. You might have both a public_html and www folder which is okay as one may simply be an alias or &#8220;shortcut&#8221; to the other.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/compress-wp.jpg"><img class="alignleft size-medium wp-image-2225" title="Create a ZIP using cPanel's File Manager" src="http://serverpress.com/wp-content/uploads/2011/12/compress-wp-300x221.jpg" alt="" width="300" height="221" /></a>Click the folder containing your WordPress files for your website (typically public_html folder) and you should see your WordPress website files in the results pane on the right hand side. The right hand side should also contain the files and folders beginning with &#8220;wp&#8221; such as the wp-content folder and the wp-config.php file. Select all the files that make up your WordPress installation by using the Command button on Mac or Alt+Ctrl buttons on Windows and clicking the various files and folders. WordPress files and folders begin with &#8220;wp&#8221;. In addition, you should select &#8220;index.php&#8221;, &#8220;xmlrpc.php&#8221; and optionally &#8220;.htaccess&#8221; for permalinks. Once you have selected all of WordPress&#8217; files, select the Compress option to create a zip archive. You will be given a pop-up to select the compression type and input a file name. Select the &#8220;Zip archive&#8221; (usually the first) option and note the file name or specify one. When the compression operation completes, you can download the archive by selecting it and pressing the download icon on the main toolbar. If you don&#8217;t initially see the zip archive file, try pressing the reload icon on the toolbar and locate the zip archive in the results pane. Once you finish downloading the file, unpack the contents and set the folder aside. Don&#8217;t forget to delete the archive file from your website as leaving it there might pose a security risk.</p>
<div class="divider-content"></div>
<h4>Step 2 &#8211; Create a Database Export</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin.jpg"><img class="alignleft size-medium wp-image-2241" title="phpMyAdmin" src="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin-300x174.jpg" alt="" width="300" height="174" /></a>Next, we are going to want to create our database export file using phpMyAdmin. cPanel usually provides this option under the group heading &#8220;Databases&#8221;. Click the icon to access phpMyAdmin. If your hosting provider has setup cPanel with the standard options, you should be automatically logged into phpMyAdmin. The first screen you will see in phpMyAdmin should be a list of databases on the left hand side. Select the database that is associated with your WordPress website. If you don&#8217;t know the database name, take a peek inside the wp-config.php file that is apart of the zip archive that you downloaded in the first part of this article. Look for the line that begins with &#8220;define(&#8216;DB_NAME&#8217;,&#8221;. The last portion of the database name should match a listing in phpMyAdmin. Click the database name in phpMyAdmin to select it. If phpMyAdmin instead prompts you for a username and password, you maybe able to login using the credentials you find in the wp-config.php file.</p>
<pre class="brush: php; first-line: 17; highlight: [19]; title: ; notranslate">
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'scarroll_postmy1');
</pre>
<p style="text-align: center; font-size: smaller;">The wp-config.php contains the database name.</p>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin-quick-export1.gif"><img class="alignleft size-medium wp-image-2459" title="phpMyAdmin Quick Export" src="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin-quick-export1-300x153.gif" alt="" width="300" height="153" /></a>Locate and click the &#8220;Export&#8221; option after selecting your WordPress database in phpMyAdmin. The &#8220;Export&#8221; option can be found as a dedicated menu/tab item at the top of the webpage. With the most current version of phpMyAdmin, you&#8217;ll be presented with two options 1) Quick or 2) Custom. In both cases you will want to ensure that the format option is set to SQL.</p>
<div class="clear"></div>
<p><a href="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin-custom-export1.gif"><img class="alignright size-medium wp-image-2458" title="phpMyAdmin Custom Export" src="http://serverpress.com/wp-content/uploads/2011/12/phpMyAdmin-custom-export1-300x182.gif" alt="" width="300" height="182" /></a>You can proceed with the easy Quick export option in most cases. If you have a larger website, it maybe more efficient to select the Custom export option and set the additional parameter for &#8220;INSERT INTO tble_name VALUES (1, 2, 3)&#8221;. In the current version of phpMyAdmin this option is also known as &#8220;neither of the above&#8221; in the data dump options section. This setting may increase the time it takes for imports to be processed but can also isolate &#8220;bad data&#8221; or malformed content (possibly from a misbehaving third-party plugin) from interfering with your post and page data. Click the Go button to download the database SQL dump file. After downloading the file, rename it to database.sql and place it in the folder that you set aside in step 1. The folder should now contain all of your WordPress website files in addition to the database.sql file. It is important that the database.sql file is located in the same folder as your site&#8217;s wp-config.php file. Now you may zip the folder by simply right-clicking it (Command+Click on Mac), followed by the pop-up menu Send To → Compressed (zipped) folder on Windows or Compress folder on Mac. You will now have a portable zip file containing your entire WordPress website and accompanying database. If you have a lot of media such as video or pictures, you can omit including the wp-content folder in the zip file to save space. All that is essential to create a valid import archive is the wp-config.php file and an accompanying database.sql file. If you do omit the other folders and files, simply be sure to move them over to your website&#8217;s folder after the import process completes within DesktopServer.</p>
<div class="divider-content"></div>
<h4>Step 3 &#8211; Import Website</h4>
<p><a href="http://serverpress.com/wp-content/uploads/2011/11/import1.jpg"><img class="alignleft size-medium wp-image-1691" title="Import options" src="http://serverpress.com/wp-content/uploads/2011/11/import1-300x222.jpg" alt="" width="300" height="222" /></a>Your last step is to import the zip archive you created into DesktopServer. To get started, select the “Export or import a website” option and click next, followed by the “Import an existing WordPress website archive” option and click next. You can select the zip you created to import as a new WordPress website by simply clicking the first field (Import File). An open dialog window will allow you to locate and select your zip file. Note that Mac users may see their file system as an Administrator which differs from your normal user account. You may need to locate your files by starting with the Macintosh HD:Users path to locate the exact location of your zip archive. The additional fields will allow you to specify a domain name by altering the Site Name field. For security purposes DesktopServer will change the top-level domain to .dev (dot DEV). You can use the browse button to specify a different Site Root to store your website files. Click the Browse button to display a folder selection dialog window if you want to choose a different location to store your website&#8217;s files. Lastly, clicking the next button will start the import process and your new website URL will be presented to you on the last screen. Don&#8217;t forget to visit your WordPress admin screen and re-save permalinks under the Settings → Permalink menu if you didn&#8217;t copy over your .htaccess file. You may need to re-save permalinks if your website&#8217;s links don&#8217;t appear to be resolving correctly. DesktopServer&#8217;s import routine will automatically scrub (search and replace) your links from your live domain name and replace it with your chosen .dev development top-level domain name. If all goes well, you will have successfully re-created your website on your  local machine without the use of a migration plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/using-cpanel-to-import-a-live-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Upgrade DesktopServer to WordPress 3.3</title>
		<link>http://serverpress.com/news/how-to-upgrade-desktopserver-to-wordpress-3-3/</link>
		<comments>http://serverpress.com/news/how-to-upgrade-desktopserver-to-wordpress-3-3/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 03:44:28 +0000</pubDate>
		<dc:creator>Stephen Carroll</dc:creator>
				<category><![CDATA[How To Tutorials]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software Updates]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://serverpress.com/?p=2095</guid>
		<description><![CDATA[Now that WordPress 3.3 is out, you may wish to update DesktopServer which originally comes with WordPress 3.2.1. You can easily update DesktopServer to create websites using WordPress 3.3 from the start. Likewise, you can have DesktopServer use a custom build (such as WordPress in a specific language) by simply updating DesktopServer&#8217;s blueprint folder. The [...]]]></description>
			<content:encoded><![CDATA[<p>Now that WordPress 3.3 is out, you may wish to update DesktopServer which originally comes with WordPress 3.2.1. You can easily update DesktopServer to create websites using WordPress 3.3 from the start. Likewise, you can have DesktopServer use a custom build (such as WordPress in a specific language) by simply updating DesktopServer&#8217;s blueprint folder. The blueprints folder will also allow you to have more then one version of WordPress to select from when you use DesktopServer&#8217;s &#8220;Create a new development website&#8221; option. This flexibility also allows you to include your most commonly used plugins and theme frameworks should you wish to do so. But keeping a lean and basic installation is a good idea for quickly creating sites for testing and development.  <span id="more-2095"></span></p>
<p>Updating to WordPress 3.3 is easy. Start by going to <a href="http://wordpress.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/?referer=');">WordPress.org</a> and download the latest version of WordPress. Simply unzip it into your blueprints folder as a sub-folder and name it something meaningful (i.e. &#8220;WordPress 3.3&#8243;). For more information please <a href="http://serverpress.com/news/using-the-blueprints-folder-for-wordpress-3-3-beta-1/">see our related post, &#8220;Using the Blueprints Folder for WordPress 3.3 Beta 1&#8243;</a>.</p>
<h4>Updating Existing Sites on Mac OS X</h4>
<p>In most cases, updating existing websites from 3.2.1 to 3.3 simply involves clicking the &#8220;Update Now&#8221; notification from WordPress&#8217; administration menu. However, Mac OS X users may encounter a known permission issue &#8220;Warning: copy&#8230; Installation failed&#8221; error. This problem can easily be remedied by refreshing the read/write permissions on your website&#8217;s folder (i.e. Documents/Websites/www.example.dev). Visit the folder and control + click (right click) the folder followed by selecting the &#8220;Get Info&#8221; menu item from the pop-up context menu. Unlock the folder using the unlock icon, followed by the &#8220;Apply to enclosed items&#8221; drop down menu on the gear icon at the bottom of the window. You should be able to refresh or visit your site&#8217;s WordPress admin upgrade page and click &#8220;Update Now&#8221; at the bottom of the screen (note: if you already attempted this, your admin stylesheet may appear broken but the &#8220;Update Now&#8221; button is still at the bottom of the webpage).</p>
<p><a href="http://serverpress.com/wp-content/uploads/2011/10/permissions.jpg"><img title="permissions" src="http://serverpress.com/wp-content/uploads/2011/10/permissions.jpg" alt="" width="488" height="264" /></a></p>
<p>By default, DesktopServer places your website within a Websites parent folder. It may be more convenient to apply the permissions fix to the parent Websites folder so that all of you sites can be updated without issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverpress.com/news/how-to-upgrade-desktopserver-to-wordpress-3-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  serverpress.com/feed/ ) in 0.76185 seconds, on May 19th, 2012 at 6:31 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 19th, 2012 at 7:31 am UTC -->
