pierobot / mangapie

This is a self-hosted server for archived manga.
BSD 3-Clause "New" or "Revised" License
64 stars 9 forks source link

php-rar #18

Closed calgara12 closed 7 years ago

calgara12 commented 7 years ago

Hello, first of all thanks for your application. Unfortunately im not able to get it to work.

I encounter problems when installing php-rar. In your documentation you have the command: git clone https://github.com/cataphract/php-rar && php-rar im guessing you meant: git clone https://github.com/cataphract/php-rar && cd php-rar

and then when i do: phpize && ./config && make && sudo make install

i get:

Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 -bash: ./config: No such file or directory

not sure what to do here. I'm trying to install it to ubuntu server 16.04.

Thanks in advance and have a nice day :)

pierobot commented 7 years ago

Yes you are correct that it should be cd php-rar. Also the ./config should be ./configure

The PECL module was outdated like a month ago but it looks like it's been updated so now you can also install using sudo pecl install rar.

Thanks for pointing these out. I've updated the wiki. Hopefully everything else is fine.

calgara12 commented 7 years ago

Thanks for your fast reply :) Ive now managed to install everything.

Unfortunately when i open the app in my browser i get: capture

Do you have any idea? Thank you!

pierobot commented 7 years ago

Is that all it says? Usually it has some text that says what went wrong.

calgara12 commented 7 years ago

No unfortunately there is no additional info. The whole site is blank except for the "Whoops, looks like..." message.

pierobot commented 7 years ago

Looks like it's not creating the .env file with composer install Try

cp .env.example .env
php artisan key:generate

What does your .env and nginx/apache file look like?

I just tried a separate installation and I now updated the wiki. https://github.com/pierobot/mangapie/wiki/1.-Installation-(Ubuntu-17.04,-PHP-7.0)#grant-privileges-to-storage https://github.com/pierobot/mangapie/wiki/2.-Configuration-(MySQL,-Nginx)#dbms

calgara12 commented 7 years ago

Thanks, that helped. I now followed the 2. Configuration (MySQL, Nginx) of the Wiki.

now when i access 'http://localhost/mangapie' i get: capture

I'm new to using ngix so i think i might have a problem there. Can i also use apache2 instead of ngix?

This is my `/etc/nginx/sites-available/mangapie:


server {
        # change this IP or add another
        listen 127.0.0.1:8089;
        server_name localhost;

        location /mangapie/ {
                proxy_pass http://127.0.0.1:8000/;
        }
}

server {
        listen 127.0.0.1:8000;
        server_name mangapie;
        root /var/www/html/mangapie/;
        #access_log /home/pierobot/github/mangapie/nginx-log/access.log;
        #error_log /home/pierobot/github/mangapie/nginx-log/error.log;

        index index.php;

        location / {
                try_files $uri $uri/ /index.php$args;
        }

        location ~ \.php$ {
                try_files $uri =404;

                include fastcgi.conf;
                fastcgi_index index.php;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        }
} 
pierobot commented 7 years ago

Yes, you can use Apache as well but I do not have a config for that yet.

The error you get is because

calgara12 commented 7 years ago

Hmmm... I executed the command from the documentation: 4

This created this file here: 1

I also set the permissions to 777 here: 3

This is my sites-available folder: 2

How would i access the site? would i go to: http://localhost/mangapie or http://localhost:8000 or http://localhost:8089

Sorry if i have a lot of questions. As i said, im new to this. But thank you so much for helping me! :)

Do you plan on creating a config for Apache?

pierobot commented 7 years ago

Looks like the symbolic link is faulty since it's red. (My fault) From /etc/nginx/sites-available

sudo rm ../sites-enabled/mangapie
sudo ln -s ../sites-available/mangapie ../sites-enabled/mangapie

You should be visiting the url in the first server - so http://localhost:8089/mangapie. In the future, if you add SSL/TLS then you would also edit the first server.

Feel free to ask any questions, I do not mind. :)

calgara12 commented 7 years ago

Alright i changed it, and the symbolic link now looks right. although when i visit http://localhost:8089/mangapie I get: 1

Just so you know, to run apache2 and nginx at the same time i changed the port from 80 to 81 this file: /etc/nginx/sites-available/default 2

Not quite sure what the problem is.

Again, Thank you for your amazing support :)

pierobot commented 7 years ago

Why is it going to 192.168.0.100? If you want to access the site from LAN you need to add another listen to the first server

listen 192.168.0.100:8089; # or whatever LAN IP your computer is on
calgara12 commented 7 years ago

192.168.0.100 is the static ip of my ubuntu server 192.168.0.1 is the gateway of my router

If i set the first server to 192.168.0.1:8089 i get this error: 4

When i change it to "listen 192.168.0.1:8089;" like so: 3

I get : 5

When i visit: 192.168.0.100:8089/mangapie

How can i get it to start the application?

pierobot commented 7 years ago

Your proxy_pass inside /mangapie/ needs to point to the second server. So it needs to be http://127.0.0.1:8000/ because that's where the second server is listening on.

calgara12 commented 7 years ago

Now it works, Awesome thank you so much!

keep up the good work

pierobot commented 7 years ago

You're welcome. If you have any other questions or features make another issue.

I'll be adding the automatic thumbnails feature soon. Keep an eye out for that :smiley: