54

Set file permissions On Mac OS X (Leopard), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files. One way to do this is to ...


12

Default wp_enqueue_[style/script]() behavior The default value for the $version argument of wp_enqueue_style() is false. However, that default just means that the stylesheets are given the WordPress version instead. Solution Thanks to "Remove version from WordPress enqueued CSS and JS", I learned the undocumented fact that passing in null as a version ...


11

Appart of the default ports and correctly configuring WPMS... In the Advanced Tab: And manually add the subdomains in /etc/hosts1 file: # BRASOFILO MULTISITE START 127.0.0.1 test1.brasofilo.dev 127.0.0.1 test2.brasofilo.dev 127.0.0.1 cloned.brasofilo.dev # BRASOFILO MULTISITE STOP 1 The folder etc is at the root of your HD and it's hidden. You can ...


9

Open wp-config.php Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located at wordpress/wp-config.php 2. Insert FS_METHOD Paste the following code to your wp-config.php file, preferably just below ...


8

Thank you for your post, mrwweb. I found another solution to this, by creating a very simple plugin you can deactive when the site is no longer under development. <?php /* Plugin name: Strip WP Version in Stylesheets/Scripts */ function switch_stylesheet_src( $src, $handle ) { $src = remove_query_arg( 'ver', $src ); return $src; } ...


5

If you are using MAMP Pro you can simply just add another completely new host using your sub-domain and then just route it to the same place as your top domain. You won't have to add any virtual hosts in your original domain, or have to stuff around with your hosts file.


5

Use if( file_exists(plugin_dir_path(__FILE__) . 'myfile.ext') ) {} instead of if( file_exists( plugins_url( "myfile.ext", __FILE__ ) ) ) {} See plugin_dir_path in the Codex.


5

You are trying to access the install via a file url: file://home/cnorton/scratch/install.php.html That is not going to work. That bypasses the web server and you need the webserver to process the request and pass things to PHP, which then passes the generated page back to the server for delivery to the client (your browser). You need to access the file ...


4

You could use slugs instead of IDs. Taken from the Starkers theme (add it to your functions.php): add_filter( 'body_class', 'add_slug_to_body_class' ); function add_slug_to_body_class( $classes ) { global $post; if( is_home() ) { $key = array_search( 'blog', $classes ); if($key > -1) { ...


4

Parts of WordPress use (s)FTP to transfer files. Updates, for example, use (s)FTP. Media uploads do not, at least not unless something has changed in 3.7. If you are connecting to an (s)FTP server you have to provide the credentials that that server needs. Your file permissions won't come into play until after that connection is made. There are constants ...


3

I was facing this issue. This post helped me. There could be multiple reason: Permission issue on the files and folders. The FS_METHOD should be "direct" in wp-config.php file. Remove FTP configuration from wp-config.php if you are migrating from bitnami to manage it on your own. For me it was bitnami related settings issue.


3

Depending on your version of OS X, you will need to configure and run FTP and open a port in the firewall. It's best if you google your OS X version - 10.6, 10.7, etc. - specifically and find the docs necessary to set up FTP and Sharing. You also need to realize the security implications of opening up FTP to your local machine; someone port scanning your IP ...


3

Are you using Lion? If so, Apple dropped support for managing the FTP service via the Sharing settings. But the underlying service is still available. You can manually enable it by running this command in the terminal sudo launchctl load -w /System/Library/LaunchDaemons/ftp.plist Then you can stop and start the service like this: sudo launchctl stop ...


3

What if you try http://wordpress.org/extend/plugins/ssh-sftp-updater-support/ ? If that doesn't work you can do a quick code change to get the logs with which the developer of that plugin can use do more diagnostics.


3

When you say moved WordPress, what do you mean exactly, Did you copy your entire WordPress installation from your localhost to your remote server without installing WordPress first on your destination host? Did you export your SQL database from localhost then import it to your remote server? Did you install WordPress on your remote server before copying ...


3

Multisite cannot be installed in a subdirectory of the document root currently. This will be possible in 3.5. See Multisite on Windows with wildcard subdomains for a guide how to manage subdomains automatically on Windows with XAMPP. You can move the plugin directory to another directory per wp-config.php. This is possible for themes too, but automatic ...


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

I'd like to add an advantage of WAMP that is not listed. With WAMP you can install extensions* that allow you to easily switch between different versions of php. Since WordPress's minimum requirement is php 5.2.4 and guarantees it will run on a server using it, to be truly compatible with WordPress a plugin needs to run under that version of php. There are ...


2

I believe the wordpress URL and site URl are not set right. Please try to edit your wp-config.php adding these lines: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); Is your index on same folder as wp installation? if not, you need to place it there. I'm talking about placing the URL in the above lines, not the index on ...


2

"MySQL server has gone away for..." This should never happen as result of admin operation on vanilla wordpress. One post publishing should not include enough DB writes to make the DB go away. Have you tried with all plugins inactive? Hey, is there a way I can host all the WP-admin functions locally, and simply push changes to the remote server? ...


2

For wp-content folder you need to add WP_CONTENT_DIR with path to this folder to each wp-config.php file of each your sites. All of these WP_CONTENT_DIR constants should have the same path to one folder. Read more about it here: http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content To share the same database, you just need to setup the same ...


2

Check the 'siteurl' and 'home' values in your wp_options table, and update those URLs to: http://localhost:8000/wordpress


2

I had same issue today on my new server. After a while i realize that zip/unzip is not active in my apache/php . When i recompile my apache with zip extension , problem solved.


2

The steps to take would be: 1 - Extract files 2 - Create DB and import 3 - modify wp-config.php for database name and user credentials if changed Do not modify db tables to change the site url as they are serialized and this will create more issues than you want to deal with. 4 - Use a script like searchreplacedb.php to search and replace all of the ...


2

You need the VVV Custom site template to enable multisite. And you have to let the main Vagrant instance load it automatically. Open the vvv-config.yml in the main directory, under sites: add the following entry: msvagrant: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template hosts: - msvagrant.dev - en.msvagrant.dev ...


2

Faster! My local WAMP install is SLOW, no matter CPU, RAM & SSD! Dedicated VPS solutions are x times faster than a local install. This isn't right. Typical hosting out there would be resource–limited and much inferior in performance to a decent desktop. You just might configuration issues or overestimate your hardware (time for upgrade? :) Staging ...


2

It looks like you're connecting to the live database from your local machine. Not many hosts allow remote connections to the database by default. You may have to request this type of access from your host. Also, it's highly recommended you work with a local copy of your database instead of connecting (and possibly changing) your live database. By the way,...


1

I for instance have MAMP pro running with custom development URLs like project.dev. When I created the one-click installation of Wordpress through MAMP, it automaticly entered the port-number into Wordpress as well. I don't think Wordpress likes when the port-number is :80 which is standard. Removing the port-number from Wordpress Address and Site Address ...


1

You've set the "WordPress Address" and "Site Address" at wp-admin -> Settings -> General to localhost. localhost means "this computer". That setting will work if you view the site on the same machine that the server runs on. If you view the site on any other machine the browser will look for files on "this computer"-- the computer the browser is on-- ...


1

WordPress is not built to do this, but I think it is probably possible in some sense. I think you would need to run your remote site like a mirror and sync your files and database from the local to the remote site, but you will have trouble keeping URLs straight. Both sites would be full WordPress installs, you just wouldn't use one of them for management. ...


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