mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Making a better installation
This commit is contained in:
parent
7a4fe934ba
commit
272e459629
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ function checkVideosDir(){
|
||||||
$dir = "../videos";
|
$dir = "../videos";
|
||||||
if (file_exists($dir)) {
|
if (file_exists($dir)) {
|
||||||
if(is_writable($dir)){
|
if(is_writable($dir)){
|
||||||
|
return true;
|
||||||
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -245,11 +247,11 @@ function check_memory_limit() {
|
||||||
<span class="glyphicon glyphicon-unchecked"></span>
|
<span class="glyphicon glyphicon-unchecked"></span>
|
||||||
<strong>Your videos directory must be writable</strong>
|
<strong>Your videos directory must be writable</strong>
|
||||||
<details>
|
<details>
|
||||||
If the video directory does not exists create it!
|
|
||||||
<?php
|
<?php
|
||||||
$dir = getPathToApplication()."videos";
|
$dir = getPathToApplication()."videos";
|
||||||
if(!file_exists($dir)){
|
if(!file_exists($dir)){
|
||||||
?>
|
?>
|
||||||
|
The video directory does not exists, YouPHPTube had no permition to create it, you must create it manualy!
|
||||||
<br>
|
<br>
|
||||||
<pre><code>sudo mkdir <?php echo $dir; ?></code></pre>
|
<pre><code>sudo mkdir <?php echo $dir; ?></code></pre>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue