![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for editing column files | JunZ | Shell Programming and Scripting | 2 | 03-25-2009 03:35 AM |
| editing files with script | Asteroid | SUN Solaris | 5 | 02-10-2009 11:20 AM |
| Cons: Configuration is done by editing the text-based config file ... - Techworld.com | iBot | UNIX and Linux RSS News | 0 | 10-09-2007 09:10 AM |
| Editing MySQL config through ssh ? | Denis.R | UNIX for Advanced & Expert Users | 2 | 02-15-2005 06:35 PM |
| Apache Config Files | Webwitch | UNIX for Dummies Questions & Answers | 1 | 08-01-2001 03:35 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
okay i'm going to try to say this uber-simple:
I use dropbox (file-sync service). in order for dropbox sync files, they must be its children [eg. somewhere under /home/jzacsh/Dropbox]. I want to now use it to keep my development files in sync across my machines: easy: just move my dev. files under dropbox catch:I want them to still be viewed as the localhost docs by the server. (fyi: running apache on macbook and linux desktop). I wrote the below alias into my shell's login file (.bashrc on my linux machine, .profile on my mac) sidenote: maybe someone can tell me "for this much stuff - avoid aliases, you should be making them functions!"??? idk, it just looks messy I think [eg. servvar and servtmp aliases]. My solution I placed these in my login script: Code:
#apache's config file determining localhost's location on fs serverConfig='/etc/apache2/sites-available/default' #aliases to cd into, and to turn localhost location on alias web='cd /var/www;clear; pwd; ls -la;' alias servvar="sed -i 4,5s/#//g $serverConfig; sed -i 5s/^/#/g $serverConfig;sed -i 10,11s/#//g $serverConfig; sed -i 11s/^/#/g $serverConfig" #aliases to cd into, and to turn localhost location on alias tempdev='cd ~/Dropbox/crossPlatform/tempDev;clear; pwd; ls -la;' alias servtmp="sed -i 4,5s/#//g $serverConfig; sed -i 4s/^/#/g $serverConfig; sed -i 10,11s/#//g $serverConfig; sed -i 10s/^/#/g $serverConfig" Code:
4 #DocumentRoot /var/www 5 DocumentRoot /home/jzacsh/Dropbox/crossPlatform/tempDev 6 <Directory /> 7 Options FollowSymLinks 8 AllowOverride None 9 </Directory> 10 #<Directory /var/www/> 11 <Directory /home/jzacsh/Dropbox/crossPlatform/tempDev> on a complete guess I did this (after making an "original-*" copy of the config file) Code:
chown jzacsh /etc/apache2/sites-available/default that ^ resulted still in a "permissions" error, but even weirder looking Code:
sed: couldn't open temporary file /etc/apache2/sites-available//sedPQrEht: Permission denied sed: couldn't open temporary file /etc/apache2/sites-available//sedep6tEr: Permission denied sed: couldn't open temporary file /etc/apache2/sites-available//sed2puLjs: Permission denied sed: couldn't open temporary file /etc/apache2/sites-available//sedH5hTQv: Permission denied okey-dokey, that's it, any help would be GREATLY appreciated, i know this is a bit of a funky request. |
| Bookmarks |
| Tags |
| apache config, apache2, convenience, dropbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|