I have an website running on server.
I want to use graph extension to show some reports.
How do install extension on server?
Locally I can use cmd for that, do I need to download project install extension and upload it again?
You have to enable SSH access on your server.
DigitalOcean SSH tutorial - here you can find some helpful informations about SSH connection.
If you connect by SSH, navigate to project directory and use composer install or composer update.
If you don't have a command line access to your server and so cannot use composer directly, I would recommend to do prepare the code locally in a 'deploy' folder and then copy the whole folder content, including the vendor directory, to the server. I assume that you can use composer locally, so that you can install the extension regularely . And I assume that the local machine and the server does differ to much (PHP version, other settings).
Installing the yii2-extension does mean: if you install it with composer install Yii gets prepared so that you can use the code like any other code in your application. Installing the extension creates an entry in `vendor/yiisoft/extension.php which gets evaluated each time the application gets loaded.
Related
I have been trying to install Dreamfactory on Xampp but can't find a single article on how to do so.
Purpose: To generate REST API in php with mysql.
What I have tried:
Initially I installed windows version of
Dreamfactory from official site. It was installed successfully but it don't allow access to MYSQL database in free version. Paid version is out of my budget, so I tried with Xampp. I downloaded open-source version from
Github. After extracting it, executed php artisan serve in xampp command shell as mentioned on Dreamfactory Wikipedia Installation guide. This resulted in following error:
Warning: require(D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
Fatal error: require(): Failed opening required 'D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
As mentioned in Git documentation, they have given installation procedures for Ubuntu and Debian. Further more, they have mentioned about Bitnami official installation software, but non for XAMPP or stuff like that.
Question:
Is there any way we can install Dreamfactory on XAMPP? If yes, how so!
I'd venture it's going to be fairly difficult task to run DreamFactory on XAMPP because DreamFactory requires quite a few dependencies which are not installed on XAMPP by default.
Your best bet would be to run the Bitnami for DreamFactory environment, or alternatively use Docker. Both can be downloaded from the DreamFactory website downloads page. Alternatively, if you'd like to run DreamFactory in a VM, the OSS download README points to automated installers for Debian and Ubuntu. Additional installers for CentOS and Fedora are found here, they work great however we just haven't moved them into the official distribution yet.
I have a remote managed hosting Linux server and I would like to install and run a Mercurial server on it to communicate with from local repositories (clone, pull, push).
The server has Apache, PHP, MySql, Python and RubyOnRails.
I can also access the remote system over SSH, but the command repertoire is limited: e.g. there is no such thing as apt-get, so I cannot download and deploy the server directly.
Is there any possibility to bypass these limitations and have a Mercurial server operating on such a server? Or does any other Version Control system exist that would allow this kind of usage? Is there probably a PHP- or Python-driven Version Control Server around (which I failed to find)?
This depends on the restrictions set in place. Mercurial is a normal Python program and the Mercurial server is part of the normal distribution. If you are using SSH as a transport protocol, nothing but a Mercurial installation in your $PATH is required. For HTTP access you will need to either run the Mercurial hg serve command or install the necessary wsgicgi module.
Now let's assume you want to access the repositories via SSH, and only need a Mercurial installation, but cannot run apt-get, consider the following:
You must have Python installed
You can try installing Mercurial from sources by downloading the tarball from https://www.mercurial-scm.org/downloads.
Run make install PREFIX=~/mercurial to install the Mercurial distribution to ~/mercurial.
Ensure ~/mercurial is in your $PATH during your SSH session by adding export PATH=$PATH:~/mercurial to your ~/.profile.
If you cannot install Mercurial from sources, you can consider building Mercurial on a compatible Linux systems. E.g. your servers runs Ubuntu 19.04, and you run locally Ubuntu 19.04. Install the distribution as described to your local directory and rsync the distribution to your server.
On your local linux machine: make install PREFIX=~/mercurial to install the Mercurial distribution to ~/mercurial.
rsync -avzP ~/mercurial server:~/mercurial
Set path variable to ~/mercurial as described above.
so I'm trying to use mysql as my database in sails js instead of mongodb, and I'm currently having a hard time configuring / installing it.
So basically what I did was in my app folder I typed
npm install sails-mysql
then I fixed all my configuration for sails js and I'm having a 500(E_UNKNOWN) error when I open my application or I open a page that connects to mysql. It seems that I have not mysql running and installed. So following this, http://dev.mysql.com/doc/mysql-macosx-excerpt/5.5/en/macosx-installation-pkg.html I installed mysql. Now, I can't seem to locate mysql on my computer to start it. I know that it should be in /usr/local/bin but when I open it using the terminal
open -a Finder /usr/local/bin
the mysql installation directory is not there. Is there anything that I'm missing? Or should I just install MAMP?
Like the question says How I should deploy a laravel project? that is already on github.
Do I need to install laravel whit the composer on the web server or just copy the whole directory of my proyect that have the folders app,public,vendor and the other files?
It depends on your server. If you hava full access to server (such as vps or even dedicated), it's good to install composer there and do laravel installation use Composer, allow you to easily manage your project later. Otherwise, yes, you have to copy all files including vendor directory to your server.
Note, if you're going to deploying to shared server which you have no full access to, you probably want to create fresh laravel installation (production version of your project) with --prefer-dist and --no-dev locally first. It'll reduce application file size.
I want to install MySql and Database File while installing the Setup File,
which is developed in C#.
simply, while installing the setup file only everything needs to be installed
(MYSql,Database File)
So, please guide me on this.
You can set Custom Launch Options to the Setup file. Add the necessary executibles in the Commit node of the setup file and those will get executed when your installation finishes.
As for installing entire MySQL, you would need to add the installation files of MySQL to the Setup project. Executing the Database Script would be simple, just call the script after MySQL installs.