Answers.Body: <p>It's likely a permissions issue with the files uploaded to your server.</p>
  <p>The required permissions depend on the relationship between the user you log in as (via SSH or FTP) and the user that Apache and PHP run under. Some permissions recommendations appear in <a href="https://craftcms.com/knowledge-base/securing-craft#check-your-permissions" rel="nofollow noreferrer">this article</a>.</p>
  <p>Note that only some files and directories need to be writable by PHP (664 for files, 774 for directories)—typically this is limited to <code>storage/</code> and any directories your project uses as the root of a local filesystem. Unless you encounter issues, the remainder of the application should use 644 for files and 755 for directories.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T12:46:03.893Z
Answers.Text: Craft says to set the permissions to 744. I was told by 1&1 to set my permissions to 604 but only on the files not the folders. My folders are currently 705.
  
  Do you know if I should change all files and folders to 744?
Answers.UserDisplayName: gwiz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-03T15:29:47.410Z
Answers.Text: Yes, set them to 744! I also had permission issues when setting up a Craft site on a 1&1 server (Germany, but I guess it's the same). Make sure to set it recursively, so that it applies to subfolders and contents. Note that it only needs this on the 3 folders that are listed.
Answers.UserDisplayName: KSP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-03T15:32:00.207Z
Answers.Text: The first number 7 basically says that the current user (that the server is running as) can perform read/write/execute on those folders, which it needs. When the first number is 6, it can only read and write, and it won't be able to execute the PHP scripts. The numbers 4 means only read access, which will then apply to any other users (the current user GROUP and public users respectively, to be exact). You can look for instance here to decipher what the numbers mean :-)  https://chmod-calculator.com/
Answers.UserDisplayName: KSP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T16:46:50.850Z
Answers.Text: You're amazing! Thank you so much. It was the permissions. Finally working now.
Answers.UserDisplayName: gwiz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T17:18:01.597Z
Answers.Text: Great, happy to be of help! If you mark the answer as correct, then others with the same problem will see that the issue is resolved!
Answers.UserDisplayName: KSP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-11-01T10:36:41.513Z
Answers.LastActivityDate: 2024-11-08T01:19:43.793Z
Answers.LastEditDate: 2024-11-08T01:19:43.793Z
Answers.UserDisplayName: KSP
Answers.Body: <p>I used to use 1and1 servers and this came up when my .htaccess wasn't set. Be sure to add the '.' to the beginning of the htaccess file name within the 'public' folder that comes with craft and you may even have to add 'RewriteBase /' to it too.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T12:47:50.960Z
Answers.Text: My htaccess has a '.' before it. I will try adding 'RewriteBase /' also.
Answers.UserDisplayName: gwiz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-05T14:37:14.047Z
Answers.Text: Hey, the 'RewriteBase /'  was really helpful in removing the index.php from the url
Answers.UserDisplayName: gwiz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-01T12:10:48.857Z
Answers.LastActivityDate: 2017-11-01T12:10:48.857Z
Answers.UserDisplayName: JonnyT
Body: <p><a href="https://i.sstatic.net/Nj4JC.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Nj4JC.png" alt="enter image description here"></a></p>
  
  <p>Does anyone know how to launch a Craft CMS site on 1&amp;1.co.uk web hosting. I've uploaded my database, changed the siteUrl and uploaded the site with FTP but it's not working. I receive an error message (see image).</p>
  
Tags: <templating><url><error><installation>
Title: Trying to launch Craft CMS site on 1&1.co.uk and told I don't have permission. Any help why?
ThreadText: # Trying to launch Craft CMS site on 1&1.co.uk and told I don't have permission. Any help why?
  
  (Asked by: username_0 on 2017-10-31)
  
  [![enter image description here](https://i.sstatic.net/Nj4JC.png)](https://i.sstatic.net/Nj4JC.png)
  
  Does anyone know how to launch a Craft CMS site on 1&1.co.uk web hosting. I've uploaded my database, changed the siteUrl and uploaded the site with FTP but it's not working. I receive an error message (see image).
  
  **Tags:** templating, url, error, installation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-11-01. Score: 1 | Accepted answer
  
  It's likely a permissions issue with the files uploaded to your server.
  
  The required permissions depend on the relationship between the user you log in as (via SSH or FTP) and the user that Apache and PHP run under. Some permissions recommendations appear in [this article](https://craftcms.com/knowledge-base/securing-craft#check-your-permissions).
  
  Note that only some files and directories need to be writable by PHP (664 for files, 774 for directories)—typically this is limited to `storage/` and any directories your project uses as the root of a local filesystem. Unless you encounter issues, the remainder of the application should use 644 for files and 755 for directories.
  
  > **Comments:**
  > **username_0**: Craft says to set the permissions to 744. I was told by 1&1 to set my permissions to 604 but only on the files not the folders. My folders are currently 705.  Do you know if I should change all files and folders to 744?  
  > **username_1**: Yes, set them to 744! I also had permission issues when setting up a Craft site on a 1&1 server (Germany, but I guess it's the same). Make sure to set it recursively, so that it applies to subfolders and contents. Note that it only needs this on the 3 folders that are listed.  
  > **username_1**: The first number 7 basically says that the current user (that the server is running as) can perform read/write/execute on those folders, which it needs. When the first number is 6, it can only read and write, and it won't be able to execute the PHP scripts. The numbers 4 means only read access, which will then apply to any other users (the current user GROUP and public users respectively, to be exact). You can look for instance here to decipher what the numbers mean :-)  https://chmod-calculator.com/  
  > **username_0**: You're amazing! Thank you so much. It was the permissions. Finally working now.  
  > **username_1**: Great, happy to be of help! If you mark the answer as correct, then others with the same problem will see that the issue is resolved!  
  
  ---
  
  ### Answer by username_2 on 2017-11-01. Score: 1
  
  I used to use 1and1 servers and this came up when my .htaccess wasn't set. Be sure to add the '.' to the beginning of the htaccess file name within the 'public' folder that comes with craft and you may even have to add 'RewriteBase /' to it too.
  
  > **Comments:**
  > **username_0**: My htaccess has a '.' before it. I will try adding 'RewriteBase /' also.  
  > **username_0**: Hey, the 'RewriteBase /'  was really helpful in removing the index.php from the url  
  
  ---
  
  