Ubuntu :: Move Xampp's Root Directory From /opt/lampp/htdocs To /home/private/htdocs
Dec 2, 2010
i was trying to move xampp's root directory from /opt/lampp/htdocs to /home/private/htdocs (in order to use Ubuntu One) but when i restarted apache i got "permission denied" when i tried to load the index page.so i said to my self...hey..let's chmod
i entered this three commands in terminal:
Code:
sudo chmod -R 755 /home/private/htdocs
sudo chmod 755 /home/private
sudo chmod 755 /home
('private' is my username)
after a couple of seconds everything begun to disapper, shortcuts on my desktop, my wallpaper...all.i even tried to execute another command with sudo but i got a nice error message that said i don't have permissions to execute bla bla.now i can't even log into my user.
i'm a new Ubuntu user and starting with programming, i've already installed XAMPP for LINUX at /opt directory and the Eclipse app to code php, java etc.When I try to write or create a file inside htdocs XAMPP directory the Eclipse outputs this message to me:"Parent of resource: /opt/lampp/htdocs/site/includes/include.php is marked as read-only./ opt/ lampp/ htdocs/site/includes/include.php (Permission denied)"Whats the matter with this possible error?
I'm new at using Ubuntu, I really need to use XAMPP / LAMPP for testing my websites. The problem is that, I can't save files to the HTDOCS of my XAMPP.
I have my final project and that is. 3 laptops connected to each other using switch and each of it is running ubuntu. One of the laptops is used as a web server. I installed already the xampp but my problem is I don't know how to save file in htdocs. In addition, I have no idea how my website in webserver can be viewed by 2 other laptops. It's just an intranet no need to be viewed through internet.
I've installed Apache 2 on Ubuntu linux 10.04 as a simple LAN site for testing PHP scripts. But even though I've deleted the default index.html file in htdocs, changed the index file to index.php, put an index.php, chmoded to 775, and gave ownership of the folder to my account, it will not update any of the files. Any time I go to 127.0.1.1 or 127.0.0.1 (Both work, somehow), it has the "It works!" page instead of the page I put there. And yes, I've tried restarting apache, restarting my computer, etc. What's the problem and/or how do I fix it?
tl;dr: Apache keeps displaying the "It works" page even though I've replaced it. How do I fix it?
I am trying to extract the phpmyadim zip to the htdocs folder. Every time I extract the files to the folder, it does not extract anything. I also tried extracting the file to another folder with success, but when I tried dragging and dropping the folder to the htdocs folder I had no luck. I cant write to the folder.
Is there a guide somewhere that covers installing Trac? [URL]That one doesn't cover how to link Trac to Apache with mod_python,configuring authentication, or using htdocs to host static content (like the logo image I want to use. Does tracd support authentication and htdocs?
I've setup both a http server and svn server and have a SVN project residing in the "/srv/svn/kdrepos/THOR/" directory. I would like this project to automatically do a checkout into the /srv/www/htdocs/ on update/commit. Is this in any way possiblely? Some sites (xp-dev) for example offer an option to have a repository automatically 'added' to a webserver. Does anyone know how is done? I'd xp-dev if it wasn't for the fact that I also need full access rights on the machine
i only need localhost for testing some phpnow i get[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs
I'm hoping that this is, indeed, a "general" issue and I'm not over-thinking anything but long story short - I can't get my Apache htdocs folder to accept any files without copying via sudo through the terminal.. Also, when viewing a page over my network I'm just seeing the raw text/code for the file and not the intended output.I'm assuming that logging in as "nobody" (current owner of htdocs) would allow me to drag/drop/edit files in the htdocs folder itself but I can't for the life of me deduce what the password is for "nobody". Is there a universal default? The security issue posed by such a default does, however, make me think this is something I possibly set up during installation and forgot about?
I would like to move the /home directory to a different location, there only seem to be guides on how to move it to it's own partition.
I have a drive (/dev/sda5) mounted as /media/data
I would like to move /home to /media/data/home?
I have tried usermod but get the following error:
Code: test@TestServer:/media/data$ sudo mkdir /media/data/home test@TestServer:/media/data$ ls home lost+found test@TestServer:/media/data$ sudo usermod -dm /media/data/home usermod: user '/media/data/home' does not exist
Ubuntu 10.10 32 bit/ and /storage are on two different partitions. I want to move my home directory to the /storage partition, so I went to System -> Administration -> Users and Groups then Advanced Settings then the Advanced tab. I changed Home Directory from /home/billy to /storage/home/billy. I click on ok and I'm asked if I want to copy all the user's files over to the new location or start fresh. I click, Copy Files. It acts like it's doing something, but all it does is create the home/billy directories inside /storage, but it never copies files over and the next time I go to /home/billy it's still in the old location. What the heck is the deal?
How do you do this without breaking all the links and preferences in /home? Does the system take care of everything? Has anyone done it or is it actually system crippling?
I created a partition in my hard disk for my data (documents, multimedia, etc.).How can I:Move the /home/ directory to the new partitionMake the OS (Ubuntu Linux) treat that directory as the default /home/.
As I regularly move between Mac and PC, I thought it would be a good idea to put all my data on an external drive. As Windows 7 and OS X have similar home folder layouts, I just simply put all the folders I need for both on the root of the external drive and changed a few settings so that the Home folder for my user is on the external drive on both Windows and OS X.
Whilst Ubuntu also has a similar structure, I cannot work out how to have it so that my users home folder is on the external drive. I have done a little research and all I can find is how to have the /home directory on another partition. a) this is not what I'm trying to do, just the folder for my user and b) this would mean formatting the external drive to extX format, which just wouldn't work for me.
I am using 9.10 (or will be once the upgrade is complete)
So I messed up a little and didn't leave enough room on my disk. I want to shrink my home directory and move it to the end of the drive. Is this possible? It's ext4 but no an LVM partition though.
I would like to move a user's home directory to a different disk. Is there a "clean" way to do this? Specifically, is it safe to just copy all the .* files to the new destination and then change the home in the user config? Or are there maybe environment entries with absolute paths which will cause problems with this strategy?
I am running ubuntu 11.04 I'd like to encrypt my home folder. - how can it be done, without creating new user/starting from scratch. -I'd like to keep all the files and desktop settings - the only change should be that the folder is encrypted now.
I use dual boot with windos 7. i use xampp in win7. want to use lampp for ubuntu 10.04. i want to use one local server directoy for both . i successfuly changed htdocs location in lampp. but could not change mysql data directory location.
After upgrading to Lucid, gnome-terminal and xterm both start in the root directory (/); I'd like for them to start in my home directory instead. I had added "cd /home/myname" to the end of .bashrc, and this worked well as a temporary fix, but was never necessary in Karmic. Furthermore, modifying .bashrc in this way renders Nautilus' "Open in Terminal" menu item useless, as it still opens the home directory instead of the folder Nautilus was viewing.
I've set a side 80GB on a separate partition, I have 4GB of RAM. I know it will ask me to set /home /root and /swap. How much should I set each one to be with my partition size and RAM.
Accidently ran rm -rf while the pwd was /home/user-name
Now I'm unable to run any command whatsoever as root, ls,vi,cnf whatever, they don't work.
However the commands work as normal user.
I can guess that the files with root ownership in the home folder were deleted but I would like to revert everything back to normal and would like to know how to solve this problem.
1. yum install vsftpd 2. service vsftpd start [ok] 3. nmap from outside verifies tcp 21 is open for business 4. ftp myipaddress.com results in login failed for user root.
I want to login as root and have access to '/' as my home directory. What do I have to do to get this to work?
Or would this sacrifice security in some way? I've been using root only, and am ready to have a seperate account now. It's the dotfiles for GUI apps that I'm concerned about:
Code: -rw------- 1 root root 98 Feb 13 16:23 .Xauthority -rw------- 1 root root 6392 Feb 12 18:13 .bash_history drwx------ 5 root root 4096 Jan 13 17:47 .config drwxr-xr-x 4 root root 4096 Dec 29 21:36 .fvwm drwx------ 4 root root 4096 Nov 7 19:55 .mozilla -rw------- 1 root root 218 Jan 26 10:04 .recently-used.xbel -rw------- 1 root root 98 Feb 13 16:23 .serverauth.17096 drwxr-xr-x 2 root root 4096 Dec 25 12:42 .tuxcmd drwxr-xr-x 2 root root 4096 Feb 12 17:25 .xine
i installed xampp using a tutorial posted here, but now the issue is i dont have priviledge to that directory. currently the xampp folder is located in /opt/
and i cant seem to fig out how i can get privil to that folder. (my user is "nate" not root
I am using Ubuntu 11.04. I am also using xampp 1.7.4.It always says it needs to be run as root, however some people have mentioned that it poses a great security risk.So how do i run xampp without being root?
I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.
The easiest way to do this would seem to be to just change & export $HOME, eg
cd ~/testing; git clone ~ home export HOME=~/testing/home cd ~ screen -S testing-home # start vim, write/revise plugins, edit scripts, etc. # test revisions
However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?
How do I stop one user account from being able to read files in another user account.
Right now once i log in, I can easily navigate to /home/[username] and copy/read any file. How do I make it thus that only /home/[username]/shared is allowed to be read/copied.
I would also like to prevent listing of directories.