Site Panel Help | User Panel Help | Panel Demo's | Search | Help |
Categories· New Customer FAQs · FAQ Home |
XML-File<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <!-- XML-Output by phpMyFAQ 1.3.8 --> <phpmyfaq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:NamespaceSchemaLocation="http://www.phpmyfaq.de/xml/faqschema.xsd"> <article id="48"> <language>en</language> <category>Scripting Languages</category> <keywords></keywords> <theme>File permissions - chmod</theme> <content xmlns="http://www.w3.org/TR/REC-html40">If you upload scripts to your hosting account you need to make sure the files are set with the correct permissions or the web server will not execute them properly. File permissions are controlled with the <b>chmod</b> command on Linux servers. The chmod command can be launched from most FTP programs, or from the FileManager in the site owner panel or from a direct command login to the server via Telnet or SSH. You can assign rights to: 1: the file owner 2: the group 3: the world Each of these three can have Read, Write and Execute permissions. In general you should never assign Write permissions to "the world". If you do so - the Apache webserver will refuse to execute the file cause it'd be a huge security hole. The three permissions are set with digits (for example 755) or letters (for example -rwxr-xr-x). The first digit is the file owners permissions. The next is the groups permissions and the last is "the worlds" permissions. Below is a listing of the most typical numeric settings (charcter settings are explained further down): <span style="color: blue;">chmod 600 <i>filename</i></span> You can read and write; the world can't. Good for files. <span style="color: blue;">chmod 700 <i>filename</i></span> You can read, write, and execute; the world can't. <span style="color: blue;">chmod 644 <i>filename</i></span> You can read and write; the world can only read. Good for html and php pages. <span style="color: blue;">chmod 755 <i>filename</i></span> You can read, write, and execute; the world can read and execute. Good for perl scripts. <b>Change file permissions with letters:</b> u = user (you) g = group a = everyone r = read w = write x = execute <span style="color: blue;">chmod u+rw <i>filename</i></span> Give yourself read and write permission <span style="color: blue;">chmod u+x <i>filename</i></span> Give yourself execute permission. <span style="color: blue;">chmod a+rw <i>filename</i></span> Give read and write permission to everyone.</content> <author>EchoEcho Support</author> <date>12.07.2009, 21:13</date> </article> </phpmyfaq> |
Copyright © EchoEchoPlus Hosting |