pierobot / mangapie

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

image.php missing inside config folder? #142

Closed Thatguy553 closed 4 years ago

Thatguy553 commented 4 years ago

Here where it says to change gd to imagick the i attempt to do so because gd isnt compatible with windows i guess, but there is no image.php file image

pierobot commented 4 years ago

Did you run the php artisan mangapie:init command?

If it doesn't work then try creating it manually. php artisan vendor:publish --provider "Intervention\\Image\\ImageServiceProviderLaravel5"

Maybe the double backslashes are causing a problem on Windows? It might also work with single forward slashes.

Also, looks like the gd extension on Windows might be available. https://stackoverflow.com/questions/7851011/how-do-i-install-gd-on-my-windows-server-version-of-php

Thatguy553 commented 4 years ago

Yes but I believe I got a bunch of errors, I'll get on later today and try again

On Tue, Mar 31, 2020, 11:46 AM pierobot notifications@github.com wrote:

Did you run the php artisan mangapie:init command? That's what creates the file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pierobot/mangapie/issues/142#issuecomment-606709047, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDL65RFVHBIS3D7D5W6TS3RKIF6JANCNFSM4LWHLX2A .

Thatguy553 commented 4 years ago

this is the error i get when i try, im using windows btw so im trying to figure out all the commands in the installation guide in windows.

image

I havent set up the nginx web server though, i skipped that step thinking it could just run from xampp? if i have to set that up then im a little stuck, as i cant figure out those commands in windows

i got as far as sudo mkdir /etc/nginx/certs but i couldnt figure out the next command in windows, sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/certs/mangapie.key -out /etc/nginx/certs/mangapie.crt

pierobot commented 4 years ago

6379 is the default redis port.

This project is not officially ready for Windows or Apache but the amount of code I will need to change is not much. I will start to make these changes tomorrow and also write a setup guide for Windows. Stay tuned.

Thatguy553 commented 4 years ago

Ah alright thx, can't wait to see how it works!

On Thu, Apr 2, 2020, 1:12 AM pierobot notifications@github.com wrote:

6379 is the default redis port.

This project is not officially ready for Windows or Apache but the amount of code I will need to change is not much. I will start to make these changes tomorrow and also write a setup guide for Windows. Stay tuned.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pierobot/mangapie/issues/142#issuecomment-607625128, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDL65VP4TCGXTARSFD2JETRKQNEZANCNFSM4LWHLX2A .

pierobot commented 4 years ago

Sorry for the wait, I've got it working on Windows. All that's left is to add in support for Apache's mod_xsendfile for avatars, covers, previews,and images.

Hopefully the guide will be up by tomorrow.

Thatguy553 commented 4 years ago

Awesome I'll keep an eye out for it

On Mon, Apr 6, 2020, 8:11 PM pierobot notifications@github.com wrote:

Sorry for the wait, I've got it working on Windows. All that's left is to add in support for Apache's mod_xsendfile for avatars, covers, previews,and images.

Hopefully the guide will be up by tomorrow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pierobot/mangapie/issues/142#issuecomment-610101137, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDL65VJK745DN4DBAWIHOLRLJVS3ANCNFSM4LWHLX2A .

pierobot commented 4 years ago

Hi, I've pushed changes onto the feature/windows-support branch. Please try it out. Here are the installation instructions.

Let me know if you have any problems.

donotos commented 4 years ago

Hey!

You said:

The latest supported version is 7.2 due to the lack of php-rar modules for >= 7.3

When i tried to install mangapie on debian 10 with php 7.3 i was unable to install php-rar that's why i switched to ubuntu server where the latest php version is 7.2 and i was able to install php-rar.

is this incompatibility the same on linux? because if it is, you should update your wiki page on LAMP.

pierobot commented 4 years ago

It's likely the case but I can't say for sure since I have built php-rar since 7.1 using some of my own patches that were causing corruptions in some files. IIRC they had merged the 7.3 changes into php-rar but the binaries on PECL have not been updated.

I'll add in instructions on how to do so for Linux. I haven't yet figured out the build environment on Windows which is why I put the notice.

Thatguy553 commented 4 years ago

sorry for taking forever, the guide says image but there doesnt seem to be a server.crt file in there, only a server.csr file. for now ill assume that was the intended file and copy it, ill update as to what happens

Thatguy553 commented 4 years ago

in this section the php and etc files didnt exist, if your supposed to create them you should probably specify so, if your not did i install wamp wrong? xD image you should also specify what versions to install

Thatguy553 commented 4 years ago

sorry for all the messages, just want to inform you of everything that doesnt exactly match up with the guide incase of future errors after i do everything.

There is more than one php.ini file, for now ill add the code to both image

Thatguy553 commented 4 years ago

ran composer install --no-dev and got this image dont know if it failed or succeeded, im gonna move on to the next commands in the guide

Thatguy553 commented 4 years ago

alright ill be stopping here till i get a response, seems it does not work after that error, also when you tell me either what i did wrong or if theirs bugs how to fix it directly, if its a simple fix cause it would be annoying to redo all the previous steps lol image

donotos commented 4 years ago

Hello there!

since i have a lot of time i tried installing on windows server. It was quite time consuming but i didn't encounter any issue in the process. i have the same issue as @Thatguy553

image

On another note:

alright ill be stopping here till i get a response, seems it does not work after that error, also when you tell me either what i did wrong or if theirs bugs how to fix it directly, if its a simple fix cause it would be annoying to redo all the previous steps lol image

I think you should install the same version as mine (wampstack-7.2.29-2) because yours is packaged with php 7.3.

Thatguy553 commented 4 years ago

Hello there!

since i have a lot of time i tried installing on windows server. It was quite time consuming but i didn't encounter any issue in the process. i have the same issue as @Thatguy553

image

So you didn't have any issue up until the picture above? Or did you not have that either?

I think you should install the same version as mine (wampstack-7.2.29-2) because yours is packaged with php 7.3.

And alright I'll do so, it didn't seem to specify a version for anything so I just installed the latest of everything

pierobot commented 4 years ago

You need to use the feature/windows-support branch. I should have been more specific. I haven't merged the changes into the master branch because I wanted to make sure everything went smoothly for others.

You want to edit php.ini. the development and production ini files are templates to build php.ini from. I don't remember if wampstack came with php.ini already created or not but if it did not then just copy php.ini-production to php.ini.

As for the php/ext folder it should be inside C:/Bitnami/wampstack/. I didn't put the right path. I've corrected it.

donotos commented 4 years ago

you wrote:

In C:/Bitnami/wampstack/apache2/conf/bitnami/bitnami-apps-prefix.conf add the following line Include "C:/Bitnami/wampstack/apps/mangapie/conf/httpd-prefix.conf"

you need to add:

In C:/Bitnami/wampstack/apache2/conf/bitnami/bitnami-apps-vhosts.conf add the following line Include "C:/Bitnami/wampstack/apps/mangapie/conf/httpd-vhosts.conf"

donotos commented 4 years ago

hmmmmm it does not seem to work... i'm pretty sure the server part is set-up correctly but:

image

Thatguy553 commented 4 years ago

Ah I forgot you mentioned that part, I'll use the windows branch in a bit

On Wed, Apr 15, 2020, 1:50 PM pierobot notifications@github.com wrote:

I haven't merged the changes into the master branch because I wanted to make sure everything went smoothly for others.

You need to use the feature/windows-support branch.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pierobot/mangapie/issues/142#issuecomment-614185780, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDL65TUZJ36LE44LOTM5HDRMXXX5ANCNFSM4LWHLX2A .

pierobot commented 4 years ago

@donotos Thanks I corrected the vhosts error.

The error should also be in in your latest log file in storage/logs/. If you want it visually and pretty then set APP_DEBUG in your .env file to true and install dev packages. php artisan config:cache && composer install. That should give more information on what's wrong. If you do go for the APP_DEBUG route then don't forget to set it back to false as it will slow down the app.

donotos commented 4 years ago

Funny... here is the log:

laravel-2020-04-15.log

But it work in debug...

image

pierobot commented 4 years ago

The [2020-04-15 19:05:08] local.ERROR: No application encryption key has been specified. error happens when APP_KEY is missing from the cached config. You just need to do php artisan config:cache. That's why the debug mode works 😛

I'll add that line to both guides. Just as an FYI, Apache seems to cache some web pages so you might have to restart the server if you make changes to the config.

donotos commented 4 years ago

ok now i do not seem to be able to add a librarie. i tried: Z:\eBooks\Mangas\Completed\ "Z:\eBooks\Mangas\Completed\" Z:/eBooks/Mangas/Completed/ "Z:/eBooks/Mangas/Completed/"

i always get the same error:

'Z:/eBooks/Mangas/Completed/' does not exist

pierobot commented 4 years ago

How do you have the Z drive setup? Is it a local drive or network?

donotos commented 4 years ago

network drive. i created a symbolic link but it is the same:

C:\Bitnami\wampstack-7.2.29-2\apps\mangapie>mklink /D libraries Z:\eBooks\Mangas\ Lien symbolique créé pour libraries <<===>> Z:\eBooks\Mangas\

C:\Bitnami\wampstack-7.2.29-2\apps\mangapie\libraries\Completed

pierobot commented 4 years ago

Can you make a new issue for this? What backend are you using? Samba, S3, B2, GDrive?

donotos commented 4 years ago

Can you make a new issue for this? What backend are you using? Samba, S3, B2, GDrive?

Answered in the new issue.

Thatguy553 commented 4 years ago

Alright finally got wamp reinstalled and starting over again, but for this bit image i want to confirm should it be server.csr or will that work atleast?

donotos commented 4 years ago

no. you should do as said in the instructions. copy server.crt an server.key from the apache2 folder to your mangapie/conf/certs folder

Thoses files are called in httpd-vhosts.conf

they are only for testing purpose. You will have to generate new ones with letsencrypt when you go from testing to production.

Thatguy553 commented 4 years ago

I dont have the server.crt file though, only server.csr

donotos commented 4 years ago

image

Thatguy553 commented 4 years ago

Ohhhh i see i do have it

Thatguy553 commented 4 years ago

One last thing, i assume im supposed to past the files from the windows branch repository inside the mangapie folder created in the guide correct?

or do i do like the guide says and just copy the repository into apps C:/Bitnami/wampstack/apps/

donotos commented 4 years ago

in the zip file you have a folder named "mangapie-feature-windows-support" and inside it you have a lot of folders and files. you need to select everything and put it in C:/Bitnami/wampstack/apps/mangapie

Thatguy553 commented 4 years ago

Thought so

Thatguy553 commented 4 years ago

Alright so ive followed the guide up till the very last bit the cmd just sits like this and the page does not load, i restarted the wamp server as well. image

This is the bit in the env APP_ENV=local APP_KEY= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=https://mangapie APP_IMAGE_EXTRACT=false APP_WEB_SERVER=apache

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=mangapie DB_USERNAME=mangapie DB_PASSWORD=mangapie

BROADCAST_DRIVER=log CACHE_DRIVER=redis SESSION_DRIVER=redis QUEUE_DRIVER=redis

everything should be correct its just not loading, im not getting errors or anything

pierobot commented 4 years ago

The queue worker won't output anything until it starts working on a job. In your case it will be refreshing the library once you add it.

What exactly is not loading? The web page? Is it timing out? Make sure Apache is running and did not fail on startup due to config errors. The error log will be in C:\Bitnami\wampstack-7.2.29-2\apache2\logs\error.log

Thatguy553 commented 4 years ago

error.log This is the error log, and the web page isnt loading, The server is running it just says the IP address cant be found

pierobot commented 4 years ago
[Wed Apr 15 19:06:13.203547 2020] [core:error] [pid 12944:tid 492] (OS 11001)No such host is known.  : AH00547: Could not resolve host name mangapie -- ignoring!

Did you add mangapie to your hosts file?

PHP Warning:  PHP Startup: Unable to load dynamic library 'rar' (tried: C:/Bitnami/wampstack/php/ext\\rar (The specified module could not be found.), C:/Bitnami/wampstack/php/ext\\php_rar.dll (The specified procedure could not be found.)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'redis' (tried: C:/Bitnami/wampstack/php/ext\\redis (The specified module could not be found.), C:/Bitnami/wampstack/php/ext\\php_redis.dll (The specified procedure could not be found.)) in Unknown on line 0

Did you install the rar and redis modules? I see there's an extra slash in the path. Not sure if that matters.

Thatguy553 commented 4 years ago

They are installed, does it matter what version? image

and it seems the hosts file reverted on restart(?) or just didnt save last night, but now that ive added it, and restarted the apache server i get this

image

pierobot commented 4 years ago

You're getting the same error donotos got. Just do php artisan config:cache

Yes, your modules should be for 7.2.

Thatguy553 commented 4 years ago

did so and its the same thing, oh my modules

Thatguy553 commented 4 years ago

Both modules should support 7.2 i grabbed the latest and both say either 5.3.0 or 7.0.0 or newer, does it matter what version of wamp? i have 7.3 for php

pierobot commented 4 years ago

Yes the guide says 7.2.

Thatguy553 commented 4 years ago

Ah i missed that then, Alright ill go cry as i reinstall wamp for the next hour

Thatguy553 commented 4 years ago

Alright well finally got back to the previous step with wamp 7.2 and its the same image i did all of the steps, cache, init and all the before

Thatguy553 commented 4 years ago

I also get this in the dev tools image

pierobot commented 4 years ago

Did you restart the web server? The page likely got cached. Show what your network tab looks like in the dev tools.