Visual Website Optimizer A/B Testing On Local Machine - web-deployment

So I have my app running on my local server, I am trying to a/b test the feature with Visual Website Optimizer.
I put the server address(publicly not available) in the preview URL, but when I open the preview page, it gives a warning saying "Error: Cookie could not be set.". Cookies are enabled.
My question is, should the preview page (or default campaign url) be publicly reachable for VWO to work properly?

In order to run the VWO on localhost, you just need to make a small adjustment to the /etc/hosts file. Just add "localhost.com" at the end of the line that says "127.0.0.1 localhost"
Now you can run the VWO on any URL that starts with http://localhost.com.

The URL of the page should be publicly reachable only for Screenshots of the variations. Live previews should work even if the URL is accessible only locally. Though you should use a valid URL i.e. a URL having a valid domain name and TLD.
For any other info / debugging I would request you to send a mail to support (at) wingify (dot) com if not already done so that an exact solution can be shared.

This is probably because you are opening your website as an html file in your file system. You can host your static website locally with HarpJS. Install it through npm
npm install -g harp
Go to the root dir of your site and run harp server. Now you'll be able to open your site on http://localhost:9000
Also I have written an article how to easier develop experiments for Optimizely/VWO usage http://bit.ly/1C4vtSA

Related

Compute Engine (wordpress website) crashed, wrong SSL command and space issue

I have been running my wordpress website on Google cloud the last 12 months with no issue. VM instance - using SSH on Apache server.
My website went down yesterday and I could not access it through wordpress. I am trying to do everything myself and I am a beginner when it comes to learning the back end functionality.
So I went into my google cloud and ssl’d onto my server. I though it might be an outdated certificate and I entered an incorrect command (see photo attached - I didn't include my actual email and domain name stupidly, copied and pasted it from the internet). And now I am getting an error saying mysql is not working. I think there may be a space issue too.
When I try go to my website I get and
Error establishing a database connection
So my questions are - did I mess up anything from entering the wrong code in SSL? And how do I solve the space issue and get my site running again.
I just tried to updated my server size through google console - but gettting the error in the screenshot that it can't connect.
Enter the following content into the script and save it. Ensure to replace the ‘Domain’ placeholder with your actual domain name, and the ‘Email-Address’ placeholder with your email address.
For Apache:
#!/bin/bash
sudo /opt/bitnami/ctlscript.sh stop apache
sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90
sudo /opt/bitnami/ctlscript.sh start apache
Please go through this link for more information.
In some cases, the certificates aren’t properly uploaded to the server, so the server is still using the dummy ones. Perform the following checks:
Check that the certificate files are located as below for Apache:
Certificate: /opt/bitnami/apache2/conf/server.crt
Key: /opt/bitnami/apache2/conf/server.key
CA: /opt/bitnami/apache2/conf/server-ca.crt.
Please follow this link for connection refused error.
If you still face issues after following the above, do mention the details about the error to narrow down the issue.

Best way to create wordpress dev site on different server but when domain in use

Looking for guidance on best practice in creating a new Wordpress website, online, when
A) I'll be hosting the site on a new server
B) The site will need to be viewed by client online
C) The site domain is currently live, in use and must remain directed to current server (until site complete) and
D) Current site is very old and would likely throw up endless issues if transferred to the new server.
E) No-one has access to the current server.
I'm currently looking at options around temp URL's, or just using a dev URL I use solely for builds. Then once complete and DNS redirected to the new server, Find and Replace all references of dev URL for the correct URL.
I've searched online but generally, only find answers to the queries "building site without impacting live site" or "building site locally". Not my query - "building a site online with a domain I can't use as it's in use etc".
Any guidance on this would be appreciated. Thank you.
Create an edit in your machines hosts file so that the live url points to your dev server instead of the live server. When the client needs to check the progress they can temporarily update their own hosts file to check and then delete it out to go back to seeing their current site.
Windows
If you’re computer runs Windows, follow the instructions below:
Press the Windows key.
Type Notepad in the search field.
In the search results, right-click Notepad and select Run as administrator.
In Notepad, click File > Open
Change the File Type in the bottom right corner to All Files instead of Txt Files
Open the following file: c:\Windows\System32\Drivers\etc\hosts
Scroll to the bottom of the file and type the IP address of your dev server (xxx.xxx.xxx.xxx)
Press Tab
Type the address we gave you (www.whatever.com)
Click File > Save to save your changes.
Close Notepad
If Mac
Press Command & Space
Type Terminal
Press Enter
Type sudo nano /etc/hosts
Press Enter
Type the password you use to log into your machine
Press Enter
Scroll to the bottom of the file
Type the IP address of your server (XXX.XXX.XXX.XXX)
Press TAB
Type the web address we gave you (www.whatever.com)
Press Ctrl & X
Press Y to save
Press Enter

