Ubuntu :: Lamp Cannot Find Files
Feb 15, 2011i have isntalled lamp following these isntructions : [URL]
however i cannot access my web content when i have put it in the WWW folder.
i have isntalled lamp following these isntructions : [URL]
however i cannot access my web content when i have put it in the WWW folder.
Just installed lamp, I can access phpmyadmin mysql is set up and everything. When I try to view a directory [URL] I get an access denied error.
EDIT: I changed the permissions of the "folder" folder itself, I can access everything in that directory now but not any other folders in it. Do I really need to go through every folder every time and change the permissions?
After install LAMP, apache2 can't access php files; I can see the info from the phpinfo(); but when I create a php file in /var/www and try to access the file (via web browser), the page is blank. If I change the extension to html I can acces without problems. I checked everythig but I can't understand why any web browser access a blank page. Nothing appears when I'm cheking the error.log file (apache2)
View 12 Replies View RelatedI am slowly learning Linux by bringing up a server. Using tasksel, I installed the LAMP-server, which went fine. Now, however, I have mucked about with various config files and made the setup unusable. I'd like to do uninstall all of the LAMP packages and do a clean (and more thoughtful) install. Here's the problem: tasksel returns an "aptitude failed (100)" error. I have search various forums and all of the help related to this error (which I can't actually find *explained* anywhere) is related to installing packages. I tried them anyway, without success. man pages and the stack of manuals I have don't seem to be of much help either.
- describe what the error message means?
- a way to remove the packages or the config files by hand?
I am sure this is merely a permissions issue, but unfortunately trying everything I can think of as well as google-ing has not provided me with a solution. Just for reference, my desktop and server are both running Ubuntu 10.04, with their respective Desktop and Server distributions.
I can remotely connect with SSH to my server, but I can't edit files (or at least the files I am trying to edit) remotely. I can connect remotely and edit them with VIM, but I would like to be able to use SciTE to modify the files. I am specifically trying to edit files under the /var/www directory, as well as the /etc/apache2/apache2.conf file.
Working on an important project and feel hung up on. Anyway, I have Listen 80 and Listen 8100. For some reason my isp or something is blocking 80 even with port forwarding and an attempt at putting my server in dmz, though I'm not sure if my router can handle it. Anyway, from within the network I can use my routers IP and see port 80 forwards to my box, though from outside the network port 80 is a no go(finds no route to host). So I set up listening on 8100, and sure enough I can access it from outside the network, but it doesn't seem to have the same root as port 80 for some reason, because when I go to the page it says the requested url / (just a slash here like theres no rest of the address) cannot be found. At the bottom it says debian server port 8100 so I know its getting to my computer.
View 1 Replies View RelatedI am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
View 2 Replies View RelatedThe find command does not seem to find all files in my directory hierarchy. My home directory is automounted from a server. The command to illustrate this is:find | sed -e 's/^.///' | sed -e 's//.*//' | sort -uThe result misses several directories. Likewise, a find of a particular file, like:find . -iname *sample* -printwhere sample_file.txt resides in one of the directories that is missing in the first find command, finds nothing
View 4 Replies View RelatedI know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
View 1 Replies View RelatedI know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find
View 4 Replies View RelatedI found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.
Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'
The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.
shell scripting in Fedora14I want a script"Find in curent folder for files, and it copy first file he find with name gived by user, if name already exist then echo error message and finish"command usage " bash scriptname copyASname"
smthing like Code: #!/bin/bash
for files in /home/user/*
do
[code]....
Is there any way to find the core files with out using the FIND command?
View 1 Replies View RelatedI've got a collection of MP3 files, but sometimes I stumble across a double file in Rhythmbox. At first, I thought they were the real files, but after trying to fix the tags (artist names were incorrect or missing) in tag editor, I didn't see any change in the files in Rhythmbox.
This made me search for the album in which the files were (in Rhythmbox). I found out that these incorrectly named files were doubles, but they didn't show in the actual folder.
So, I deduced, They had to be fakes. I threw the doubles in the trash bin, and there it was. They were hidden files (with a dot in front).
How can I find all these hidden files, so I can remove them?
I am trying to find out how to search for folders that do not contain certain files. My music collection of 20+GB a is organised into folders (Artist-Album). I would now like to ensure that every album folder contains the respective cover art image as a cover.jpg file. Quite a few do already, but many don't. So I would like to find all folders (not files) that fulfill the following criteria:is a subfolder of /home/user/Music;
Does not contain further subfolders (i.e. don't want to find artist folders);
Does not contain a file named cover.jpg.
My husband partictioned our hard drive Ubuntu/Windows. I use Itunes and Lime Wire a lot. When I am using Ubuntu I cant find the files we used on windows. Can anyone tell me how to access these music and pic files so I can view them and listen to them while on Ubuntu?
View 4 Replies View RelatedI need to find and rename all .JPG files to .jpg in a folder with subfolders. How would I go about this?
View 1 Replies View RelatedI switched from 9.10 to 10.10. In 9.10 there was a folder where the temporary flv ..... video files were downloaded, so I could capture them before being deleted. Now with 10.10, which is the folder? /tmp isn't, I'm watching videos but no flashxxxxx files there.
View 6 Replies View RelatedI want to use the shell to find .zip files in my music directory and all sub directories and then delete only these files. The following will find the files I want to delete
Code:find /home/me/Music/ -name *.zip -lsWhat is the next step to delete *only* these files.Would it be a good idea to move them to another directory before doing the final rm - how would I do this
I'm trying to find a way to backup my files to cdr/dvdr. I'd like to put a blank disk in when I finish using the machine, have it backup anything new, up to the size of the media and stop. I can put in new media the next day and I'd like it to continue from where it left off. It would be best if the backups are readable by any machine and I could extract specific files if a problem should arise. Any suggestions? Tar won't let me specify a final archive size and wants to do all the volumes in the backup at the same time.
View 9 Replies View RelatedI just switched my old computer from Windows ME to the lastest Ubuntu. It's working fine, except...
I can't find any of my files.
In the Installation, it said it was deleting everything from my old OS, and Partitioning my Hardrive... Are they all gone?
how could i find a hidden folder so that i can update a file.
View 3 Replies View RelatedI am trying to use "find" but I can't quite get all of the switches right for it to work. I have a folder that contains many folders. Let's call that original folder "MyFiles". The subfolders contain java files (and those subfolders possibly contain subfolders that contain java files). Here is what I want to have happen:
0. Create a file to print to, call it "output.ps"
1. Find all of the Java files in the MyFiles tree.
2. For each java file that is found, append it to output.ps along with it's absolute path name.
So far I have:
find . -iname *.java
and this finds all of the java files for me. But then I can't get the files to print to a file using exec.
The "find by typing" feature in Unity, as far as it concerns files and folders, is rather limited. Is there a way to specifically add a directory to the places where this feature is looking? (where is it looking anyway? most of my documents don't show up, even in my "home" directory...
View 2 Replies View Relatedhow do I find the folder with my program files in it
View 5 Replies View RelatedI've just started running Ubuntu from a USB stick as the OS on my pc has failed. I can now turn it on and use the computer, but I can't access all the files that are on the computer already, and I need them! They are still there, all 70+GB of them, but I can't see them or move them to an external hard drive. How can I get them?
View 7 Replies View RelatedI want find a bunch of log files and delete ones that are older than say 5 days. Ideally I would then like to add this my crontab to run once a day.
The log files are in /var/log and are owned by root. They have a standard naming convention which is [date]RootCronRsync-backupHOME.log An example file is 20100621RootCronRsync-backupHOME.log Trying to put together a bash script to do this I think I need something like
Code: find /var/log/ -name *RootCronRsync-backupHOME.log -mtime +5 -exec rm {} ; However if I try this without the -exec rm (ie to see if I can find the right files first) I get the following error find: paths must precede expression: 20090405RootCronRsync-backupHOME.log Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
I'm having issues trying to find a good viewer for my pdf files. The only one I've found that works very well is the Acrobat Reader port for Linux. Even this isn't as good as its equivalent in Windows. I tried xpdf and some others, but found a lot of functionality lacking, such as the basic ability to get the hand tool for scrolling the page.
View 9 Replies View RelatedI'm having problems with my creative zen & linux. The problem is, I can't find the music files I have transfered to the mp3-player. But when I connect the mp3 to my laptop the files is there! When I'll try to find the music files in the mp3-player (disconnected from the laptop), I can't find them.
View 1 Replies View Related