Silverstripe install.php can't find <mysite> - php

I have working SS v3.4 project locally. Now I want to deploy it. I've copied files to the server, run composer install to install vendor libraries. When I run install.php all requirements are fine except for missing mysite folder errors. That's intended because I renamed my project folder to let's say mydomain and it works fine on localhost. AFAIK SS should pick up the custom folder and recognise it as THE page folder. Somehow it doesn't happen. Any ideas why?

This is expected, since the installer specifically looks for "mysite".
You probably have two options:
Rename app to mysite on the serve, re-run the installer then rename the folder back to app
Don't run the installer at all - if you configure your own _ss_environment.php file and ensure assets folder is writeable you shouldn't need it

Related

How can I install and use website using drupal8 composer?

I tried to run inststruction from the official website but I cannot understand why I cannot access my website and what do I need to fix?
My website is in the directory /var/www/drupal8.
The files are as follows:
I installed it using composer from here https://www.drupal.org/node/2718229
What do I need to do next? I want to access my website in the browser as I can in Drupal 7 just typing my local website name, for example drupal7.loc
Configure your VirtualHost entry to point to drupal8/web. The actual Drupal root directory is the web directory. That's where the index.php file, etc. are.
Also, your screenshot doesn't show it, but make sure you have a drupal8/web/core directory. It should be there if you ran the composer create-project command, but if not, you'll need to run composer install in the project root (/drupal8) before your site will load.

Transfer composer files from localhost to server

I am using localhost as my development server in which I added Composer and installed the Stripe dependencies.
Since I have a shared hosting account, I want to transfer the Composer files to my server since I don't have root access to run the Composer install locally.
Which files do I move, and where do I put them? I have moved composer.json composer.lock and the vendor folder into my sites root directory with all of my sites files and folders.
However, when I go to run a Stripe command I get errors in which I have to include each file in the directory. Obviously, Composer is not correct on the new server since I have to include each file.
How can I get it so that Composer works properly on the new server?
First of all, you don't need root access to use Composer. Just download (or transfer from your local machine) composer.phar and use it on the server.
About copying: I advice to copy the whole project directory as is (with all src, vendor, bin dirs and other file). It's in your interests to make local and remote environments the same.

PHP in Eclipse, how to run PHP on some server?

On Eclipse i installed the PHP Development Tools and everything is cool, except i can't configure it to run on my local Apache...
I saw something like placing all my project files in some htdocs directory of Apache directory... but its kinda absurd...
I already tried:
http://www.eclipse.org/pdt/help/html/running_php_web_pages.htm
and
http://www.eclipse.org/pdt/help/html/php_servers.htm#Adding_servers
Which, as i understood, is linking calls from localhost/[project-name] (which directory is placed as htdocs) to my original repository x:/y/[project-name], but it doesn't work...
You might need to setup the workspace for your eclipse. The directory you set as workspace works as the document root directory and you don't need to place everything in htdocs. Hope this helps.

laravel 4 does not work on Windows XAMPP

On Windows 7 cmd I have run composer create-project laravel/laravel blog --prefer-dist from `C:\xampp\htdocs\lara. Everything is downloaded and installed fine.
However, when I try to access http://localhost/lara/blog it shows the directory listing of apache. I followed the instruction in the documentation during the installation.
I noticed the following notes:
C:\xampp\htdocs\lara\blog does not has any index.php or .htaccess
C:\xampp\htdocs\lara\blog\app also, does not has any index.php or .htaccess
Only accessing http://localhost/lara/blog/public opens a page with the laravel logo and the words "You have arrived"
I could not able to know what's the problem?
Laravel's folder structure uses the public folder as the WWW root, effectively placing all your application's files outside of the web root to help keep them secure. What you are experiencing is normal.
You'll have to either access your application from the http://localhost/lara/blog/public URL, or set up a virtual host URL (e.g. http://testblog.dev) that is pointed to the public folder. I do not develop on Windows/XAMPP so I cannot specifically tell you how to do that part.
If you're running php > 5.4 you can serve the app using the builtin server from command prompt as well (for development purposes):
php artisan serve
I have an answer on How to install Laravel via Laravel Installer on Windows?
or
http://goo.gl/uftcSo
for more details
Hope that helps.

Netbeans not copying source files to web folder

I'm using Netbeans to develop an HTML/PHP site and I have the Run Configuration set as follows:
Project URL: http://localhost/JEB
Project Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB
Source Folder: C:\Documents and Settings\John\My Documents\NetBeansProjects\JEB
Web Root:
The "Copy files from Sources Folder to another location" option is checked and the Copy to Folder location is: C:\xampp\htdocs\JEB.
The problem is, when I edit files in the Project Folder, and then click Run, I'm expecting them to copy to the web location (C:\xampp\htdocs\JEB) and then run in the browser. But that's not happening. The files are not getting copied over so I'm seeing the old versions of the files that were previously in the C:\xampp\htdocs\JEB folder. (I had this working once before, I thought.)
Am I misunderstanding how this works? I thought you were supposed to edit the files in the Source folder, and they would automatically be copied to my web server folder when I ran the project locally. I've checked the NetBeans forums and found one other person with this problem, but no working solution. I was having this problem with Netbeans 6.5.1 so I upgraded to 6.7.1 and still no luck.
Thanks.
I had this problem too and it seemed to be a bug in NetBeans. I was using Ubuntu Linux 9.04 with NetBeans 6.5 and 6.7.1.
When it happened to me, I would delete all of the files in the destination location and then run the project again. When NetBeans sees that there are no files there, it copied the latest version over. From then on it usually worked correctly (i.e. automatically copying files from the source to destination folder every time I ran the project). Sometimes I also had to restart NetBeans for this to work correctly.
Not a solution, but work around.
Create a XAMPP Alias to the directory where your files are located, see: Make XAMPP/Apache serve file outside of htdocs

Categories