Questions tagged [apache]

Apache is server software often used to host WordPress on. Questions about Apache itself are off topic.

105 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
3answers
3k views

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? forums%{...
4
votes
1answer
482 views

WP CLI info showing correct PHP binary but wrong version of PHP

When a run a command such as wp plugin update I get the message: "Your server is running PHP version 5.4.13 but WordPress 5.2.2 requires at least 5.6.20" I don't even have PHP 5.4 installed in my ...
4
votes
1answer
184 views

WordPress Multisite - Multiple subfolders for blogs

I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog,...
4
votes
2answers
217 views

Why is group ownership with rwx permissions not enough?

Running PHP 5.4 and Apache2 on Debian 7, with apache configured to use user www-data. I'm trying to figure out why Wordpress cannot modify files in its directory when it has group ownership with full ...
2
votes
0answers
53 views

Subdirectory multisite installation with several domain names?

I work as a sysadmin at a large academic department. We have an apache httpd, with a WP subdirectory multisite installation, fronted by an apache reverse proxy. In this setup we want to allow our ...
2
votes
1answer
933 views

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 ...
1
vote
0answers
15 views

Multisite gives Error if i want to enter Dashboard or Site

I´m struggling for 3 days now. I want to create a Wordpress Multisite System with subdirectories. As Server im using Apache. My wordpress is installed at /var/www/html/wordpress In order to do so i ...
1
vote
1answer
33 views

Why is the domain name missing from the logout redirect?

My development computer recently had to be rebuilt so I am now trying to migrate a WordPress site from the hosting company to my development PC. So far I have done this: Installed XAMPP. Download ...
1
vote
1answer
24 views

Cannot complete migration on LAMP

I have a WordPress site with LAMP. Since I moved to a new apartment the site does not display well anymore, and I cannot access its dashboard through http://my-wp-site.com/wp-admin. Note 1: I set up ...
1
vote
0answers
78 views

Change pagination url format

I have a URL like this: example.com/blog/page/5 I want to change it to: example.com/blog/page-5 I tried using a RewriteRule like this: RewriteRule ^blog/page-([0-9]+) /blog/page/$1 but this ...
1
vote
1answer
73 views

Directing subdomain to main domain and keeping the subdomain format with .htaccess

I am using bluehost and a single site wordpress site. I want when someone types in bob.example.com to show the Wordpress site at example.com, but still use the subdomain address (bob.example.com). I ...
1
vote
0answers
17 views

Point root folder to blog.domain.com and subdirectory to domain.com possible?

I have wordpress blog in root folder. and static website in a subfolder. in apache config: root folder points to blog.mysite.com and subfolder points to mysite.com. For both urls blog.domain.com and ...
1
vote
0answers
310 views

WordPress admin dashboard missing icons

When I log into the wp-admin dashboard all the icons are missing. Most of them are replaced with a empty square or just a blank spot. Background: I've duplicated my WordPress website on two servers -...
1
vote
0answers
141 views

Page preview is shown, updating page gives 404 error

I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like http://www....
1
vote
0answers
147 views

Wordpress returning 404 for multisite pages

I'm trying to configure a WP Multisite to run locally, all is fine on the server, but getting this to run locally is turning into quite a pain. The issue I'm currently seeing is that some of the sites ...
1
vote
0answers
31 views

Apache Site Aliases & WordPress Multisite

I'm attempting to allow users to access the same multisite content on a sub-site by using both www.example.com as well as www.example.org. Upon initial setup, I simply redirected all allowed hosts / ...
1
vote
2answers
459 views

How to redirect specific URL to Subdomain

I am trying to write a .htaccess rule to redirect the URL to a subdomain. Example: example.com/pagecategory/page-single → pagecategory.example.com/page-single I've added wildcard subdomain on my ...
1
vote
0answers
52 views

Server configuration for WordPress - Do I need install PHP-SSH extensions for Wordpress on Fedora28?

Migrated from Stackoverflow & Unix & Linux: Recently I tried to setup a Wordpress server on Fedora28 based droplet on Digital Ocean. A followed some tutorials and the result was the same: ...
1
vote
1answer
205 views

how to combine wordpress htaccess on my root domain + php on subfolder

I apologise for a seemingly duplicate question, but none of the dozens I've looked at actually had the same problem. I have the following directory structure: /.htaccess /index.php /subfolder/....
1
vote
0answers
319 views

Posting and image insertion problems after EasyApache4 and PHP 7 upgrade

I have around 40 Wordpress sites on a Centos 6.9 Apache2.4 dedicated server and I recently upgraded it to EasyApache 4 and then in WHM multiphp_manager/config I changed all the sites to PHP7. I ran ...
1
vote
1answer
52 views

Redirect old domain with query paramaters

Apologies if this is the wrong place, but I have a WordPress site and I need to bulk redirect an old domain with various query paramaters to a new URL... The old domain is: www.mysite.com/newspage....
1
vote
1answer
1k views

Can only access homepage and admin panel

I am really struggling to move Wordpress from an external host to my localhost (xampp). After two days trying to do this I am now at the stage where I can access the homepage and admin panel, but ...
1
vote
0answers
60 views

How to configure sub-domain for images on Debian Apache VPS?

in shorts: I want this https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/ BUT, I have VPS with Debian runing Apache and WP. I follow all steps from tutorial and not working ...
1
vote
0answers
38 views

Server stressed by /feed

I'm debugging a website that my friend has hosted on a VPS that should be perfectly capable of handling a Wordpress installation that gets ~2m monthly visitors. During the last few months, his uptime ...
1
vote
1answer
300 views

Unable to get /%postname%/ permalinks working, 404 on all links

I have only pages, no posts as links. It's just a mock site at the moment. I used a particular theme, set it to "Post name" permalink, and the links worked fine. But then I changed to another theme (...
1
vote
2answers
974 views

Site loads very slowly (4-5 minute load time)

I'm hosting a WP site on a VPN so I'm doing all of the server management. A while back, I simply renamed my WP folder so that it would be inaccessible. Now I need it to be accessible again and so I ...
1
vote
0answers
479 views

Wordpress can't see symlinked theme in Ubuntu

I know there are security issues with symlinks but this is for development purposes on my local machine only. I am trying to set up my wordpress development server. My workflow results in a 'build' ...
1
vote
1answer
220 views

Permissions in a Local Dev Environment (OS X)

I wanted to enable WordPress auto-updates to work without FTP, so I added: define('FS_METHOD', 'direct'); to my wp-config.php. So in order to grant write privileges to WordPress's auto-updater, I ran ...
1
vote
0answers
31 views

Does WP suppresses .htaccess if permalinks are disabled?

I would like to use a .htaccess file, but still use the default link structure of WP. I didn't turn on permalinks, but did create my own .htaccess file. To my surprise, the file is being completely ...
1
vote
1answer
375 views

Detect CURLOPT_SSL_VERIFYPEER programatically?

I have setup a somewhat intricate MailChimp plugin using their latest PHP class wrapper. One of the settings towards the top of the class wrapper is : /** * CURLOPT_SSL_VERIFYPEER setting *...
1
vote
0answers
84 views

WordPress site front page fails to load in IE

Disclaimer: I'm a front-end guy dabbling in back-end work. I have WordPress serving up a company Intranet site on a CentOS VM in a multiple vhost setup (LAMP). It resides at http://intranet.domain....
0
votes
0answers
11 views

WordPress in AWS Lightsail - restrict public IP

I have WordPress instance in AWS Lightsail with static public IP. I also created DNS record with domain to redirect to that IP. How can I hide/restrict public IP? Meaning I can now go to just that IP ...
0
votes
0answers
16 views

How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?

There are 2 containers with sites: on nuxt.js on wordpress They work in the same environment, that is, they are visible to each other. It is necessary in the 3rd container with Nginx to display the ...
0
votes
1answer
726 views

PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173

I running an instance of Wordpress on my web server but I'm getting this error in the logs PHP Warning: chmod(): Operation not permitted in /home/webserver/html/wp-admin/includes/class-wp-filesystem-...
0
votes
0answers
19 views

PHP Warning: file_get_contents(http://ip.googlescript.com… in Akismet3

I'm noticing this strange output in my Apache error logs for one of my WordPress websites. PHP Warning: file_get_contents(http://ip.googlescript.com/66.205.156.117?api_key=xxxxxxx&group=lib-...
0
votes
0answers
13 views

Wordpress Multisite loads wrong subdomain dashboard

Background: I have a VPS where i launched multiple websites. I then had a requirement to create a new website that will utilize the Wordpress Multisite functionality I created my wordpress website ...
0
votes
0answers
50 views

WordPress URL requests have suspicious query strings attached in logs

I have a simple Wordpress site. Unknown query string is appended to few requests by Bing and Google bots daily. In site's Apache access log, there are few entries every day like below: 157.55.39.119 -...
0
votes
0answers
9 views

Apache Rewrite specific subdomains

We have a website that has been listed on Google with the original holding domains (stage, prod, etc) We need to return a 410 to google and other bots for specific subdomains, but also rewrite other ...
0
votes
0answers
26 views

the content of the uploads folder gets deleted periodically, how to figure out what causes it?

The entire content of my uploads folder gets deleted periodically. every few days, I'm not sure when exactly. How can I debug what causes this? My set up is complex: around 10 plugins, some custom. ...
0
votes
0answers
15 views

how to write a function to show lists of running processes or while loop functions in php

Please i have a while loop function that am using to insert data into my database periodically, for some reasons i found out that while loop is more easy to use than cronjob, while loop runs without ...
0
votes
0answers
54 views

How can I fix a User permission issue on a WordPress website hosted on an apache VPS server?

I’m trying to install and set up some speed optimization plugins on a WordPress and I got some errors such as 1. Autoptimize: “Autoptimize cannot write to the cache directory”. 2. WP Asset Clean Up: ...
0
votes
0answers
15 views

Wordpress Session Scaling

I have about 30k to 40k sessions per day on wordpress website, I have caching enabled, wp-optimize plugin I have php-fpm enabled my pool options is below: max-request = 200 process idle timout = 30 ...
0
votes
0answers
69 views

Can I Apache 2.4, MySQL, 5.7, and PHP 7.4 to install WordPress from scratch on Ubuntu 18.04?

I'm planning to build a VPS from scratch to host a WordPress site, instead of using a built template VPS, because I'm having problems with the current setup, and I think the site doesn't like the ...
0
votes
0answers
100 views

The editor has encountered an unexpected error. Shortcut key to duplicate Ctrl+Shift+D breaks gutenberg

whenever I try to use the shortcut key to duplicate Ctrl+Shift+D , wordpress gutenberg editor just errors out “The editor has encountered an unexpected error” Please help, its very hard to write ...
0
votes
0answers
24 views

Unable to access ec2 instance with wordpress installed on it

I have an EC2 instance(ec7-1-33-24-12.compute-1.amazonaws.com) and connected to my domain name(mydomain.com). I was getting a security error on top of the browser hence I tried to install SSL from ...
0
votes
1answer
31 views

Error establishing a database connection - Wordpress setup, everything else is working

Setting up a LAMP stack with Wordpress on a home machine and port forwarding so I can host it on the Internet. Everything seems to have gone ok so far, except when I browse to the IP I see the error ...
0
votes
0answers
7 views

How to access website after migrating domain to production?

I set up a virtual machine, say machine A, running bitnami and wordpress and configured the SSL certificates for a domain. I then upgraded my code to NodeJS and got a new virtual machine, say machine ...
0
votes
0answers
43 views

How to configure reverse proxy for wordpress website?

I have installed Wordpress in the app server and trying to use a reverse proxy for forwarding user requests from the webserver(192.168.0.2) to the app server(192.168.0.3). While Forwarding, Dynamic ...
0
votes
0answers
223 views

301 Redirect Loop www to non-www - Nginx + Apache2

thanks for any help. I am not a server guy but I am dealing with a server at the moment. I have a site that is in a redirect loop from www to non-www. I am using a DigitalOcean Droplet with Ubuntu and ...
0
votes
1answer
16 views

How to edit content in WordPress and the Polylang – plugin? – with demosite

hello dear user, hello dear developer, the question; How to edit content in WordPress and the Polylang - plugin? first of all: i love PolyLang for its powerful features and the versatile options ...