Jump to content
  • 0
IrfaanKhan

Require Help In Installation

Question

Hi, Nabeel

i have tried installing latest version as per provided instructions i have done below steps to install it.

i am having shared hosting environment & created subdomain

  1. Installed the latest ver from https://github.com/nabeelio/phpvms/archive/master.zip
  2. uploaded the same to public_html and extracted it now phpvms folder is next to public_html folder
  3. changes done in the index.php but i doubt which line needs to be changed below is my file
<?php

/**
 * phpVMS
 */

$path_to_phpvms_folder = __DIR__;

require $path_to_phpvms_folder.'/bootstrap/autoload.php';

$app = require_once $path_to_phpvms_folder.'/bootstrap/app.php';

$path_to_phpvms_folder = __DIR__.'/../phpvms/';
$app->setPublicUrlPath(env('APP_PUBLIC_URL', '/public'));

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

Next, open the phpvms/bootstrap/app.php, and change the reverse path:

My file

<?php

if(!defined('LUMEN_START')) {
    define('LUMEN_START', microtime(true));
}

include_once __DIR__ . '/application.php';

$app = new Application();
$app->bindInterfaces();

$app->bind('path.public', function () {
    # This line needs to change to the folder the index.php lives in
    # Will be made as an option, so it doesn't get overwritten
    return __DIR__.'/../../public_html';
});

 

now when i am pointing to my subdomain it gives me HTTP500 error.

 

Regards

Irfaan Khan

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 1

Guys,

Whosoever is trying to install Latest version of Phpvms, make sure your hosting supports PHP 7.0 in my case for the install i have added the below code in htaccess file within phpvms folder to get the install working also make sure to place the folder in the root of your directory example /home/yourwebdirectoryname not in public_html folder.

 

below line added in .htaccess file in order to make new version working, make sure to ask your hosting company if they supports PHP 7.0 version

AddHandler application/x-httpd-php70 .php7 .php5 .php4 .php .php3 .php2 .phtm

New Look 

https://prntscr.com/hyfq8h

hope this will help some people.

Edited by IrfaanKhan
  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

Are you trying to install on shared hosting? You don't need to do all that. The readme has the link to the tarball that has everything already in it. All you will need to do it upload it.

If you're cloning, you need to run `composer install` in order to get all of the dependencies and stuff. I'll update the wiki page to remove all those instructions. The error 500 could be because you haven't done that. It's impossible to know without looking at your server's error logs, which is where I would start if I were you

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

Dear Nabeel,

Thanks for the response, i have sorted out the issue as you explained did reinstall and it worked.

 

BTW best of luck for this amazing looking project.

Best Regards

Irfaan Khan

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, IrfaanKhan said:

Guys,

Whosoever is trying to install Latest version of Phpvms, make sure your hosting supports PHP 7.0 in my case for the install i have added the below code in htaccess file within phpvms folder to get the install working also make sure to place the folder in the root of your directory example /home/yourwebdirectoryname not in public_html folder.

 

below line added in .htaccess file in order to make new version working, make sure to ask your hosting company if they supports PHP 7.0 version


AddHandler application/x-httpd-php70 .php7 .php5 .php4 .php .php3 .php2 .phtm

New Look 

https://prntscr.com/hyfq8h

hope this will help some people.

Yeah, that will depend from host to host. Thanks for sharing it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×