Yii Framework Forum: Not Install Yii (Error: Directory Is Not Valid) - Yii Framework Forum

Jump to content

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

Not Install Yii (Error: Directory Is Not Valid) Rate Topic: -----

#1 User is offline   kaizer1 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 07-November 13

Posted 07 November 2013 - 04:30 PM

My problem:

C:/Yii_Framework/yii-1.1.14.f0fee9/framework/yiic webapp etc/testdrive
Error: The directory "etc/testdrive" is not valid. Please make sure the parent directory exists.
....

...

etc - is a my directory to server,
Yii_Framework - directory a set Yii

Please, help me.
P.s.
I seen, help on a similar occasion, she came up to me.
0

#2 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,688
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 07 November 2013 - 04:36 PM

I have no idea how Yii works on windows, but you can try to use full path to server dir, that is
C:/.../.../yiic webapp C:\....\etc\testdrive 

God is real unless declared as integer
0

#3 User is offline   kaizer1 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 07-November 13

Posted 07 November 2013 - 05:20 PM

View PostORey, on 07 November 2013 - 04:36 PM, said:

I have no idea how Yii works on windows, but you can try to use full path to server dir, that is
C:/.../.../yiic webapp C:\....\etc\testdrive 



Thank you ORey, but i try this method and he not work. Thank you!
Stop, i use real server, not local, my server is not to install my computer.
0

#4 User is offline   Evgeniy Poremchuk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 03-February 13
  • Location:Kyiv, Ukraine

Posted 08 November 2013 - 12:00 AM

Hi Kaizer !

1) Try to type a full path, like (in my case) >yiic.bat webapp D:\0_WEBSERVER\OpenServer\domains\yiitest\www\
2) Try to use must useful WAMP like OpenServer or XAMPP

Good Luck!
0

#5 User is offline   kaizer1 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 07-November 13

Posted 08 November 2013 - 02:25 AM

Hi Evgeniy,
i don't understand way D:\WESERVER\OpenServer\domains\.....

I use is web server to ubuntu, and set up apache, how install openserver to me ?
0

#6 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,688
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 08 November 2013 - 05:49 AM

View Postkaizer1, on 08 November 2013 - 02:25 AM, said:

Hi Evgeniy,
i don't understand way D:\WESERVER\OpenServer\domains\.....

I use is web server to ubuntu, and set up apache, how install openserver to me ?


Have you switched the server? (previously you were using "C:/Yii_Framework/yii..." so it looked like windows).
You don't need OpenServer if you're on ubuntu/apache.
God is real unless declared as integer
0

#7 User is offline   Evgeniy Poremchuk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 03-February 13
  • Location:Kyiv, Ukraine

Posted 08 November 2013 - 05:28 PM

:) I could be totally wrong but seems, you are trying to install Yii from your OS Windows machine to Ubuntu server local folder directly... If you would like install Yii in Ubuntu-server you may upload Yii to the remote folder, open terminal and type install command like: >php yiic webapp /var/home/httpdocs/myapp/ . That's all.
0

#8 User is offline   kaizer1 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 07-November 13

Posted 11 November 2013 - 02:43 AM

View PostEvgeniy Poremchuk, on 08 November 2013 - 05:28 PM, said:

:) I could be totally wrong but seems, you are trying to install Yii from your OS Windows machine to Ubuntu server local folder directly... If you would like install Yii in Ubuntu-server you may upload Yii to the remote folder, open terminal and type install command like: >php yiic webapp /var/home/httpdocs/myapp/ . That's all.


Yes, you're absolutely right, I just want to install Yii from a local folder on the computer on the Ubuntu server and in full accordance with what is written in the tutoial - that is exactly what I'm doing. If I do something wrong, could you kindly describe to me more in detail how to settle this problem. For example, how to set up access to a local folder for my server. Thank you
0

#9 User is offline   Evgeniy Poremchuk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 03-February 13
  • Location:Kyiv, Ukraine

Posted 11 November 2013 - 05:18 PM

Try to install yii in local Windows folder, and then copy files to the remote server dir.

How to do this?

1) Add path to php.exe to the Windows local variables. I don't have an English local in my Windows, but I can assume english system captions... Right click on "My computer" -> Settings -> Additionally -> Environment variable. Search a path variable and add your local path to php.exe like c:\php\php.exe;

2) Restart your operation system

3) Download and install FAR

4) Run FAR and go to the yii folder - framework

4) Type a simple command >yiic.bat webapp D:\0_WEBSERVER\OpenServer\domains\yiitest where d:\0_webserver... your own path to the local site folder

5) Copy both generated and framework files to the remote server folder. That's all.
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