Error: MySQL shutdown unexpectedly. XAMPP local conf running WordPress
This is how I approached to solve the problem. I have fixed the issue. From xampp/mysql/backup/ folder i copied all files in to xampp/mysql/data/ That solved the issue.
This is how I approached to solve the problem. I have fixed the issue. From xampp/mysql/backup/ folder i copied all files in to xampp/mysql/data/ That solved the issue.
If your using a MAC you will need to set file permissions to allow for updating and downloading plugins/themes without the use of setting up the FTP and manually adding them into the htdocs folder. The link below will walk you through this to set it up to work. http://ghosthorses.co.uk/production-diary/auto-update-wordpress-plugins-on-localhost-xampp-on-mac-osx/ http://wpforce.com/auto-update-wordpress-xampp-osx/ This video will show … Read more
DocumentRoot for each VirtualHost should point to the directory where you installed WP multisite. There is no actual directory for subsites, they’re all virtual. Using your example: <VirtualHost *:80> DocumentRoot “C:/home/wp-intall-directory” ServerName mysite-1.dev # not required Alias /mysite-1.dev “/home/mysite-1” <Directory “/home/wp-intall-directory”> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> … Read more
I finally managed to scrape together enough information from disparate sources to figure out how to fix this, because – as I’m increasingly finding with anything related to WordPress development – the documentation is so woefully inadequate. The fact that it took so much research and hacking together on my part just to get an … Read more
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 … Read more
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 … Read more
date() is a PHP function depending on your server settings. You can go around that by using the WordPress function: current_time( ‘Y-m-d H:i:s’ ); This function takes the settings in wp-admin into account.
Congratulation Jon, welcome to the WordPress world! To fix the issue, just add the following line of code in your installed WordPress’s wp-config.php file. It’s a PHP constant declaration which tells the WordPress to avoid the FTP. That’s it. define( ‘FS_METHOD’, ‘direct’ ); For more info: https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants
Ok, I gave up and moved to port 80, though i think what @Boultge suggest (the link) would have probably done it, but I read it too late. Here are the files tho that are letting me run XAMPP WordPress MU sub-domain Multisite on localhost as wp.dev with 20 additional WordPress individual sites. I shortened … Read more
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, which has the path /Applications/XAMPP/etc/httpd.conf and here is … Read more