PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?

I did a lot of searching and also read the PHP $_SERVER docs. Do I have this right regarding which to use for my PHP scripts for simple link definitions used throughout my site? $_SERVER[‘SERVER_NAME’] is based on your web server’s config file (Apache2 in my case), and varies depending on a few directives: (1) … Read more

wp-admin/index.php gives a “500 Internal Server Error [closed]

Closed. This question is off-topic. It is not currently accepting answers. Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question? Closed 6 years ago. Improve this question experts, UPDATE: hello dear experts UPDATE. … Read more

login wp impossible

well i can access the sites: www.foo.com and www.bar.com but i cannot access the login – the sites are blank. foo.com/wp-login.php bar.com/wp-login.php i have the following logs. [Mon Jan 01 16:26:03.229924 2018] [core:notice] [pid 17589] AH00052: child pid 24869 exit signal Segmentation fault (11) [Mon Jan 01 16:39:54.242584 2018] [core:notice] [pid 17589] AH00052: child pid … Read more

Redirect from different port to subdomain – htaccess

I created a Digital Ocean instance to install WordPress website 5 days ago. I already have my own domain, and created DNS Subdomain blog.example.com. The server runs both nginx and apache so my Apache port is 8082. Below is what my actual WordPress URL looks like: www.example.com:8082/wordpress/ Something which I have tried is below. <IfModule … Read more