posts returns to wampserver home page
Posted by: mhjgroenen (---.fixed.kpn.net)
Date: March 10, 2023 06:42PM

localhost/mywebsite works
Clicking a post nicely shows the post url: localhost/mywebsite/mypost but the window shows the wampserver home page without any css formatting. What is wrong here ?



Edited 1 time(s). Last edit at 03/10/2023 07:22PM by mhjgroenen.

Options: ReplyQuote
Re: posts returns to wampserver home page
Posted by: webmasterinnj (---.cmdnnj.fios.verizon.net)
Date: March 10, 2023 08:36PM

hello smiling smiley
i think you need to use a virtual host first before using any forums or posting apps.
otherwise you will get errors.
try making virtual host first then go ahead and install your apps.

[djswebserver.v6.rocks]

Options: ReplyQuote
Re: posts returns to wampserver home page
Posted by: mhjgroenen (---.fixed.kpn.net)
Date: March 10, 2023 11:28PM

I can edit the post so reading the post from the phpMyAdmin server works, but when I view the page I get the wampserver home page, but the url is from the post. Can it be a related to http, https conversion.
In wp_options the home and siteurl are both [localhost] , but on the web they are both [www.mysite.nl].

Options: ReplyQuote
Re: posts returns to wampserver home page
Posted by: Otomatic (Moderator)
Date: March 11, 2023 08:59AM

Hi,

> url: localhost/mywebsite/mypost

Local sites MUST be in VirtualHost!
See:
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost
and the VirtualHost MUST exist BEFORE the installation of a CMS or a web application like WordPress.
See:
Why to create a VirtualHost BEFORE installing a CMS

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: posts returns to wampserver home page
Posted by: mhjgroenen (---.fixed.kpn.net)
Date: March 13, 2023 12:22AM

Thanks, it works. However installing Wordpress gave me another problem which I resolved.
Problem: I run wamp64 on iMAC under Parallels/Windows10. Wordpress unzip under W10 misses 3 files:wp-blog-header.php, readme.html, xmlrpc.php. This causes mysite execution to fail. I solved it by unzipping Wordpress on my iMAC and copied the missing three files to Win10.

Two other question: (I read the manuals, but not 100 % clear, sorry )
1) Is there a functional difference between creating a VHOST shown as project in c:/wamp64/www/mysite or creating a VHOST in e.g. c:\www\mysite, which is not visible as a "project" but as a virtual host.
Just the DocumentRoot C:\wamp64\bin\apache\apache2.4.54.2\conf\extra\httpd-vhosts.php

2) How do I safely change the path from c:/wamp64/www/mysite to c:/www/mysite ? Which files to touch ?
Is httpd-vhosts.php enough and rerun DNS ?

Options: ReplyQuote
Re: posts returns to wampserver home page
Posted by: Otomatic (Moderator)
Date: March 13, 2023 08:39AM

Hi,

1 - No functional difference, that's the advantage of VirtualHost

2 - There is only the httpd-vhosts.conf file to modify and of course, as you wrote, restart the DNS so that it is taken into account by Apache.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.