Zend Studio and PHPCloud - zend-studio

I created from scratch a cloud app located at:
http://jimszend.my.phpcloud.com/
I have zero files on my local drive, but I am trying to get them from the server using Zend Studio.
I have found this page to accomplish this but it does not work:
http://www.phpcloud.com/help/studio-remote-system
Step 1. I believe to be correct. But I have no way to know for sure.
Step 2. Open the PHP or Zend Framework project that you want to upload to your application container, or create a new project. <--- I want to create a new project on my hard drive.
So Step 2 somehow does not work, so instead I go to File -> New -> PHP Project from Zend Developer Cloud.
So I give the project a name: say ABC
The location is: C:\Users\Jim\Zend\workspaces\DefaultWorkspace
The container from a dropdown is: http://jimszend.my.phpcloud.com:10082 (Id: 4_0 )
Now I click refresh right below that and I get nothing so now I click on Add Target
and I enter a username and password. This dialog screen is the problem. I can't figure out what to enter here. meaning I have tried hundreds of different ways and I get stuck right here. I always end up clicking on Generate new key and then I click Test Connection and since there is no error, I assume this is correct.
Then I close that screen and now when I click on the drop down for Application nothing gets filled in. But sometimes this does work and I find my application which says, "jimszend zend framework" - something like this, but even if I get this far then I get some sort of Git failure when I click finish.
Does anyone know a full proof way to pull down "my files" using Zend Studio from PHP Cloud?
Thanks,
Jim

I suspect you may not have your public / private keys set or somewhere you are not supplying the correct credentials during the process. I did the following.
Follow this help document very closely. It's a really good doc from the phpcloud people.
http://www.phpcloud.com/help/putty-ssh-debug-tunnel
Using the phpcloud admin I created a new public / private key pair (Zend Studio kind, ending in .pem). Then I downloaded the .pem to a folder on my windows 7 machine.
Next download from the putty website these three applications to help you match your private / public key pair in putty and in Zend Studio. For me I wanted everything hooked up, both Putty and Zend Studio.
-PuttyGen
-Pageant
-Putty
Note putty uses a .ppk file type (not .pem), so Using PuttyGen I opened the .pem file and saved out the private key to the same location where I saved my .pem file from the php cloud. I kept the same file naming convention, to keep matters straight. So the only difference between the two files was .pem and .ppk.
Next I opened Pageant and used Pageant to open a store my .ppk file. I understand Pageant to be a key store which Putty will check, as it needs to open locked doors.
Next I followed the guidelines in the above phpcloud link, carefully, to establish a tunnel.
Once the tunnel was open, I launched Zend Studio.
From there I went to Windows->preferences and searched for SSH2. Once the SSJ2 dialog opened, under the general tab I added both my .pem and .ppk to the path. Then under the Key Management tab dialog I used "Load existing key" and loaded my .pem file. Then I clicked apply.
Then using Zend Studio I created a new "PHP Project from Remote Server". I went though the steps clicking "Manage remote servers". For the server connection I typed the follow.
JAZZFINGERS.MY.PHPCLOUD.COM
and if you are prompted for credentials, do not use the container credentials, unless they are the same as your other credentials.
From there you can also test your connection. For me this worked. Hope this helps. Oh yeah, also read this. Very important and helpful.
www.phpcloud.com/help/studio-remote-system
-Best Wishes

Related

Permission Issue for laravel APP QUEUE in windows server 2012

We have a laravel app (Version 5.5*) deployed in WIndows Server 2012 R2. But our development stack is LEMP. Same codebase works fine in development STACK but fails in WINDOWS SERVER.
Problem:
In our App, there is a REPORT DOWNLOAD queueable job which reads data from database table and generates an excel file using box/spout package(version 2.7) depending on user input date range (daily,weekly,monthly, etc) .
When running the queue:work command from cmd as administrator,
$writer->openToFile(‘path/to/file’) throws an error : failed to open stream : no such file or directory.
See this image for code snippet throwing error
Solutions I tried:
Setting right permissions(full control Read & write) for Storage folder of my project (For Users, IIS_IUSRS,IUSR)
Setting right permissions(full control Read & write) for C:windows\Temp folder (For Users, IIS_IUSRS,IUSR)
Created symlink for storage folder inside public
FYI:
OS: windows server 2012 r2
PHP: 7.2*
Laravel: 5.5.*
box/Spout package: 2.7.*
** AT LAST GOT THE SOLUTION AFTER GOING THROUGH ANSWERS OF OTHER QUESTIONS RELATED TO THIS PROBLEM **
You can follow the following procedure:
Go to IIS Manager
Select your desired project (For example: myexampledomain.com) listed under Sites
Go to Security tab and you'll see the users listed with their permissions on the folder.
Now, click Edit button to go to a new window and click Add. In the text box,type IIS AppPool\MyApplicationPoolName.In our example it should be IIS AppPool\myexampledomain.com.
Click Check Name and you'll see the test change with underline.
Click Ok. Add the appropriate permission(Modify,read,write) to the newly created user.
That's it!!!
Thanks to all for responding.

Error installing GitHub desktop "Application cannot be started, contact the application vendor."

I've recently upgraded from windows 7 to windows 10 and when installing GitHub desktop, I'm getting the following error:
"Application cannot be started, contact the application vendor."
When I click on details, there is the following error:
"Unable to install this application because an application with the same identity is already installed."
I tried several troubleshoots, such as:
running the .exe file as administrator;
deleting the 2.0 folder from Local/apps/
disabling windows defender
But none of them seems to work. I cant understand what the problem may be, since I had no trouble installing github desktop on windows 7.
EDIT This method solved my problem:
Hold Windows button + R
Type in %TEMP%
Delete the entire content of temp.
I fixed this problem by adding permissions to the UserName for the of the folder containing GitHub.exe:
Using the explorer paste "%UserProfile%\AppData\Local\Apps\2.0
In the search box write "github.exe"
In the result list right-click the file & select open file location.
Right click the folder -> Properties->Security
Click [Edit...] for "Group or user names:"
Add the account user name to the list giving it full permission.
This may not apply to your situation, but here is what fixed the problem for me:
Find this file:
C:\Users[YOUR USER NAME HERE]\AppData\Local\GitHub\TheLog.txt
In that file, search for this string:
"System.Security.SecurityException: Requested registry access is not allowed."
If you find that, look down from that line, one at a time, until you find mention of some specific application. For me it was MS Visual Studio:
"at GitHub.IO.ExternalProgramLauncher.IsVisualStudioInstalled()"
Running as an administrator, run regedit and look for keys related to the application in question. If access to reading them is denied, rectify that by right-clicking on the name of the key and choosing 'permissions'. (I decline to provide instructions on how to use the permissions interface here, but it is fairly straightforward) If you can grant yourself permission, that may fix your problem. It worked for me.
If you want to find the exact correct key, download and use a tool from MicroSoft called 'Process Monitor'. Unfortunately, even when you filter to show only registry events, you will still have at least 25,000 or so to look through, and the list is not sortable. >_< This was not exactly easy, but by scrolling up from the bottom and looking for 'ACCESS DENIED' in the unsortable 'Result' column for a while I was able to find the exact registry event where access was denied which caused GH DT to fail. In my case it was this key:
HKEY_CLASSES_ROOT\VisualStudio.DTE.14.0
I ran regedit using my admin account, and ran it 'as administrator', found the key and changed the permissions. Oddly, it only worked when I added 'Administrators' (plural). When I added 'Administrator', it still refused to allow access to the key.
Hope this is related to your problem, or someone's who reads this. :)
Simply right click on the installation file and run as admin. It will automatically adjust itself to your system settings and install without error.

Get Latest Version using command-line from VSO?

I am looking for a simple way to get the latest version of source code from Visual Studio Online through automation (usually command line).
I cannot seem to authenticate to VSO with the credentials I use to logon to the website with the TF or TEE command line. I have also searched and found a TFSGet C# code that has authentication failure.
When I use the regular TF.EXE it cannot understand my workspace. Credentials are cached in Source Control Explorer and Workspace is mapped.
When I use the TEE CLC TF.CMD it cannot authenticate using the user#domain.com and password I use to sign on to the Visual Studio Online web site.
When I use the TFSGet C# program I get TFS Authenticaton Failed.
I read something about alternate credentials, but am completely confused because to set that up I need website address and callback URL. I've never set up a website and URL for a command-line application before.
What I really want is a KISS principle SFTP or secure WGET access to the latest version of my source code!
You're right, you need to enable alternate credentials. You were looking in the wrong place to set it up, though. It looks like you were trying to use a service hook.
Just follows steps 1 and 2 in the VSO OAuth documentation: Click on your user name, go to your user profile, then click on the "Credentials" tab and click on "Enable alternate credentials".

Unable to create virtual directory

I am working on a website which authenticates with Facebook, so that the user can sign in through his/her Facebook profile. I've seen similar questions like this one, but none that covers exactly my issue.
To test this Facebook authentication locally, I figured that some hacks were needed. You see, Facebook only allows redirects to certain domains after the authentication process. For these domains, localhost is not an option.
So I decided to do some research. I ended up changing my hosts file to point the domain local.fablelane.com to 127.0.0.1. However, now it complains when I try to change the virtual directory in Visual Studio 2012.
First, I see this dialog after changing it.
I then click Yes and end up with this dialog here.
What do you suggest I try? How can I change my virtual directory? It is important that I find a way to do this either programmatically, through changing a file somewhere, or through the commandline. The reason for this is that I intend to make an automatic setup program that does this for me in the future.
You will need to uncheck Use IIS Express and also add your new name local.fablelane.com as a binding to IIS, so that when VS tries to open the site URL, the host-header matches the site.
Also, is there any reason you need a specific port, rather than the default? It should be fine with 80.
You haven't said which version of IIS you're using, but on 8, open IIS Admin, expand your machine-name, expand Sites, right-click on local.fablelane.com (or however you've named it), and select Edit bindings and add local.fablelane.com.
Try uncheck the option "Use IIS Express".
Check if your website port number in IIS has been changed.If its changed edit bindings and change port number to 80
In addition to the above, click on the override application root URL and paste the host name address which you have given in the Project Url.
It worked for me.

Cant add solution to RocketSvn Repositories

I have been trying to set up RocketSVN server on win server 2008 R2 and the plug in client for Visual studio's 2010 but have been have a lot of trouble so will list what i have had issues with and what i did to get them working and where i am up to.
First I was having trouble connecting to the server through a browser which came down to the fact that i hadn't installed the Basic and windows Authentication on the server IIS features Doh! (fresh install :)) although it still didn't work until i went through the windows updates, After these steps i could connect to the Admin portal through a browser add add repositories and users yay!
Then i moved on to the Visual Studio's plugin and was having trouble being authenticated while trying to add or open a project from svn so back to Google and found a solution here http://community.axosoft.com/forums/thread/22088.aspx but was not using windows authentication which i wanted and was now getting another issue, I found that changing the binding in the IIS to HTTPS and setting a certificate let me use windows authentication and got me to the same position but now I'm stuck again....
tried to add images but wont let me Grrrr.... Edit : I can add images now :)
every time i try to add a solution i don't get a folder to save it to and the "Create Folder" button is greyed out all i get is the
Subversion Repositories
https://<server name>:8080
so am missing the svn/testrep/(testrep being my repository) folder to select and add my solution to..
I am using the repository URL found on the admin portal..
The error i get if i try and open a solution (even though i don't have any solutions in the repository i thought i might be able to browse it?) is
"server sent unexpected return value (405 not allowed) in response to propfind"
i hope some body can help me with this as I'm losing the will to live with this one :( i thinking its still a server set up issue but cant find any more info let my no if any 1 wants to see any server logs / config's / settings.
Cheers in advance

Resources