Ubuntu Servers :: Importance Of Htacces File?
Jul 5, 2010let me know that why htaccess file is created?nd what is important of it in dynamic website development.
View 5 Replieslet me know that why htaccess file is created?nd what is important of it in dynamic website development.
View 5 RepliesI've used Apache for awhile, but my linux isn't all that great.I'm running the lastest Apache 2.x on Debian, I have mod_rewrite and while I was going some basic testing on port 80 the rewrites in my .htaccess worked fine. Then I setup Apache to force all :80 to :433 and now the .htaccess are not being read.I've been messing with the AllowOverrides with no change. I've also confirmed that AccessFileName is set to .htaccess. These are my hosts now:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
[code]...
What is the importance of 'module-volume-restore' in Pulseaudio configuration file(/etc/pulse/default.pa)? The Login sound on my Lucid desktop is very loud.Upon searching,i found that above(module) can be the cause of the problem.
View 3 Replies View RelatedI understand that md5sum had some faults where it would get the same checksum on 2 different files.What exactly are the benefits of sha256sum compared to sha1sum?
View 1 Replies View RelatedDuring a request of a VPS, the provider asks me for a hostname and for the VPS I have requested which will run on a Debian. I entered 'dryaf' as hostname. What I want to do with this VPS is to point a website to its IP. I learn that I can create a vhost and configure VPS to redirect each domain name to its folder using vhost but I didn't learn any importance for hostname I don't think it should be mandatory localhost or has the form domain1.com so during request I just tipped dryaf for the hostname of the VPS. Should the hostname follows a special rule for giving it a name or no?
View 6 Replies View Relatedquite some time back, when I was learning about MySQL injections it has sorta been drilled into me to use mysql_real_escape_string when dealing with input from users.[URL]..I'm running a standard LAMP installation, with no alterations to the defaults.
On the site in question, I do have this all set up, however, as part of a tutorial series on FULLTEXT, I've included the output of both "un-escaped" and "escaped" input, to show the importance.
[Code]...
I'm planning to add 1tb sata disk to my lovely file-server under ubuntu 10.10,what i want is use this disk as additional storage for network user,indows and ubuntu?I mean when my ubuntu server down (worse case) I can easily take out the disk from ubuntu machine and plug in on windows machine
View 2 Replies View RelatedI am using python as a cgi for a simple game that i'm planning to run on a website. It requires the user to enter his name and age. This is saved in a file newly created in his/her name. However, I'm getting this error The above is a description of an error in a Python program, formatted
63 for a Web browser because the 'cgitb' module was enabled. In case you
64 are not reading this in a Web browser, here is the original traceback:
65
66 Traceback (most recent call last):
67 File "/var/www/webprog.cgi", line 51, in <module>
68 main()
69 File "/var/www/webprog.cgi", line 44, in main
[Code]...
I have my server set up with AjaXplorer but there is a bug in the flash uploader that doesn't let you upload anything to the server.The only way I can update any files or add new ones is to physically plug in an external hard drive or USB drive and transfer them.I have openssh access and that's all set up, but can I transfer files somehow from my laptop to my server using like a cp command?
View 9 Replies View Relatedon certain folders on a samba-server I would like to allow everyone everything.(Note: This refers to the filesystem-permissions. External security is cared for by samba. No problem here)That means: every local user and every remote user should be able to fully create, delete and modify every file in certain folders and all subfolder of these folders. This should include file contents and timestamps and permissions. And it should include modifying files owned by someone else, again meaning create/delete/modify/timestamp etc.
View 9 Replies View RelatedI have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected by a 9 pins serial cable. I need to copy some files from the Linux box to the DOS box.
I tried UUCP but it's too difficult and i didn't found a working client for DOS.
I've got a Ubuntu 10.04 Server edition installed as a VMWare ESXi VM. It's been working great for about 6 months. This morning, after not making any changes, I started seeing some errors. First problem was that my website (managed by apache2) was offline. SSH/ftp didn't work either. So I go through the console through vSphere. Tried a quick ifconfig, and I got this:
Code:
bash: /sbin/ifconfig: No such file or directory
mmk. Tried ls /sbin/ifconfig, got this:
Code:
bash: /bin/ls: No such file or directory
[Code].....
Commands known to work: dir, vi, dmesg, rmdir, mkdir, ifup (but it then returns ifconfig not found), shutdown, reboot, fsck (but I chose no to prevent damage) Commands known NOT to work: ifconfig, ps, ls
I recently set up a server in my house using Apache 2 running off Ubuntu 10.10 Netbook edition (no, the computer is a desktop). I tried running the website on a few computers in house and all the images and scripts seem to load fine but it is unable to read from the data.xml file through javascript. This leaves all of the web pages empty because all of the content is parsed from the xml file through javascript. I tried debugging with google chrome and after running this code to load the xml file:
if (window.XMLHttpRequest) {
// For IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
[Code].....
the xmlhttp.responseXML is null and the script crashes. Could this be a permission issue? I tried setting the data.xml file to read-write permission for any user but that didn't work.
i've installed glassfish v3 on my ubuntu system. This will let us deploy java and groovy servlets to the glassfish environment on the server.From an iMac OS 10.5, i would like to programatically copy servlets from the mac to the ubuntu system. Can only think of using ftp client as i can drive the ftp client from bash scripts and java code.
View 1 Replies View RelatedI've restarted Apache after making changes to the php.ini file (/etc/php5/apache2) and no changes are reflected in phpinfo() which indicates that I am editing the correct file. I'm quite familiar with the process as I've done it many times before with no issues.
View 9 Replies View RelatedI have an Ubuntu 9.10 server and I recently noticed that when it starts up I see the following displayed
* Starting init crypto disks..
* Could not access PID file for nmbd
I don't know where the message "Could not access PID file for nmbd" it doesn't appear to be coming from samba because samba is starting later in the startup. I've had no issues with samba and I can restart samba with no issues. Is this something to be concerned about? I noticed it started after I upgraded my samba server.
I have 8.04.3 server-32bit. It is on an HP 2.3ghz Pent 4 with 512 mb of RAM.I had previously installed Ubuntu and Kubuntu in a dual boot with XP (actually had a triple boot with XP, Ubuntu, and a BETA Windows 7) for a while, Grub got messed up so I ended up wiping it and just put my XP back on it. I have been intimidated by the command line and when thinking server, I tried the 30 day deal with windows Home server, its OK but it's $100.00 for the permenant version.
Anyway, I manned up to the challenge, installed Ubuntu server, set up as SSH and Samba. I administer from PuTTy and WEBMIN, I tried TightVNC but the GUI seemed very useless, so on a reinstall I went headless.The problem is I have alot of MP3 files I want to transfer back to the server that I had previously transfer to and back again from the Windows server, it was sceamin' fast compared to this. I have found threads talking about using NTFS, I have the EX3, or whatever the Ubuntu format is. Could that cause slow transfers, from NTSF through Samba to Ubuntu?
I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.
View 1 Replies View RelatedI successfully shared a subdirectory of my home directory, using GNOME under Ubuntu 8.04 LTS Desktop. What drives me crazy is that I can't find this directory listed in /etc/samba/smb.conf, in a "path" line. Please tell me where is this directory specified, since smb.conf seems to be the only samba config file.
View 5 Replies View Relateda lot of log file store in location /var/log/ but how to understand what the meaning in side the log file recorded down? how to find out the problem from the log file?
View 2 Replies View RelatedI tried to setup a dyndns, and ever since I tried to get that setup, I can't access my webmin, or access /etc/hosts/resolv.conf. But I can still access my samba shares I had created before this happened.
View 5 Replies View RelatedI finished deploying work for my web server with Ubuntu 10 lts, everything testing is pass, only the php file issue, I put a testing php file in the /var/www/testing.phpbut I open a firefox, and then I saw a blank page, I am sure that Apache read the file, but why return a blank page in browser,
View 9 Replies View RelatedIs it possible to have a text file somewhere that contains a list of all users that are allowed access to a given folder? This would be fantastic for file servers on a network.
View 1 Replies View RelatedBeing fairly new to navigating around Linux in a server environment, I simply want to copy a file from the server to a file in my home directory on my laptop. I connected successfully using vpnc and then used ssh to connect to the server. Now, all I want to do is copy a file that I see on the server's home directory to my home directory on my laptop.However, I don't want to use these commands unless I am comfortable with them because the file that I am copying is a big file and I don't want to lose it.
View 3 Replies View RelatedI'm having a some pretty weird problems with some mounted file share in Ubuntu Server 10.04 LTS. Currently we are mounting several file share stored on a SLES Files Server onto our Ubuntu Web Servers using the CIFs protocol. Occasionally ( no rhyme or reason ) we will find that when you do a directory listing on the mounted share, while you are on the Ubuntu Server, there are no files being listed. Yet if you browse the SLES File Server or any other of the identical Ubuntu Servers (with the same mounts), the files are there ready to go.
Before using SLES for our file server we tried windows, and experience many of the problem you that you see on the forums of CIFs errors on the console screen. I'm beginning to wonder if 1. we can resolve the CIFs problems in Ubuntu 10, or do we need to down grad to Ubuntu 9 or 3.) change to something other than CIFs.
I need to printout auth.log each line by log event, I think it should be running using the following command:
~# tail -f /var/log/auth.log | lpr
but it's not, why?
the lpr package already is installed in myserver, there is no problem to print directly.
~# cat /var/log/auth.log | lpr
I am having this problem, that says in the boot up ~Could not access PID file for nmbd~/ I have been told to delete splash file. But i don`t know how to do so.
View 3 Replies View RelatedI installed apache and when i go to my 127.0.1.1 ip i see the welcome page. I found the directory where the html is located (var/www/index.html but i cannot edit the file. what is going on here? why cant i edit the HTML file?
View 1 Replies View RelatedI recently installed Server 10.10 64-bit. After installation, I set up my config file (/etc/samba/smb.conf), and tried to restart Samba:
Code:
/etc/init.d/samba restart
There was nothing to restart though - the file /etc/init.d/samba wasn't there!
Purged the package and re-installed. Tried reformatting and adding Samba as a pre-installed package. Trying to find the server guide for 10.10, but no dice. Did something change for Samba in 10.10?
I have set up a Ubuntu server to handle Dan's Guardian for protection of the children. I need next to set up a centralized file server and some kind of authentication method.
We are dual booting the computers just now since we need to use "Rosetta Stone" language software and they will not release a certain plugin for Linux according to our assigned help person. We also use pure Windows XP in some classrooms for now, and will do so until the school's children gets used to Ubuntu.
So, what is the best authentication method for a mixed environment? Where might I find a Ubuntu "howto" on the method?
What is the best way to set up a file server? Howto? Can the box running Dan's Guardian also be the authentication box and file server? (it is our newest box, only 2 years old and has a large hard drive)