Working on local xampp install of Magento 2.4.2 on Windows 11. I'm a Magento newbie - made it past several common Windows install issues but getting stuck with how to tell Apache where WP install is located. This install is a dev site, not sample Magento install.
Wordpress is integrated via Fishpig and below are some details to be entered inside server{} of nginx.conf file per dev setup docs.
# WordPress is installed in pub/wp
location /wp/ {
index index.html index.php;
try_files $uri $uri/ /wp/index.php?q=$uri&args;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9074;
fastcgi_index /wp/index.php;
include fastcgi.conf;
}
}
I tried that actually, but I'm using xampp & Apache not nginx for this install. I'm currently getting "WordPress doesn't appear to be installed" error at base url.
So my question is - where / how can I enter this info in Apache config? Or is there a different solution? I looked into several .htaccess files but that doesn't seem to be the right place unless I reformat the details.
Unlike Nginx, you don't actually have to configure individual routes to different applications. If you have set your public root directory and that points to Magento, you don't then need to add extra configs for WordPress.
Just install WordPress in a subfolder of Magento, something like 'wp'.
Let's say you have Magento installed and can browse it on the URL:
If you then install WordPress in a subfolder called 'wp' you should be able to run the installer at:
https://local.yourstore.com/wp/
This will work automatically without any extra config in Apache to get this working.
One thing to ensure is that you have Magento running from /pub and WordPress is installed in pub/wp.
If you install WordPress in a different folder, you will need to modify the path in the FishPig module config in the Magento Admin as 'wp' is the default value used.
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.
The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
HTML (English "hyper text markup language" - hypertext markup language) is a special markup language that is used to create sites on the Internet.
Browsers understand html perfectly and can interpret it in an understandable way. In general, any page on the site is html-code, which the browser translates into a user-friendly form. By the way, the code of any page is available to everyone.
https://www.w3.org/html/
Welcome to the Q&A site for web developers. Here you can ask a question about the problem you are facing and get answers from other experts. We have created a user-friendly interface so that you can quickly and free of charge ask a question about a web programming problem. We also invite other experts to join our community and help other members who ask questions. In addition, you can use our search for questions with a solution.
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.