Hot answers tagged

23

XAMPP is NOT cross-platform. There is XAMPP for Windows, XAMPP for Linux, for Mac and for Solaris, but each pack contains different pieces of software, runs differently with different performance, etc. (cross-platform means that you take the exact same piece of software and it runs the same way on different platforms ... like Azureus used to be: a jar that ...


20

Biggest difference - WAMP runs on Windows, XAMPP is multi-platform. Aside from that it's a matter of personal preference. They both provide you with an Apache-MySQL-PHP environment that runs pretty much the same under both systems.


7

Survey said! Wolf Fence in Alaska. The basic idea is that you divide your problem space in half by inserting a print "Hi, Mom!\n"; exit; (insert your favorite phrase) somewhere near the "middle" of your code. If you get the message, then the bug is beyond where you put the print, so move it farther along in the execution. If you don't get there, move the ...


7

WAMP is an acronym that means: Windows, Apache, Mysql, Php. There are different WAMP "distribution" such as XAMPP, WampServer (what some people just call "WAMP"), Wamp-Developer Pro (commercial software), and others... XAMPP for Windows is just another WAMP distribution, nothing more (nor something else).


4

I use Dropbox as well, but not directly linked as the Dropbox folder path could differ from install to install. My Dropbox just is the root of my bare git repository. Simplified... When I start coding, I just add a new folder to my Dropbox and --bare init it. // Inside your Dropbox/webdev/themes folder for e.g. git --bare init Then inside your new Theme ...


4

The objection that XAMPP is bloated--because it has a mail server, FTP server, etc.--might be answered by asking what you need. If you need most or all of those items, it's the full XAMPP for you. For just developing web pages, including PHP and MySQL, use XAMPP Lite. At different times I've found both to be very useful. I especially like that I can run ...


3

Your webserver runs under a user account, on OS X 10.6 that user is _www and the group is also _www WordPress needs the owner and/or group of the web server to match the owner and/or group of the files -- which is your user account. First, open your Terminal. Find your username and group by typing: id You should see output like: uid=503(gabrielk) ...


3

Hi @Scott B: Have you tried updating the permissions for your WordPress files to 755 or 777? UPDATE 1 Thanks to @anu in the comments (~/Sites assumes you put websites are in the Mac's default website directory): cd ~/Sites sudo chmod -R 777 * I just checked my httpd.conf file and here is what I found starting on line 127 so I think @gabrielk's answer ...


3

Not exactly answering the question, but if you are interested in learning how the packages work together, I suggest installing and configuring them manually. I've been using this tutorial as a guideline, it is detailed and helps you get everything running and talking to each other. It's a bit more work, but provides you much more flexibility, and you ...


3

I've used XAMPP and have been generally pleased with it, with one notable exception. Loading a site has always been agonizingly slow for me when using XAMPP. I don't know if that's the case with WAMP, but it would be worth looking into.


3

wamp uses more memory to run then xampp.


3

It is painful to clone the wordpress site sometimes when the site has a lot of plugins and custom code. I did it manually before. But I am using "Duplicator" plugin to handle this now. Please check: https://wordpress.org/plugins/duplicator/


2

xampp is slower than wamp(french developer). I have both.


2

You can try looking in \xampplite\apache\logs for various error log messages.


2

See Moving WordPress « WordPress Codex and Backing Up Your Database « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life and possibly Giving WordPress Its Own Directory « WordPress Codex Deleted this added link as it advocates using a texteditor to change URLs in the dump; that will break serialized data. Use the ...


2

From personal experience sync between two different computers work best in one direction. For example your desktop is primary and notebook is precise mirror (yep, of whole directory tree preferably with tool that doesn't touch unchanged files). Two way sync gets messy very fast for web stack. If you need to actively work with same stack on different ...


2

Per the Codex entry for the_post_thumbnail(), passing an array has not worked since WordPress 3.0: PLEASE NOTE: The crop does not work in WP 3.0+. All that is needed for WP 3.0+ is the call for the thumbnail to post. Then proceed to media in the dashboard and set your thumbnail to crop to the size you wish to use. The correct implementation is to ...


2

WP plugins are meant to be loaded in context of WordPress core load. They won't work as vanilla PHP, unless you purposely abstract some parts completely away from WordPress. The typical practice is to have actual working WP installation locally and develop in its context.


2

Another solution is to simply chown the entire wordpress install to the user that apache is running as: chown -R _www: myWPSite Then you can do your automatic updates, and if necessary, chown it back to the previous owner.


2

If anyone out there has a similar situation as me, I found a solution by adding: /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /* THIS IS CUSTOM CODE CREATED AT ZEROFRACTAL TO MAKE SITE ACCESS DYNAMIC */ $currenthost = "http://".$_SERVER[...


2

It looks like you have not imported the backup of database (sql file) to new database you have created in your localhost. Also after importing the database to local server you will need to replace the live site URL with new localhost URL at all instances in local database.


1

Your issue likely lies somewhere within wp-config.php. You should not need to run any install if your tables already exist, the wp-admin/install.php is only used when no tables are detected with the settings in wp-config.php. Going through parameter by parameter, I'll give you some idea of what everything is. DB_NAME is the name of the database that ...


1

An over simplified version of doing this is to download WordPress Serialized Search and Replace tool And drop it onto your server go to the location of where you have uploaded it. Then simply search for your old url, and replace with the new. This will do this for every post type, post data and if your theme has settings it will also replace in the settings. ...


1

Probably your localhost siteurl option it's not set up right. Try to add this on your wp-config.php file: define('WP_HOME','http://localhost/stepladder'); define('WP_SITEURL','http://localhost/stepladder'); If it works, then it proves that your siteurl option (on your options table) it's not correct. hope that it helps, Cheers


1

I think s_ha_dum is in the right track, but I think he got it backwards. You want to: develop/design locally connect to the REMOTE database and work with his content? You need a remote (staging) installation of WordPress, where the client can create/enter his content. You need your local WordPress site (localhost) to point to the remote database, to ...


1

Is there no way to pull the content to a localhost site just to get the content onto the site so that I can work on the development of the site while the client adds the content to the live DB? If the remote server supports it, you can connect to the remote database. Just set your connection constants correctly: // ** MySQL settings - You can get this ...


1

You will need to create an alias to your Dropbox folder so those files can be accessed on your server. This can be done in httpd.conf: Alias /dropbox /Users/seth/Dropbox Or you could make a direct alias to the real wp-content folder: Alias /wp-content /Users/seth/Dropbox/Xammp-Content/wordpress/wp-content/ Then set WP_CONTENT_URL in wp-config.php ...


1

$whitelist = array('127.0.0.1'); if(!in_array($_SERVER['REMOTE_ADDR'], $whitelist)){ // not valid } For more info on how it works. http://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php



Only top voted, non community-wiki answers of a minimum length are eligible