Wordpress paths in VMware virtual machine - windows

I am trying to test my local Wordpress site in a VMware virtual machine running Windows, but links are broken! The site is loading, but not the CSS or the images. All the non-wordpress sites are running perfectly.
I assume this has something to do with the paths that Wordpress create, they are still 'localhost' even tho I am accessing my site in windows with the virtual host 'mysite.wp'.

I think you can just use Chrome Ctrl+Shift+I to show the source of the wordpress page, and just find the CSS and image in the source. And to analyse the it.
But I just guess, you may reset the permission of the wordpress folder. If you use Linux as the server, you must give the read permission to the folder. I think.

Related

Accessing homestead site on another computer in network

I have set up and my wordpress site on homestead. I have windows machine running it and it works nicely, i can access my configured URL when i edit hosts file. Now i want to access the domain from different windows machine that relies in the same network but this time editing hosts file does not work, it simply cant resolve it and times out. Is it even possible to do that? I would prefer if i can get it working with hosts file and not using vagrant share or similar service like that.
Thanks in advance!
I had the same problem accessing my homestead install across the network until I recently discovered I could perform a Network Preview for my Prepros projects (https://prepros.io/).
Homestead files are mapped to your local computer; adding them to prepros projects will give indirect access to your homestead website.
Its been working quite well for me.

Display all files in MAMP PRO htdocs through the browser

I recently acquired MAMP PRO for my mac so that I could host WordPress sites that I am developing locally. My other local server solution called Desktop Server allows me to view a list of websites that I am developing when I visit localhost in the web browser.
However I have searched Google for an answer to this and would ideally like to have a similar setup with MAMP ie when I visit localhost:8888 I would like to see all the links to sites that I am developing and be able to click on them to access them.
At the moment my development sites are running in the sites folder in MAC OSX Mavericks. When I visit localhost:8888 I get the mac's personal web sharing page running which may be because the native apache server is running.
If you have any thoughts on this please let me know?
It is a bit late with my answer but have to turn off apache first running this
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
you have to remove index.php or any other index.html etc from your htdocs in Mamp
To allow a web server to produce a directory listing, whenever you point a directory without index file. Add following line in your .htaccess file of your local server
Options +Indexes

How can I perform cross browser testing when using Subversion as my version control system?

I have recently installed subversion and nginx server on my machine (macbook pro). I'm fairly new to subversion as a whole and have just built a single webpage through this version control system, and now I'm faced with the task of testing it in all of the relatively modern web browsers. My biggest concern, as far as browser compatibilty is concerned, is Internet Explorer which, in order to test, I need Windows. I have Windows 7 installed on my mac via Virtual Box, and herein lies my problem.
I have not committed the new page I've just created to the repository, by the request of the client. Because of this, as far as I know, I have no URL to use for testing in IE Tester, Firefox for Windows, etc. How can I test this 1 page site's browser compatibility with without having committed any changes to the repository?
I can test it easily on my machine using MacOS, by just typing in local.*.org and it shows up. Again, windows is my issue. This project is due this Thursday (5/24/12), so you're help is greatly appreciated.
1) Developing and testing your web page is different from managing your web page source. In other words, testing web pages != using SVN.
2) If you've not actually been able to use SVN yet - and if your client has no preferences - then please try TortoiseSVN:
http://scplugin.tigris.org
3) Please post back any specific questions you have about installing/using SVN.
If the site uses any scripting languages like PHP, and/or databases, you need to get those setup correctly first. If your website consists of just HTML/CSS/JS... then you can access the website via either of these methods:
Enable Web Sharing (System Preferences > Sharing > Web Sharing). Then type in the IP shown there into your browser in VirtualBox and it should load. (This is probably easier than trying to get nginx configured, though it might very well load if you just type in your machine's IP.)
In VirtualBox, select your VM (powered off), Settings > Shared Folders. Add your website's root directory. Launch the VM, then browse to it within the VM and open up your files there for testing.
My current environment is setup like this:
- Local dev machine with git & SVN
- Remote DB server
- Remote web server
- Web server mounts local dev machine's www folder as a volume and serves the PHP pages from there
- Load web browser in VMs or any other machines. Edit hosts file if need be for local routing.

File sharing over the internet - WebDAV / SMB / FTP

We are developing a web based application which provides a repository of users case files. Would like the user to be able to access these from their web browser with full read write capability.
For an earlier generation of our system, which was hosted on a local Linux server with Windows clients we were able to share out a folder and access it with \\server\share_name\file.doc type links. If these type of links were included in web pages (in internet explorer) and clicked on the file opened in MS Word and was savable directly into the shared folder. These type of links however only worked in IE - not FF or Chrome
Moving now to an internet based solution in our next generation of the system, we require similar functionality.
We are toying with the idea of having a WebDAV (or FTP/SFTP) share and mapping a local drive on each client machine to it to provide similar functionality. This though will probably not work well with FF or Chrome with \\server\share_name... type links. We have done brief testing and file:// links do not provide write capability once the file is opened.
As a last resort we will be able to use manual file upload dialogs, but this is not ideal and would entail additional end user training.
Has anyone any similar experience in this field and any possible solutions / best practice.
When you map remote resource as a local drive, for a browser this becomes a local drive. And browsers have only limited access to the local file system. Now when you provide a link to the browser, the browser's default behavior is to download the resource behind the link, and then let the local application process it. The browser just doesn't know how to open the remote resource locally in a different manner.
The solution would be to let the browser download something (some kind of link file) and have some local helper module (external application or browser plugin) open this link file and open the location, specified in this link file, locally. As this would be a client-side helper module, it will be able to interact with the client system and will know how to open the provided link. Given that the virtual drive letter can be different on each system (if you mount the disk to the drive letter), the helper module would need to resolve the link to point to the correct local drive. If you create a hidden virtual drive (our virtual storage products let you do this), then a link would look like "\SomeFancyNameUniqueToYourApp\Path\To\File.ext" and no resolving would be necessary. And most applications handle this type of paths fine.
I don't know for sure, but it's possible that browsers will open Windows .lnk files without a need in helper module, and with hidden virtual drive you could generate an LNK file on the server and have the browser open it locally. But this is just a guess. My bet is that you will need a helper module anyway.
ftp://username:password#hostname/ type links should work, and MS apps are getting better at handling them. still not 100% though
Try SMEStorage.com. They enable you to map local WebDav and FTP servers and access files using a Cloud Drive on Linux, Mac or Windows, and also from mobile devices (iOS, Android, BlackBerry and Windows Phone 7). You can get unique file links for each file and also secure file sharing in which the links expire.

How to deal with symbolic links when going between Linux and Windows?

I have a django project that runs on a Linux server, and I've been working on it both on Linux and OS X. I've noticed that some of the pages are a bit off, to put it politely, in Internet Explorer, and so I checked out the subversion repository on Windows and tried to run a local server.
My media directory has symbolic links to all of the media from each different app, and obviously Windows doesn't know what to do with them. I could simply hard-copy or link everything manually in Windows, but then I wouldn't be able to check that in (since the site runs on a Linux server), so it'd be a pain in the neck.
What is typically done in this case?
Set up a configuration using httpd and mod_wsgi that has appropriate Alias directives for the static media.
you could also add some static.serve links in your urls.py for debugging purpose :
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)/?$', 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT, 'show_indexes':True})
)
quicker than setting up apache+friends on win32.
Instead, of running a server on Windows just to test for IE, you can run a server from on an IP that identifies your machine on your network. Just run
python manage.py runserver ad.dr.re.ss:8000
To find the (local) address of your machine, access your router logs to see who's connected (I'm sure there's a better way, but this worked for me).

Resources