Guest User

Untitled

a guest
Apr 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. // Who said that rewriting an installer is of no use? :B
  2. // Before
  3. <h2>Step 3: Set permissions</h2>
  4. <p>Before PyroCMS can be installed you need to make sure that certain files and folders are writeable, these files and folders are listed below. Make sure any subfolders have the correct permissions too !</p>
  5. <h3>Folder Permissions</h3>
  6. <p>The CHMOD values of the following folders must be changed to 777 (in some cases 775 works too).</p>
  7. <ul class="perm_list" id="perm_folders">
  8. <li>codeigniter/cache <?php echo $perm_status['codeigniter/cache'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  9. <li>codeigniter/logs <?php echo $perm_status['codeigniter/logs'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  10. <li>application/cache <?php echo $perm_status['application/cache'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  11. <li>application/uploads <?php echo $perm_status['application/uploads'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  12. <li>application/uploads/assets <?php echo $perm_status['application/uploads/assets'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  13. <li>application/uploads/assets/cache <?php echo $perm_status['application/uploads/assets/cache'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  14. <li>application/assets/img/galleries <?php echo $perm_status['application/assets/img/galleries'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  15. <li>application/assets/img/products <?php echo $perm_status['application/assets/img/products'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  16. <li>application/assets/img/staff <?php echo $perm_status['application/assets/img/staff'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  17. <li>application/assets/img/suppliers <?php echo $perm_status['application/assets/img/suppliers'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  18. </ul>
  19. <h3>File Permissions</h3>
  20. <p>The CHMOD values of the following files must be changed to 777 (in some cases 775 works too). It's very important to change the file permissions of the database file <em>before</em> installing PyroCMS.</p>
  21. <ul class="perm_list" id="perm_files">
  22. <li>application/config/config.php <?php echo $perm_status['application/config/config.php'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  23. <li>application/config/database.php <?php echo $perm_status['application/config/database.php'] ? '- <span class="green">Writable</span>' : '- <span class="red">Not writable</span>'; ?></li>
  24. </ul>
  25.  
  26. <?php if($step_passed): ?>
  27. <p id="next_step"><a href="<?php echo site_url('installer/step_4'); ?>" title="Proceed to the next step">Step 4</a></p>
  28. <?php else: ?>
  29. <p id="next_step"><a href="<?php echo site_url('installer/step_3'); ?>">Try again</a></p>
  30. <?php endif; ?>
  31. <br class="clear" />
  32.  
  33.  
  34. // After
  35. <h2>Permissions</h2>
  36. <p>Before PyroCMS can be installed you need to make sure that certain files and folders are readable/writeable by the system. In most cases a CHMOD value of 775 should be enough however, in some cases you might need to give the files and folders a CHMOD value of 777.</p>
  37. <h3>Directory Permissions</h3>
  38. <ul class="perm_list" id="dir_list">
  39. <?php foreach($folders as $key => $value): ?>
  40. <li><?php echo $key . ' - '; if($value == TRUE){echo '<span class="green">Writable</span>';}else{echo '<span class="red">Unwritable</span>';}?></li>
  41. <?php endforeach; ?>
  42. </ul>
  43. <h3>File Permissions</h3>
  44. <ul class="perm_list" id="file_list">
  45. <?php foreach($files as $key => $value): ?>
  46. <li><?php echo $key . ' - '; if($value == TRUE){echo '<span class="green">Writable</span>';}else{echo '<span class="red">Unwritable</span>';}?></li>
  47. <?php endforeach; ?>
  48. </ul>
Add Comment
Please, Sign In to add comment