I installed homestead box by the documentation from here:
https://laravel.com/docs/5.2/homestead
$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v0.5.0) for provider: virtualbox
box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
box:
==> box: Successfully added box 'laravel/homestead' (v0.5.0) for 'virtualbox'!
I am having windows 7 and cygwin.
Now I try to edit the file:
~/.homestead/Homestead.yaml
ls ~/.homestead
ls: cannot access /home/Darius/.homestead: No such file or directory
So not even directory exists. Is the documentation wrong? Where is this file?
Update
I run search in my computer and it did not find such file. Why is that?
run:
homestead init
that should create the file homestead.yaml
Related
After installing Artifactory using the RPM installer, where is the Artifactory XML configuration file stored? (The one you can see through the UI at "Admin > Advanced > Config Descriptor")
Have been looking around in "/opt/jfrog/artifactory" and "/etc/opt/jfrog/artifactory" - but havent been able to locate this specific file.
Thanks in advance!
I haven't used the RPM installer, but I've used the Debian installer and the Docker image, and I'd imagine they all put it in the same place:
/var/opt/jfrog/artifactory/etc/artifactory.config.latest.xml
It should also be accessible by symbolic link from:
/opt/jfrog/artifactory/etc/artifactory.config.latest.xml
Other files in that directory in the form of artifactory.config.latest.[numbers].xml are backups or older edits of this file.
The artifactory documentation says the ARTIFACTORY_HOME directory is
{user.home}/.artifactory
Yet if you install from .deb packages, there is no home directory for the artifactory user.
Where is $ARTIFACTORY_HOME when installed from packages?
Packages
The default configs are located in: /etc/opt/jfrog/artifactory/default
Opening that file shows ARTIFACTORY_HOME is /var/opt/jfrog/artifactory
Docker
If using the official artifactory docker container:
ARTIFACTORY_HOME=/opt/jfrog/artifactory
On Mac:
it is here
ARTIFACTORY_HOME=/usr/local/opt/artifactory/libexec
I'm using Vagrant on Windows with a box created on PuPHPet (Debian 7 and PHP 5.4). I installed a new project with Symfony 2 and there is some errors to clear the cache like "Cannot rename" or "Failed to remove directory".
I used the default configuration but also tried to:
enable NSF
follow the "Setting up Permissions" part on the Symfony guide
specify www-data as user/group for /var/www
change vagrant as apache user/group
and nothing changed, still the same errors.
How can I set the right permissions on the Symfony's cache with Vagrant?
Thank you
PHPStorm (there's Community Edition) has auto upload feature, which I successfully used for Vagrant file sharing. However you need to disable Vagrant's file sharing (NFS doesn't work with Windows out of the box anyway).
This is one say sync, thus you need to clear cache from inside of box.
Settings > Deployment (path to settings page depends on IDE version) add deployment server:
Connection tab:
Type: SFTP
Host: box IP
Port: 22
Username: vagrant
Password: vagrant
If I recall correctly PuPHPet disables password login in favor of key
based access, so use appropriate method (key was publicly stored in puphpet's repo).
Mapping tab:
Local path: project root locally
Deployment path: project root in box
Settings > Deployment > Options:
Upload automatically: Always
Upload external changes: Yes
Delete target items when source does not exist: Yes
There's NFS Vagrant plugin for Windows, but I could not get it to run as of March 2015.
There's also rsync sync method from Vagrant which offers one way sync as well, but I liked PHPStorm's autoupload more.
I looked allover to a resolution to this but i'm just not finding it. I am trying to use drush on my MAMP platform (I have Leopard). Installation seems to have gone well, but i get errors when i try to use it.
My default shell is tcsh. I made a file .bash_profile and added the line "export PATH="/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5.3/bin:$PATH" to it. then I changed to the bash shell and sent command: drush en views_ui.
(I get the same error from the tcsh shell)
I am at the root of the site.
sorry if this is a repeat question. please help...
bash-3.2$ drush en views_ui
Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to [error]
run this command.
The drush command 'en views_ui' could not be executed. [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:
* bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with
a working database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for
details.
* connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See
http://drupal.org/node/1428638 for details.
Drush was attempting to connect to:
Drupal version : 7.0
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : root
Database name : d7dev
Default theme : garland
Administration theme: garland
PHP configuration : /private/etc/php.ini
Drush version : 5.8
Drush configuration:
Drupal root : /Applications/mamp/htdocs/d7dev
Site path : sites/default
Modules path : sites/all/modules
Themes path : sites/all/themes
File directory path: sites/default/files
%paths : Array
So I know this is an old one, but did you try the solution at https://drupal.org/node/1428638 (the URL provided in your error message above)?
The upshot is that you should update your database 'host' value in settings.php with this:
'host' => php_sapi_name() == 'cli' ? '127.0.0.1' : 'localhost',
Worked great for me.
I was running into the same issue on my local dev (not using XAMP or MAMP). All I did was install php5-mysql and drush en worked.
For the people like me with the same issue for XAMPP how ended up here on this article somehow. The follow line of code did te trick for me. Make sure you "cd" first to you're Drupal root.
sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql /var/mysql
I installed JDK 7 update 5 (64 bit) on my server(Server has 64 bit windows OS). Set the environment path. When i do java -version. I get the output java version 1.7_0_05 but when i try to install glass fish then i get the error that This application needs version 1.6 or higher of the Java (TM)2 Runtime Environment . I have set both the JDK bin folder and JRE bin folder on my environment path. Why i am getting this ?
Thanks
I didn't update the environment variable but i think path should be to JRE that is inside JDK like i tried this and it worked
D:\Basit>ogs-3.1.2-windows.exe -j "c:\Program Files\Java\jdk1.7.0_05\jre".
Hope this answer will help others also.
Open cmd make sure you cd to the path of you glassfish installation file :cd C:\Users\John\Downloads
locate your jre file which should be in your jdk1.7x : C:\Program Files\Java\jdk1.7.0_11\jre
In the cmd paste this : glassfish-3.1.2.2-windows.exe -j "C:\Program Files\Java\jdk1.7.0_11\jre"
make sure you have the correct version
In my case, the problem was a blank space in "Program Files" (Yes I have JAVA_HOME set) You can run installation from cmd with argumentation (do not forget quotation) -j "c:/.../java path" Example from my case:
c:\Users\Kryst\Downloads>glassfish-4.0-web-windows.exe -j "C:\Program
Files\Java\jdk1.7.0_ 79\jre"
Fixed.
Java Version > Java v1.6
Open downloaded folder and select
shift+right-click+open-command-window-here
Type exact file name of downloaded file -j and JRE path
in my case
ogs-3.1.2.2-windows.exe -j "c:\Java\jdk1.8.0_31\jre
Try setting JAVA_HOME environment variable to the JDK root folder.
or just download a bundle package such as http://netbeans.org/downloads/ and click on the Java EE or ALL catagory