alaesahbou / BuscoPhylo

BuscoPhylo : Easy Busco-based phylogenomic analysis tool
MIT License
9 stars 1 forks source link

BuscoPhylo installation with xampp #1

Open vtrinca opened 1 year ago

vtrinca commented 1 year ago

Hi, I am trying to install the BuscoPhylo and when I try to connect to my local host in http://127.0.0.1:100/BuscoPhylo, I am redirected to http://127.0.0.1:100/BuscoPhylo/db/install.php and nothing works further than that. When I click on show source code I get:

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

  <link rel="stylesheet" href="../css/bootstrap-reboot.min.css">
  <link rel="stylesheet" href="../css/bootstrap-grid.min.css">
  <link rel="stylesheet" href="../css/owl.carousel.min.css">
  <link rel="stylesheet" href="../css/slider-radio.css">
  <link rel="stylesheet" href="../css/select2.min.css">
  <link rel="stylesheet" href="../css/magnific-popup.css">
  <link rel="stylesheet" href="../css/plyr.css">
  <link rel="stylesheet" href="../css/main.css">
  <link type="text/css" rel="stylesheet" href="../plugins/loader/waitMe.css">
  <link rel="icon" href="icon/logo.png" sizes="32x32">
  <meta name="description" content="BuscoPhylo">
  <meta name="keywords" content="BuscoPhylo">
  <meta name="author" content="Bwire Mashauri">
  <title>Install BuscoPhylo</title>
    <script>
  //Custom Scripts

The custom scripts file is present in the const folder. Additionally, I do not have the php version 5. I only was able to download version 7.4.3 which has a directory structure different from present in the github readme. To edit the input BuscoPhylo files limit, I have to go to /etc/php/7.4/cli/php.ini. Could this be a problem? If not, how can I correct this issue?

alaesahbou commented 1 year ago

Hi, PHP version should not be a problem. Did you the setup the server :

# Give BuscoPhylo root privileges using the following command
sudo chown -R daemon /BuscoPhylo_directory
sudo visudo
# insert th following lines after User privilege specification comment 
# for xampp replace USER by daemon and for ampps replace USER by ampps
[USER] ALL=(ALL:ALL) ALL
[USER] ALL=(ALL) NOPASSWD: ALL
# open the file with a text manger
vim /etc/php5/cli/php.ini
# change these lines:
max_file_uploads=5000
upload_max_filesize=8000M
post_max_size=8000M

if you did, can you reply with a screenshot of the issue

Thank you

kmkocot commented 1 year ago

I'm having what seems to be the same issue. I'm using Apache 2 and I've got the BuscoPhylo directory in /var/www/html. I ran the commands described above using daemon for [USER]. I'm on php 7.4 so my php.ini file is located in /etc/php/7.4/apache2/php.ini.

When I open http://localhost/BuscoPhylo/ in my browser, I am directed to the install.php page asking for my host, username, and password. I've tried localhost / root / [root password] and that's not working (directed to a page that just says "Unable to open file!"). I've also tried a non-root account and its password plus daemon and no password and that's also not working. I noticed that install.php displays the name of the host, username, and password with the first letter capitalized no matter why you type in. Could that be the issue?

All the following commands work as expected: python3 busco muscle trimal iqtree ete3 and I can successfully "import Bio" in python 3.

Thanks, Kevin

alaesahbou commented 1 year ago

Hi, What version of MySQL do you have and can you send a screenshot so I can help Thank you

ricardomenzer commented 1 year ago

Same problem here.

Microsoft Windows 10 with a fresh ApacheFriends XAMPP Version 8.2.0.

Firefox version 103.0.2 (64-bits).

At the step of accessing http://localhost/BuscoPhylo, the browser is redirected to http://localhost/BuscoPhylo/db/install.php, which shows only a blank page.

The Source code from the page shows the following, which looks like PHP stopped processing:

image

In fact, if I change install.php to show errors, like the following: error_reporting(1); ini_set('display_errors', 1);

Then the page source adds more details:

image

alaesahbou commented 1 year ago

Thank you for bringing this issue to our attention. After reviewing the issue, it seems to be related to compatibility issues with the script and PHP. I was able to resolve the issue by making sure that the PHP module was correctly installed and configured in XAMPP. If you are still encountering this issue, please let us know and we will assist you further. Thank you.

alaesahbou commented 1 year ago

Additionally, if you are unable to resolve the issue with the PHP installation, you can also try manually installing the database. To do this, you can import the busco_laravel.sql file into your MySQL database and make any necessary changes to the config.php file in the db folder. This should allow you to use the BuscoPhylo application even if there are compatibility issues with PHP. Let us know if you have any further questions or issues.