index.php is bypassed in wordpress local install

hello I have a local wordpress installation, which is a copy of my hosted website.
i'm going to try to make it simple :
If i type "http://mylocalwebsite/index.php", it works and shows me my local copy
If i type "http://mylocalwebsite", index.php is still used, but i'm ending in my hosted web page (www.myrealsite.com)
If i type "http://mylocalwebsite" again, it doesn't use index.php, and directly opens my hosted website.
All hosts files are correct, none of them is leading to my hosted website.
I've done a search for "www.myrealwebsite.com" in the directories of the local copy : no result.
I just don't understand why. Any ideas ?
Thx
This is a cached redirect from the browser you are using (since the hostname you are using is not FQDN, the browser tries to correct that, or has previously seen a (301) redirect to the real webpage like from non-www hostname, to a www.hostname and uses that to assume what is correct).
If you try the same with CLI curl request, I would imagine the result will be as you expect.

deploying meteor on my own server

I want to deploy my meteor app on my Ubuntu server, I used meteor.sh https://github.com/netmute/meteor.sh
and everything went successfully, But i simply can't launch my app from the browser.
I'm putting my ip address and getting a 404 The requested URL / was not found on this server.
I have apache2 running, and i removed its redirection to 8080 (i used it to tomcat before)
Thanks.
(the reason i didn't use meteoric.sh is because i don't have my source code on git)
Which port are you using? It seems a proper export PATH=nnnn; is missing... or maybe you are not including the port number in your browser's address bar, like http://example.com:1234 for port 1234.
I am in a similar adventure of yours, and I've just posted the results of my experience here!
I didn't use meteor.sh nor meteoric.sh, but ended up following their path...

Dreamweaver CS6 Site Setup for Test Site with MAMP and WordPress NIGHTMARE

I have been trying to set-up a test site server on Dreamweaver CS6 IDE (which I hate) to try out the Dynamically-related files theming feature. I have been attempting to do this for hours and looked at more tutorials and blogs than I can remember attempting to set-up a test site so that I can simply try out this feature but nothing seems to work.
On the Site box I have:
Site Name: test site
Local Site Folder: users/myname/Sites/wordpress/
On the Servers I have:
Server Name: Apache
Connect using: Local/Network
Server Folder: users/myname/Sites/wordpress/
Web URL: http://localhost:80/wordpress/
Advanced:
Server Model: PHP MySQL
Yet I am receiving the an Error message:
Dynamically-related files could not be resolved because the site
definition is not correct for this server
Which makes no sense to me. Can anyone explain what am I doing wrong?
"i was under the impression that this feature would somehow convert PHP syntax into HTML so that it can be easily edited..."
What in God's name gave you that impression? PHP is server-side scripting; a way for the browser to communicate with the server and database and HTML is a way for the browser to communicate with the client (you) and render things in a form which is usable by humans. There is no "conversion", as they are two universally different languages, each serving unique functions.
In order to "easily edit" PHP, the only solution is to learn PHP scripting and syntax.
MAMP's sole purpose is to install an Apache server, PHP, and mySQL on your local computer for a server-side/database framework, such as WordPress, to store information and communicate with. Essentially like creating a mini web-host on your local machine, allowing you to check the functionality of PHP based applications.
These setting are working for me:
Open the Dreamweaver Site Setup window
Select "Servers"
Server Name: localhost
Connect Using: Local/Network
Server Folder: MAMP/ /Applications/MAMP/htdocs/your_directory_name/
Web URL: http://localhost:8888/your_directory_folder/
For a full explanation: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html#articlecontentAdobe_numberedheader_2
I have come across the same issue and found this thread.
The post that explains a bit what we want to hear is post #6 by David_Powers on 01-May-2010 at 05:31.
So to make the problem go away you can go to 'Edit -> Preferences' and disable 'Discover Dynamically-Related Files' while leaving 'Enable Related Files' activated.
Although this fixes the error display I don't quite understand what David_Powers says this function will do and if I actually want it turned on. If someone could help me realize what this option does I would appreciate it.
I don't know if this is relevant, but after many tries to figure out the Server not found error, I stumbled across MAMP Preferences on the start up page.
After clicking on Preferences, I noticed that the Document Root was pointing to username/Sites instead of MAMP/htdocs.
MAMP Preferences > Document Root > browse to select
After I set the Document Root folder to htdocs, I finally got Dreamweaver CS6 to display my php file when I clicked the Live button in split screen mode.
None of the other answers I searched mentioned setting MAMP preferences to the Document Root folder. I hope this helps.

Resources