Git clone ssh:// is also useful for editing code on a machine which does not have an X server running or on which you don't have Eclipse installed. This can be run as a cronjob at some regular interval. Changes you make to code - once committed back to git - can be updated running git pull in the htdocs folder. This is handy for maintaining a mirror server (eg., an internal build server which contains the same files as on ). If symlinking, make sure that the user running the webserver (apache:www) can read into the folders outside the web root! Checkout directly You can checkout the content from git and put it into the htdocs folder(s), or you can check out the content in Eclipse and symlink your checked out projects from the htdocs folder, if you web server is configured to follow symlinks. Git clone ssh:// for any vhosts you've got set up, or use symlinks. If you already have an /etc/init.d/http for apache2, not for lampp, you can replace it with this:Įxtract -common from git and put it in the root of your webserver: Restart Apache2 /etc/init.d/httpd restart SeeĮclipse_Server_Sandbox_Setup_(Archived)#Apache2_configuration. If you want to spoof different web content for, , etc., you'll need vhost directories so that each server has a different server root. Then make sure that you and the web user are both in the www group. You can use adduser or useradd and addgroup or groupadd to add them. Next, make sure this user and group exist. # running httpd, as with most system services. # It is usually good practice to create a dedicated user and group for # User/Group: The name (or #number) of the user/group to run httpd as. # httpd as root initially and it will switch. # If you wish httpd to run as a different user or group, you must run Out of the box, xampp's apache2 7.2.5 instance runs as user daemon:daemon you may want to run as apache:change this Rather than worrying about installing apache, php, mysql, and so forth, you can simply install xampp. # assume that hosts and hosts.spoof are different, otherwise this is a meaningless exercise If then # create a copy of the current hosts file You could set up a simple toggle script like this: Note that in order for your machine to browse to the REAL servers, you will need to remove this line. To make your local machine think it's add this line to /etc/hosts (or c:\windows\system32\drivers\etc\hosts):ġ27.0.0.1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |