I have a virtual machine (VirtualBox) running latest ubuntu server as my personal/development web server.
My configuration is the following:
My web server (running Zend Server CE) is running on the virtual machine.
My files, are on my host machine (Win7) and all the virtula machine does is to serve the files from a shared folder.
So if I go to /home/ronaldo/htdocs/project_name I can see all my files for that project - the shared folder in this case is the main folder - htdocs.
I use VirtualHost - so every new project has an address such as project_name.local.
Every now and then, when I add new files to a project - say, using Dreamweaver, PHPDesigner or even Internet explorer, that file is not recognized on the server.
It was working fine.
I think my last major change was to upgrade the server to the latest some weeks ago I think.
Now, lets say I'm working on an Opencart ecommerce project and I am creating a new module, with controllers, views, etc. The new files are not recognized until I reboot my server.
When I try to list the files on my web-server using "ls" - the new files appear in red.
Why is that?
Anyone has a similar setup or can help me with a workaround not to have to reboot the server.
Unmount/Mount the shared folder : http://www.virtualbox.org/manual/ch04.html#sf_mount_manual
You may get more specific help at virtualbox forums.
Or if it is an option, you can create a windows share and use that from Linux.
Related
I'm using MAMP Pro v4.4 on an iMac running High Sierra. I need to provide remote access to sites. The document root is htdocs for all my sites. I use no-ip.com for DDNS. It all works fine. Locally and remote, no problem.
I'm trying to setup another host and eventually assign it another version of PHP if I can get that far. I don't know what I'm missing but I just don't get it. I follow the docs. Create the new host name and choose the document root folder which is in the htdocs folder.
For example, on my local machine it works fine. http://testhost:8888 resolves properly. But http://other.ddns.net:8888/testhost does not. In fact none of the ddns works now even the ones that had been working.
Not sure what I'm missing? Or doing wrong? Thanks for any suggestions.
I have a live site that is set up using ubuntu. All my files include a bunch of classes and they are all referenced at var/www/classes/class_name. My file structure is a lot different being on a wamp server.
I don't want to have to go through all my files and change the location to match that of the windows machine.
Is there an easy way to make my wamp server look in a windows directory structure when my php file says to look in var/www?
I don't want to have to go through all my files and change the location to match that of the windows machine.
You should be using relative paths anyway so that this isn't a problem. I strongly suggest going back and fixing your paths so that you can move your code to wherever it needs to be.
I have a live site that is set up using ubuntu.
You should be running your development code in an environment similar to where it will run in production. I suggest using a tool like Vagrant to manage a virtual machine for you that runs Ubuntu and whatever web server you run in production. When you do this, you can also map directories over in any way you like. (You should still solve your path problem though.)
I've been working with a WAMP setup on windows, while learning PHP and MySQL. Lately, I wanted to try to put some of my work online and signed up for Rackspace, and I've now set up a LAMP environment for my server with centOS 6.5.
When I worked off of my own WAMP environment, all files were inside wamp/www as the root directory.
Now, I understand that my root directory for my web environment will be /var/www/html.
To be clear, I am logged as root, so I'm not interested in changing permission. I'm simply interested in learning how to add files into this directory, which the existing posts on stackoverflow or rackspace does not seem to have an answer for.
I'm completely new to Linux and I'm using Putty to write to my linux server. Could someone please walk me through the process of putting files into and taking files out of /var/www/html?
Use pscp from the putty suite, to copy your files from your machine to the server via scp.
See http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html
I have always been using netbeans to develop php project but wanted to give a try to see how intellij Ultimate (version 13 in this case). After installing the php plugin, and created a simple web application project, I got lost. Turns out to some hours of googling and trial and error I couldn't find that small thing that could say check to copy the the files to remote location or remote server etc.
I am running fedora 19 with apache2 so my root directory is /var/www/html/phpproject. I am hoping to see my files from /media/blacksensei/Repo/work/intellijworkspace/phpproject/src copied to that folder so that I can have access to it via http://localhost/phpproject.
Can anyone explain this process simply for me.
Thank you
I'm not php developer. But what I see that it is quite simple:
Create Run/Debug configuration for PHP Web aplication
Tap + in Before launch section
Choose Upload to Remote Host and configure it
You can find more details here - http://www.jetbrains.com/idea/webhelp/uploading-and-downloading-files.html#d438110e553
I have been developing a PHP project solely in Dreamweaver. After determining that Netbeans will make my life easier, I installed Netbeans 7.2 for PHP.
I followed the project setup guide, yet I am having issues with the project folders. I can edit and save source files, but how do I update the files on the localhost?
Specifically, I have the project source files located on our work drive, which I can use as a regular hard drive. I even have a site file for this project in Dreamweaver, with the source folder, the local folder, and the remote folder profiles all set up and functioning well.
Do I need to change how I store the project files? My Netbeans project properties are as follows:
Sources
-Project Folder: D:\work\cms\current
-Sourec Folder: D:\work\cms\current
-Test Folder:
Run Configuration
-Configuration: <default>
-Run As: Local Web Site (running on local web server)
-Project URL: http://localhost/cms/current/
-Index File: index.php
And I see no other relevant settings, but if you ask about any I will update my question.
When I make a change, I save and select Run. The page loads as expected, but the changes are not there, the localhost copy did not get updated. How do I resolve this?
You could install an FTP server e.g filezilla server and in the project "run configuration" change to remote web server, then specify localhost and the ftp details.
Or create a script to copy over the project e.g .bat or .sh depending on OS.
Or change your project location to be inside the localhost web directory and just use it in there.
I had the same issue, I gave in and now have apache pointing to my project folders on my development machine.