Cant get wordpress to work on subdirectory

so @funkysoul was kind of right in terms on installing php. It was still a nightmare to setup nginx the way i needed it, my solution is: location / { try_files $uri $uri/ =404; } location ^~ /blog { alias /srv/www/wordpress; try_files $uri $uri/ /index.php?/$1 last; location ~ \.php$ { index index.php; include snippets/fastcgi-php.conf; fastcgi_param … Read more

Where to save common libraries?

I would recommend creating a plugin that holds all of your libraries. In the main plugin file, set a constant that defines the path to the plugin folder so you can easily include the files with your other plugins/themes.

Limit multisite/network site names to a property of the user

Looking at the source of wp-signup.php, it looks like your best bet might be to filter signup_blog_init (line 303 in v. 3.5.1): /* add_filter( ‘signup_blog_init’, ‘wpse103022_blog_name’ ); function wpse103022_blog_name( $blog_details ) { // Set $username to the user’s username $blog_details[‘blogname’] = $username; return $blog_details; } */ // see code below for replacement I’m not 100% … Read more

How can the temporary update directory be changed?

Impossible. The path is hard coded in many places (wp-admin/includes/update-core.php for example). I think this is worth a Trac ticket, if there isn’t one already. We can move the directories for plugins, themes and mu-plugins. This is the last thing why we need a wp-content directory at all. Update There was a short discussion in … Read more

register_theme_directory somehow “fails” when folder is outside of WP-Folder

While I cannot speak to your specific white-screen issue, registered theme directories must be within the Apache document root, at minimum. Many files in themes, such as CSS, JS, images, etc, are served directly by the webserver, not via calls to WordPress. So having a theme directory that is not directly accessible and serve-able by … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)