Yii Framework Forum: [HELP] Error permission denied - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[HELP] Error permission denied Rate Topic: ***** 1 Votes

#1 User is offline   nymph 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-June 11

Posted 18 May 2012 - 02:40 PM

Hallo semuanya,

Mohon bantuannya, saya coba instal Yii di OSX menggunakan Apache XAMPP, tahapan instalasinya sebagai berikut:

Step 1
Saya extract file yii-1.1.10.r3566.zip di dalam folder Applications/XAMPP/xamppfiles/ kemudian saya rename folder tersebut menjadi yii.

Step 2
Saya coba buka Terminal kemudian saya coba memasukan perintah

cd /Applications/XAMPP/xamppfiles


Setelah itu

php yii/framework/yiic.php webapp test


muncul baris

Create a Web application under '/Applications/XAMPP/xamppfiles/test'? [yes|no]


Kemudian saya input "y" muncul

mkdir /Applications/XAMPP/xamppfiles/test
   PHP Error[2]: mkdir(): Permission denied
    in file /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleCommand.php at line 404
   #0 /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleCommand.php(404): mkdir()
   #1 /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleCommand.php(402): WebAppCommand->ensureDirectory()
   #2 /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleCommand.php(318):    WebAppCommand->ensureDirectory()
   #3 /Applications/XAMPP/xamppfiles/yii/framework/cli/commands/WebAppCommand.php(69): WebAppCommand->copyFiles()
   #4 /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleCommandRunner.php(65): WebAppCommand->run()
   #5 /Applications/XAMPP/xamppfiles/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run()
   #6 /Applications/XAMPP/xamppfiles/yii/framework/base/CApplication.php(162): CConsoleApplication->processRequest()
   #7 /Applications/XAMPP/xamppfiles/yii/framework/yiic.php(33): CConsoleApplication->run()


Hasil googling & searching di forum yii

The eas­i­est way to do this is to run the fol­low­ing com­mand in your frame­work directory:
chmod +x yiic
The x sim­ply means “eXecutable”.


solvingnya, cukup chmod +x di file yiic yang terletak di ./yii/framework/yiic


Mungkin disini ada yang pernah instal yii di OSX juga, boleh dishare cara instalasinya?
0

#2 User is offline   J.J 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 126
  • Joined: 01-April 11

Posted 23 May 2012 - 09:37 AM

Bisa juga chmod 777 gan kl mau aman, dijamin pasti bisa... :rolleyes:
0

#3 User is offline   elixer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 11-July 12
  • Location:Jakarta

Posted 12 July 2012 - 05:32 PM

defaultnya di OSX, semua file under folder application 755 gan. makedir harus 777.

Kalo mau via finder, click kanan di folder xampp/xamppfiles > getInfo > open lock di kanan bawah > ganti jadi read&write > klik setting (gambar gear) > klik apply to enclosed items

btw, kenapa gak di htdocsnya xampp ya foldernya?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users