System cannot find the path specified yiic command - windows

Hi i have been trying last night about this error. The error comes when i am standing in a directory and i want to access a file yiic but error comes
The System cannot find the path specified
My system:
Windows 8.1 64 bit
wamp server 3.0.06 64bit
PHP version 5.6.25(used by wamp server)
Yii 1.1.19
My file strucure:
C-->wamp64-->www->yii-->framework
Problem:
I am standing in framework folder. When i type this command to create a new yii project
C:\wamp64\www\yii\framework> yiic webapp C:\wamp64\www\testapp
I get this error
The System cannot find the path specified
Things I have tried so far:
Ran cmd as administrator but same result
unlocked the yii zipped file, I have read that on some site that windows sometimes blocks .bat files in zipped file but same result

Have you tried the following?
C:\wamp64\www\yii\framework> php yiic.php webapp C:\wamp64\www\testapp
You can find more details in an official docs:
Note: When running yiic on Mac OS, Linux or Unix, you may need to
change the permission of the yiic file so that it is executable.
Alternatively, you may run the tool as follows,
% cd WebRoot %
php YiiRoot/framework/yiic.php webapp testdrive
http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app

I just downloaded yii and there is no framework folder and I can't execute yiic

Related

Angular Console: Can't create library

I'm trying to create a new library using v 8.1.0 of the Angular Console on Windows. The error I get is "ENOENT: no such file or directory, mkdir "c:\path\to\my\workspace\libs\new_library_name"
"c:\path\to\my\workspace\libs" exists already
new_library_name folder should be created by Angular Console
The command run by the console is ng generate #nrwl/angular:library new_library_name.
I've tried different names/paths, running as administrator, running inside VSCode and in the standalone console. No luck with anything. This used to work.
Also, if I create the folder c:\path\to\my\workspace\libs\new_library_name and then run the console again, I get an error ENOENT: no such file or directory c:\path\to\my\workspace\libs\new_library_name\ReadMe.md. Of course the ReadMe doesn't exist - it needs to be created by the console.
What am I doing wrong or where to look?
Problem solved. I had turned on Controlled Folder Access in Windows 10 and mistakenly included my project folder as a controlled folder, which prevented applications (Angular Console, Yarn, etc) from writing to the folder. Removed it from Controlled Access and all is working again.

Getting Oracle 12 C Installation Error File Not Found

I have downloaded two zip files of Oracle 12 C.
I have extracted and trying installing it on Windows 10 64 Bit.
winx64_12102_database_1of2
winx64_12102_database_2of2
Setup is available in folder one running the same from there.
Every time I am getting below error
The solution to this Error is simply when you are unzipping the folders unzip at one common folder as i have done
You will find components folders as shown below
D:\softwares\12coracle\winx64_12102_database_1of2\database\Components
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components
Please try to read the log details as shown in screenshot above,its showing the path where installation log are being created. The location was C:\Program Files\Oracle\Inventory\logs \installActions2016-01-26_01-50-16AM.
After going through the logs i found that,In my case it was not able to find the files at below path during the installation
D:\softwares\12coracle\winx64_12102_database_1of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
Because there was other unzipped part as shown below and it was unable to get the files at abovepath Hence i copied all the file from below path to the above path location
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
I ran the whole installation again and folks it completed in overall 55 mins the overall installation with the plugable and container database configuration itself.
Follow the below steps:
Abort the current installer.
Navigate to second folder /database/stage/Components/ and copy all the files.
Paste all the files in first folder location /database/stage/Components/
Finally , run the setup.exe as administrator

How do I upload files to localhost in XAMPP?

I'm trying to test a WordPress installation in XAMPP for OS X (running version 0.7.3 because I prefer the included version of phpMyAdmin). When I try to upload media files, it returns an error about not having a temporary folder. Same with any upload form I test in other applications.
Is there anything I can do to get it to allow uploads to function normally, as if it were a remote machine?
You'll simply need to create a /tmp and /wwwtmp in your sites root directory.
Check the permissions set for these directories

appcfg.py is not running with cmd prompt (Windows 7)

I am having strange problem. I used to run appcfg.py to update my app to appengine but now its not working anymore. When I run this command
C:\Program Files <x86>\Google\google_appengine>appcfg.py update E:\path\myApp\
Its not giving me anything, no error no feedback. Its just back to this line
C:\Program Files <x86>\Google\google_appengine>
Any idea about this issue!
P.S. I'm using Python 2.7. My code is updating through google app launcher but I need to run it from cmd prompt as I will be downloading/uploading appengine stuff which launcher doesn't allow me to do!
Thanks
I still had a little trouble with the instructions. Here's the steps I used to create a batch file to use the Google App Engine download_app with Windows 7.
In my example,
I'll use drive, C:
Default python path will be, C:\Python27\python.exe
GAE path (include "), "C:\Program Files (x86)\Google\google_appengine\appcfg.py"
App ID {your_app_id} will be just your app-id name
{your_app_version} is the "Version:" number in your GAE app.yaml file
I'll create a folder on my Windows 7 desktop and call it GAE_App
The desktop folder path will be C:\Users\{username}\Desktop\GAE_App
{your email} will be the Gmail account connected to your GAE
Right-click on the desktop and select New->Text Document. Open the newly created text document and add the following line of code modified for your setup to the blank text document,
C:\Python27\python.exe "C:\Program Files (x86)\Google\google_appengine\appcfg.py" download_app -A {your_app_id} -V {your_app_version} --email={your email} C:\Users\{username}\Desktop\GAE_App
Save the text document and change the file name to GAE_Download.bat
It's important that the extension now says ".bat" instead of ".txt"
Once finished, click on the batch to execute it. You'll be asked for a password and then the files should download into the GAE_App folder on your desktop. Now, whenever you need to download your files, just click on the batch file.
Not sure why Google didn't simply include this feature with their GAE for Windows software.
I faced the same issue. Here is a simple solution.
Just do this following Steps:
Go to program file where google app engine is installed. Generally It is named as Google.
click on appcfg.py and select open with.. Select "Choose Default Programs".
Select Python from programs and select "Always Use the selected program to open this kind of file" .
Now run the command you should get the results on command line.
For reference click here
Fixed by accessing python lib like that
C:\Python27>python appcfg.py update E:\path\myApp\
Here's a solution that worked for me:
"google_appengine/appcfg.py" update "C:\PATH TO APP
The appcfg.bat that should be used is located **C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\appengine-java-sdk\bin** and not the empty appcfg.bat that for some unknown reason also was here C:\Program Files\Google\Cloud SDK\
Good practice is to add this path to the system variable PATH
This worked for me
Basis
<PATH_TO_PYTHON>python <PATH_TO_APPCFG.PY>appcfg.py -A <PROJECT_INSTANCE_NAME> update app.yaml
Example
X:\Software\Python2.7\python Q:\SOFTWARE\GoogleAppEngineSDK\appcfg.py -A great-1337 update app.yaml

XAMPPLITE / Web Application - auto install

Would like to hear comments from you if its possible to accomplish this with a single mouse click on a bat/exe file -> if its possible to accomplish the following two steps into one:
1: Install xampplite
2: Paste a web application into the htdocs folder. The web application has a file install.php. The install.php file will install the database and prepare the web application for further use.
Thanx,
Why should that not be possible? But installing xmapp on a computer with the generall installer asks you where you want to have the files.
An other idea could be by using the zip file. AFAIK you can unzip files from cmd (by invoking the zip function) to a destination you set, copy the webapplication to the htdocs folder, starting up apache and call an URL to your installer script.

Resources