Open federicofacc opened 11 months ago
Hello!
yea you can run this on Linux as it is a simple PHP application, install PHP on your Linux app and then you can run it!
change : .\php\php.exe
to just : php
when running on a Linux command line.
Thank you for getting back to me! Would this apply also to run it on a website, so that other people can use it as well? What I did was create a subdirectory via FTP and upload the folder. Then I ran the console using PuTTY and, after I fixed some issues with the memory limit (the limit was set to "2G" and, in my colleagues words, "it didn't understand what G was", so we changed it to 1000M), I tried several commands, including using only "php" instead of ".\php\php.exe" but it wouldn't parse or launch the app. If it helps, I can try it all again and share the error messages for each thing?
You can use a memory limit of “-1” to completely remove the limit which may help. 2G is fine, PHP knows what G is https://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes it accepts K, M and G
post the errors and I’ll walk through with you how to get going.
as for actually hosting it as a web app, you will need either Nginx or Apache2 and have them route to public/index.php but that is a bit out of the scope of this project, it’s just a tool and how you deploy it is up to you!
You can find example files here: https://github.com/vekien/QueriaTMX/tree/main/server
I completely understand that's out of the scope of the project, so I really appreciate any help I can get! I am not familiar with these things, which is why I've been trying to get help from work colleagues. If I can't get this to run as expected, I am happy to hire someone to do it for me, I'd just need to know what it is that I need exactly. For now, what I get when I run the php command is this:
Ah, so these are libraries that PHP will need in order to operate.
What Linux Distro do you have?
You'd just need to install them, for example here is a typical install command for linux: https://github.com/vekien/QueriaTMX/blob/main/server/build#L23
php7.2-fpm php-apcu php7.2-dev php7.2-cli php7.2-tidy php7.2-json php7.2-fpm php7.2-intl php7.2-mysql php7.2-sqlite php7.2-curl php7.2-gd php7.2-mbstring php7.2-dom php7.2-xml php7.2-zip php7.2-tidy php7.2-bcmath
This installs the required extensions like curl, gd2, imap etc.
Once you have those installed, let me know what message you get next.
Hi there, I've been trying to get this running on my server. I'm not an expert myself, but I had some colleagues look over it. After several attempts they realized that the issue might be that my server runs on Linux? Is that expected? Anything that can be done? Thank you!