OpenSUSE Network :: Setup An Apache Server On Computer Which Will Allow Browsing Of Files In A Specific Directory And Subdirectories?
Jun 13, 2011
I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.
I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).
When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:
Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.100
Mon Jun 13 23:43:29 2011
Apache/2.2.17 (Linux/SUSE)
View 4 Replies
ADVERTISEMENT
May 23, 2010
I currently have a LAMP server running with multiple virtual hosts configured. I have one virtual host with a sub directory that contains pdf news letters.do not want the directory browsable and tried putting an index.php file that re-directshe user to the root directory but when I go to the [web address]/[directory name] in any browser I see the contents of the folder listed.
Currently the news letter list is drawn from a database table and displayed as links on a page in the root directory. The links point to the file name in the sub directory. How do I block users from going to that sub directory and seeinge contents of that directory listed? Would I add another <directory> statement in the vhosts.conf file? If so how would I structure that directive?
View 1 Replies
View Related
Nov 18, 2010
This question is very similar to this one except that I want to maintain the file's original subdirectories.
For example if I had
/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt
[Code]...
View 2 Replies
View Related
Jul 20, 2010
This should be a quick one. I'm trying to backup a single directory and it's subdirectories on my Lucid Server to a freenas box across my network. This is what I'm using to do that..
rsync -r -a -v -z * --delete freenas:dSIBackups It almost works perfectly except for one problem. When a file is deleted at the source, this command doesn't seem to delete it on the receiving end. I assumed that the --delete would do that but aparently not. Can anyone think of a reason that this would happen?
View 3 Replies
View Related
Aug 5, 2010
I have .jpg files in many subdirectories from where I need to copy all the images from all the sub directories and paste them to a specific directory.I have used `cp -rf *.jpg media/sik/` which only copies the .jpg files of the directory in which I was working.
View 5 Replies
View Related
May 4, 2010
I am attempting to setup the following:
1.User login/authentication via a single NIS server.
2. User home directory should also be on the Same NIS server.
3. If possible to setup a single shared home directory for all users.
OpenSuse version 11.2 There are twelve workstations from which users will login using the NIS authentication. I have succeeded in setting up NI server. However login fails as the home directory is not accessible.
View 9 Replies
View Related
Feb 12, 2011
Is it possible to give user only FTP access / browsing rights for certain directory within /srv/www/htdocs and prevent same user to browse all other directories, even user's /home directory on that server?
View 8 Replies
View Related
Jul 19, 2010
I had directory browsing enabled in Apache on a previous computer, but I can't get it working again:heres my apache2.conf
Code:
#
#Based upon the NCSA server configuration files originally by Rob McCool.
[code].....
View 6 Replies
View Related
Feb 11, 2010
I set up a Debian box with Apache and everything works fine, but when trying to access files in a subdirectory, I get a 403 error. The error log shows the following:
Code:
(13)Permission denied: /var/www/site/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
I tried adding a <Directory> entry in the conf file for the site and even tried adding (with +r for all) an .htaccess file (.htaccess is not specified in the conf file and the root directory doesn't have one either), but nothing works.
[Code]...
View 1 Replies
View Related
Dec 26, 2010
In reading the rsync man page and browsing a lot of websites, I ended up a bit confused, or maybe it was just too much eggnog. Anyway, to exclude a directory "videos" with everything in it, which is /home/user1/camera/videos and I'm rsyncing the whole user1 directory to an external drive
[code]...
View 1 Replies
View Related
Feb 11, 2010
I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf
However, I do not want the target directory to be removed. How can I remove just the files in the target, the subdirectories, and their contents?
View 4 Replies
View Related
Mar 1, 2010
I've found several posts discussing how to do this in with the terminal, but none exactly fit what I am trying to do. And since I'm still very new, I was hoping for some help.
I have a parent directory called "Music." The subdirectories all start with "artist", some go further as in "artist/album/cd1". So right now the structure varies in the following ways code...
How can I move all the files (or the file types that I choose) to the parent directory "music"?
(By the way, for any who are interested, this is so that I can use an external hd with a PS3. ("playstation 3"--for anyone who was in my predicament searching the threads)
View 7 Replies
View Related
Jun 10, 2010
I need to copy all subdirectories and files from one directory to another ever 5 minutes or so, with the old data automatically being overwritten with the new data. I'd also like this to run at startup. Is there any way this can be done? If so, what program would I need to schedule the automation and what is the command line I would need.
View 2 Replies
View Related
Mar 30, 2010
I recently started using SVN with Apache for my web development, although I find it really annoying that I have to issue two SVN commands (one local, one remote) to update my web site. I have been looking into SVN post-commit hooks to solve this problem. The only problem is that apache does not have permission to modify files in my user directory... So here is how everything is setup. I am running Slackware 13 full install. There have been no installations overriding any of the default installs.
[Code]....
View 1 Replies
View Related
Jan 16, 2011
i am trying to set up LAMP on an old pc i have installed linux, apache, mySQL and PHP following this guide Installing Apache2 With PHP5 And MySQL Support On OpenSUSE 11.3 (LAMP) | HowtoForge - Linux Howtos and Tutorials. i have installed phpMyAdmin but when i try and acess it i get this error
Error
MySQL said:
Cannot connect: invalid settings.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
[Code]...
View 1 Replies
View Related
Jul 15, 2010
Is there a good way to set up internet tracking on an openSUSE 11.3 computer? I don't want users visiting porn sites or any other nonsense, and if they do, I want to know about it. Is there a good program that the administrator can set up to report this kind of thing or at least track it? Obviously, this would need to track all websites visited regardless of the application/browser used, and would need to be completely inaccessible to users. I don't want them having the ability to turn it off or circumvent it somehow.
View 8 Replies
View Related
May 22, 2011
I would like to set-up a pretty fast a running apache. I would like to use him so to launch a pretty small web site of 10 static html pages. At this time there is no security concerns (even though I want to do it right) , because the computer has not even ethernet cable. I have some experience, 8 years ago I Was setting up virtual hosts in fedora, so this process is not a blackbox for me.
View 9 Replies
View Related
Feb 27, 2010
Doing my final year project in linux- a Mozilla Firefox extension which providing chat option for two or more peoples,who happen to be browsing the same website simultaneously. It shows you other people who visit the same websites as you are. These people have to be registered with our software. I don't know how to go about this. After a lot of googling and enquiring i have divided the project into three modules: an extension at browser side, chat implementation (probably in ajax) and a server- apache-php-mysql.
The extension keeps track of the URLs visited by the browser. It sends this information to the server. When it receives information from the server, the extension displays the number of users visiting the URL as the user. The extension informs the server whenever the user clicks the EnableChat(which will be embedded in a toolbar in the browser) button to start a chat session. After receiving the information, the extension displays the users in that site. The user clicks on a particular username for chat.
I have installed php mysql and apache. but i do not know exactly what the server must do. I know i have to write the server code in php and put it in the /var/www folder. but what should that code do? how exactly does the extension or browser communicate with the server for the exchange of above info?
View 4 Replies
View Related
Sep 22, 2010
Not sure if this was the right place to post this. Recently installed Ubuntu Netbook remix on my netbook. On Windows I used IIS and pointed my website to a directory full of video files all in .avi containers, enabled directory browsing and could watch files in the browser on my PS3.
I'm wondering how I go about doing this in Apache? Since there isn't any GUI to do it for me like in IIS :P.
View 11 Replies
View Related
Apr 21, 2010
I have a small home-office network. On that network I have two linux computers, one is a client the other a server.
On the server I have NFS Server setup and mount some NFS exports on the client computer.
On the server I have the firewall on and here it becomes a little tricky.
Since both the server and the client connect to the router the interface (eth1) is theoretically both an internal & external zone.
The router is commercial grade and therefore has a good firewall on it which is also setup. Therefore the firewall on the server is really more of a backup than a necessity. But that's fine, and by having the server's firewall on 'fail2ban' is able to work which I like to have working so I don't want to just turn off the server firewall even though I have good security from the router.
However, when I turn on the server's firewall, the client computer cannot see the NFS server when scanning for server -- done by: clicking on "Choose" next to "NFS Server Hostname" when adding an NFS share in the NFS Client in YaST. Clearly something is being blocked even though I have both "NFS Client" and "NFS Server Service" allowed in the server firewall. The Firewall config. files for these are below.
The Firewall configuration is pretty much "out of the box". That is I have the services I need opened up for the external zone, the other zones are left at their default which means the internal zone, although not used (i.e.: attached to any interface), is completely open.
The perfect solution I guess would be to setup my client computer to connect through a different NIC (perhaps eth0), make that the "Internal Zone" and therefore allow all traffic through to it while still blocking the server from the external zone. However, I cannot make that physical change to my network for now so I am looking for an in between (non-perfect) solution.
In this case I am guessing that means opening up extra NFS ports to the external zone so I have full NFS functionality. I don't mind this because like I said, the router firewall is the main line of defense anyway.
So, given all of the above could someone tell me what I would need to additionally open up in the server firewall to make the NFS server detection work on the client while the firewall was on. Or, if you have a cleverer/better solution without me changing my physical network that would be great.
Hopefully I have written this in enough detail and clearly enough so that all the parameters are clear but if not, feel free to ask me what you like and I'll try to make it clear.
Code:
## Description: Firewall Configuration for NFS kernel server.
#
# Only the variables TCP, UDP, RPC, IP and BROADCAST are allowed.
# More may be supported in the future.
code....
View 6 Replies
View Related
Sep 17, 2010
I have installed the files from Betavine - SuSE Linux Drivers and installed it by clicking the rpms and installing now the error is this- Vodafone Mobile Connect needs the following files and dirs with some specific permissions in order to work properly: /etc/ppp/chap-secrets should have 0660 mode, found 0666 /etc/ppp/peers should be readable and writtable by group root user Rob should be a member of group root
View 3 Replies
View Related
Feb 24, 2009
I'm trying to setup a Samba network share with a Fedora Directory Server backend. This will be used primarily for Windows users to authenticate before accessing the share. I am using Fedora Core 10 and have all of the latest updates installed. When I try to connect from a Windows machine, I am prompted for a username and password. I enter the username and password of the account I created in Fedora Directory Server in OU=People. The credentials are rejected. At the same time in the log file I see this:
[2009/02/24 16:50:16, 3] auth/auth_sam.c:check_sam_security(282)
check_sam_security: Couldn't find user 'Administrator' in passdb.
[2009/02/24 16:50:16, 2] auth/auth.c:check_ntlm_password(318)
check_ntlm_password: Authentication for user [Administrator] -> [Administrator] FAILED with error NT_STATUS_NO_SUCH_USER
Administrator is the user I created in Fedora Directory Server. If I perform an ldapsearch it will find the user as uid: Administrator so I know it is able to be looked up in FDS. But I'm guessing that's not the problem.
[Code]...
View 4 Replies
View Related
Oct 23, 2010
I'm needing to stand up a Lamp server for a SugarCRM migration. I've been told I need to ensure php 5.2 on the box along with ensuring several mod's are installed as well for php and apache. I was planning on using the lamp provided from xampp (apache friends) but they're current build is using PHP 5.3, any suggestions on how to get around it? If I have to build the whole thing from several packages (apache, php, mysql) then no problem, but I really like the myphpadmin page that comes with the xampp installer.
View 2 Replies
View Related
Jun 30, 2011
I have a nfs share on my 11.4 workstation at /abcd. I'd like to export everything under /abcd except for one directory /abcd/dontexport
I searched online for such an option but only came across noaccess option which doesn't seem to work.
exportfs says it is an unrecognized option if I run "exportfs -ra"
This is how my /etc/exports looks like:
Code:
/abcd*(rw,wdelay,root_squash,no_subtree_check,anonuid=12345,anongid=6789)
View 2 Replies
View Related
Apr 3, 2010
I'm trying to setup OpenVPN in order to connect back to my home network while traveling for secure browsing and such. However, before I can even start trying to set that up I tried to see if I could open port check my computer through the net. And I'm having a hard time doing that.
As far as I can tell, here are my roadblocks:
1. Is ISP (Qwest) blocking my ports?
2. Is my modem doing the proper port forwarding and firewall?
3. Is my router doing the same?
4. Is my firewall on the computer allowing the request?
To minimize sources of error, I've turned off my local and router firewall and setup my router to forward ports. I'm not to familiar with my modem, but I'm pretty sure that the firewall is turned off by default and I think I've done port-forwarding correctly. But still no success when doing an open port check. At this point I don't know how to diagnose the problem.
View 2 Replies
View Related
Feb 22, 2011
I run a dedicated opensuse 11.1 server with apache (2.2.10-2.9.1) installed. This box has been running for nearly 2 years hosting several low traffic websites. I must admit that I did not give lots of love/attention to the machine over that period. It ran rock solid. The different websites each have their own associated user account and are stored in their own /home/name/public_html/ folder. It was setup through Webmin. Each domain name is also linked to a unique IP (the box has multiple available IPs), however this is configured at my domain provider. All in all a very simple and straightforward setup that never let me down most of the past decade.
Recently the sites on the machine were no longer responding. This happens each other year or so since I write my logfiles to a separate partition. Was df -h and indeed, partition was full. Removed logfiles manually, and while I was at it I decided it was time to run an online update (yast2 / online update that is). Rebooted machine after yast telling me to do so. Sites are no longer working. Can no longer login to webmin. Only thing what works is the 'root' webpage (/srv/www/htdocs folder), which makes me rather clueless as the other sites are just not responding at all, not even a timeout or error message.While I know that deleting logfiles manually is quite stupid, I've done it fore and not really ended up in trouble.
Hence my questions: does this sound familiar to anyone and do you mind to give me a clue about where exactly I should start to look. It's been ages since I actually administrated apache, so I might overlook the obvious. Long story short: any tips are very welcome about what I should check first, what config files might have been changedith the update, etc ...
View 1 Replies
View Related
May 12, 2011
I have an opensuse 11.3 install which I want to set up as a network boot server to install Solaris 10 on a Sun Ultra 10 client. According to what I've read, this requires rarpd and tftpd which I've set up on opensuse, but also bootparamd which I can't find for 11.3. It seems it was last included with opensuse 9.2. Does anyone know if it's available, if I could use the suse 9.2 version, or any alternative?
View 3 Replies
View Related
Jul 27, 2011
I am facing two issues with CUPS - 1. I have installed cups 1.3.9 over OpenSuse11 x86. Please check below -
cups:/usr/share/cups/banners # cups-config --version
1.3.9
cups:/usr/share/cups/banners # cat /proc/version
Linux version 2.6.27.7-9-pae (geeko@buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP 2008-12-04 18:10:04 +0100
I have added few printers over there and everything is working fine. I can also able to add - delete - modify any printers from "yast2 printer" command. I can also able to browse cups web interface via http://cups:631, but when I am going to manage the printers (start - stop - delete etc), none of the buttons are working in firefox5 not even in IE also. Older version of firefox is giving error as "This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection." All other buttons are working properly.
2. LINUX - LINUX Printing - OK
LINUX - WINDOWS Printing - OK
WINDOWS - LINUX Printing - NOT OK
While giving printing from Windows machine (Printer attached on Linux), there is no problem to coonect the printers, but unable to print.
View 3 Replies
View Related
Jun 25, 2010
In short: browsing the internet with domain names does not work. The long version: I've configured my network with DHCP and ifup. Ping works on my internal net and with servers in the internet. Dig work's too! I get the right IP to the requested domain. When i try to access the internet using firefox or even wget i get an DNS error. For example wget is showing the following error: Resolving heise.de... failed: Name or service not known. wget: unable to resolve host address 'heise.de'
Again dig show me the right IP and if i add the entry to /etc/hosts it work's too! I've even tried it with manually setup of ip address, nameserver and default gateway but with the same result. Switching off the firewall has no effect on this problem, too.
View 9 Replies
View Related
Jun 7, 2010
tell me the command used to find a specific word in directories and sub-directories in linux?
View 4 Replies
View Related