Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yii 2 - Checking / testing installation

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
0
0
US
Trying out Yii 2 - Just installed it yesterday on a Ubuntu server.

How do I know or check if the installation was successful? Where are the binaries or scripts installed?

When running composer to install it, I changed directory to /var/ which is the default root directory of the fresh Ubuntu LAMP install.

I chose the ADVANCED instead of the BASIC and so, if I go to 10.0.0.55/advanced I do get a directory listing but I am not sure that this means all is well and complete.

The lack of 1, 2, 3, ... is frustrating ... but cannot complaint when so much is given and all is free. ;-)

Your assistance will be, as always, greatly appreciated!


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
I'd suggest taking a look ay Yii's own manual. Seems quite complete and thorough.


There a section there titled: Verifying the Installation

Also:



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
there are no index.php files anywhere in the directory tree
there are no obvious anything anywhere in the directory tree

I have searched up/down and every where trying to follow guides and they all make "assumptions" none of which make sense (at least not to me).

For example, I followed a guide to install that suggested I moved to my web home directory and then use composer to install; I did exactly that and nothing else from there can be associated to the resulting install.

I get a directory named "advanced" and within this directory

Code:
drwxr-xr-x  9 root root  4096 Oct 25 15:37 .
drwxr-xr-x  3 root root  4096 Oct 25 15:31 ..
drwxr-xr-x  9 root root  4096 Oct 25 15:31 backend
-rw-r--r--  1 root root    37 Oct 25 15:31 .bowerrc
drwxr-xr-x  6 root root  4096 Oct 25 15:31 common
-rw-r--r--  1 root root  1160 Oct 25 15:31 composer.json
-rw-r--r--  1 root root 32056 Oct 25 15:37 composer.lock
drwxr-xr-x  7 root root  4096 Oct 25 15:31 console
drwxr-xr-x  4 root root  4096 Oct 25 15:31 environments
drwxr-xr-x  9 root root  4096 Oct 25 15:31 frontend
-rw-r--r--  1 root root   394 Oct 25 15:31 .gitignore
-rw-r--r--  1 root root  6402 Oct 25 15:31 init
-rw-r--r--  1 root root   511 Oct 25 15:31 init.bat
-rw-r--r--  1 root root  1622 Oct 25 15:31 LICENSE.md
-rw-r--r--  1 root root  2820 Oct 25 15:31 README.md
-rw-r--r--  1 root root  5051 Oct 25 15:31 requirements.php
drwxr-xr-x  3 root root  4096 Oct 25 15:31 tests
drwxr-xr-x 11 root root  4096 Oct 25 15:37 vendor
-rw-r--r--  1 root root   515 Oct 25 15:31 yii.bat

The read me file can only make sense if you know what you're looking for but not to someone that has "never" worked with any framework (such as myself).

The link you point me to suggests to load index.php and there are none!



--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Well, I just ran

Code:
sudo composer create-project --prefer-dist yiisoft/yii2-app-basic basic

and index.php is there - Not the case when "advanced" was opted. I had opted for advanced since the "need" of a future project seem the better choice. Moving on and see how far I get!

Thanks,

--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top