Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy

If you are still looking for a solution, your nginx configuration should look like this in order to achieve what you described… server { listen 80; server_name yourdomain.com root /path/to/yourdomain.com; index index.php index.html; location / { # directives to handle static site } location /sub { # directives to handle WordPress try_files $uri $uri/ /sub/index.php?$args; … Read more

Why is WordPress’ installer “phoning home” during the install script?

Ok, just browsed through the source code for wp-admin/setup-config.php 🙂 Apparently the distant call is made to generate SALT secret keys: $secret_keys = wp_remote_get( ‘https://api.wordpress.org/secret-key/1.1/salt/’ ); Calling this URL generates code like this: define(‘AUTH_KEY’, ‘5.p7N9J5mEb++TB9=X[#mD,97,*L.2&j `]+9(igm;.G8z#zCx{JcocPkoqJW_l*’); define(‘SECURE_AUTH_KEY’, ‘y)pV:td0nD>Vk.WQY/_jz>B.fW+6-)JXQB+o–c@+LfHdRlJUmq~{CK%8(RI}/:(‘); define(‘LOGGED_IN_KEY’, ‘~3:FIV(b+0YB3zh-H+}X$3Z0^6J|5R0G/?((#iQ<zR5R.&`og[.)*l0O/R;|fkZH’); define(‘NONCE_KEY’, ‘3*{YXmsB`qHI^:C7R<P6RfD=+ }.aD+[1 8?]Z `y$Qs!B{;WBa_bA4)^v7fTc*t’); define(‘AUTH_SALT’, ‘iKqrV-wj-Tul9Hf/73.^k,X9:}44X>Md|N7Wcis,t~{;z5gkAJ+_#@+`K*<(,$>}’); define(‘SECURE_AUTH_SALT’, ‘|IHFZzBK~;O|^+}btQ|XD2D+y.|tIG>+@%#7Au%HScaX0zgOf_3}B299I;miqoz:’); define(‘LOGGED_IN_SALT’, ‘} >Bpcr|jIZ6~88isD ^!f<a>J7MKtqhi]%)-)6Cpu-@&7L;VDo?O+J+!a^>n(K8’); define(‘NONCE_SALT’, ‘5QW_oa0[P._!IVGe+OGHkO?i+U|5k6Fr-O;,-Hr@|<f!}i%iZVK2[#My-ld|4]8M’); … Read more

Creating a sub folder inside a root installation?

I don’t know why you couldn’t access the folder. Maybe you wanna check your .htaccess file first. The default rewrite conditions for apache created by WordPress should include the following two lines, which prevents the redirecting to index.php if a physical file or directory is found. RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d You could … Read more

I moved my WordPress site to the main directory and now I can’t access my admin

You’re almost there, it’s just the other way around: define(‘WP_HOME’,’http://www.m2comm-semi.com/new’); define(‘WP_SITEURL’,’http://www.m2comm-semi.com’); WP_HOMEis the URL where the actual files are and WP_SITEURL is the URL under which you access the site. Also be aware that this doesn’t go in the functions.php but in the wp-config.php The Admin is always accessible via the actual location of the … Read more