Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

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
Posted (edited)

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
  • Administrators
Posted
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.

  • 2 years later...
Posted (edited)

Hi Nabeel,

 

I get this error while the installer is trying to setup the DB, any ideas?

It's on a shared hosting but all pre-requisites are there before getting to the DB phase

 

Appreciated

 

Error.jpg

Edited by William
Posted

Hi Guys,

i think i need help to installation.

 

i.ve a rootserver make all the steps in the documentation to install PHPVMS 7.

 

clone the Git repository with these link:

Remote-Repository-URL: https://github.com/nabeelio/phpvms.git 

 

My Folderstructure looks like /var/www/vhosts/mydomain/httpdocs/phpvms/

 

after clone the repository make composer install. everything looks good no errors. Then creating the mysql database and after that i run the installscript via www.mydomain.com/phpvms/index.php after landing i see the "head up to install" link. after start the script it tells me everything in my folderstructure permissions and php-version is ok. Then i try to go to step 2. Enter the Database and Siteinformations and click the continuelink. and nothing. It looks like the process is freezing. when i actual the page via f5 i can restart with enter the databaseinformation. But no errors and messages.

 

I hope you can follow my problem and have a idea what i can do.

 

Thanks for Help

 

And Nabeel thanks for the great work.

  • 2 weeks later...
  • Administrators
Posted
On 3/31/2020 at 8:44 AM, William said:

Hi Nabeel,

 

I get this error while the installer is trying to setup the DB, any ideas?

It's on a shared hosting but all pre-requisites are there before getting to the DB phase

 

Appreciated

 

Error.jpg

 

Can you try the latest dev? Who's your host?

Posted

Sorry forgot to told thats mayby my mystake. I forgot to point my Website tu phpvms/public.

 

My first idea was to combine my site into two systems a CMS and PHPVMS. But now i think it is not the right way and as i point my website to phpvms/public the installer runs perfect. 

 

Ive a dedicated root server hosted by strato but i.ve foll permissions. 

 

Thankes for Answer.

Posted
10 hours ago, Nabeel said:

 

Can you try the latest dev? Who's your host?

 

Hi Nabeel, thanks for looking into it.

 

I'm on the Beta 3.

So I changed PhP on my host to 7.3 and I was able to complete the install without errors. However, now when phpvms loads I am missing the whole CSS.

God, I wish I was good enough to find out why by myself 🤪

 

Error.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...