-
Posts
24,134 -
Joined
-
Last visited
-
Days Won
847
Everything posted by Krydos
-
Yep, I can confirm that GD imagettftext() function on Tommy's PHP 5.6 is broken, and I can't get it to even produce an error. I suspect it is Plesk's fault because we just use the package plesk-php56-gd.rpm and they probably made some mistake compiling it. Some options: We can report it to Plesk and see if they will fix it. We could uninstall the Plesk package, and compile GD ourself from source, but that seems like too much work and may break other things. We could use a version of PHP where GD actually works, such as 7.4, but that may not be an option if too much of the rest of the code requires 5.6. We could move your website to Lily where I think PHP 5.6 has GD and it actually works. We could move you to a VPS which start at $4 per month https://heliohost.org/vps/ You could use Image Magick instead of GD. Example code below: <?php // font size and colors $fontsize = 53; $width = 800; $height = 200; $bg = "#fbfbfb"; $fg = "#000000"; $text = "Hallo, Welt!"; // initialize the imagick stuff $image = new Imagick(); $draw = new ImagickDraw(); $pixel = new ImagickPixel($bg); // load font $draw->setFont("./DejaVuSansMono-Oblique.ttf"); $draw->setFontSize($fontsize); $draw->setFillColor($fg); // make background $image->newimage($width, $height, $pixel); // add text to background $image->annotateImage($draw, 100, 150, 0, $text); $image->setImageFormat("png"); header("Content-Type: image/png"); echo $image; Example using the above Image Magick code on PHP 5.6: Example using your GD code on PHP 7.4:
-
[Solved] 500 Internal Server Error in (openvms.eu.org)
Krydos replied to ballagyr's topic in Escalated Requests
Thanks for letting us know. If anyone else has any issues migrating to the new version of Perl we'll suggest this solution to them as well. -
Your subscription has been canceled, and you won't be billed again. Thanks for using our VPS service.
-
[Solved] 500 Internal Server Error in (openvms.eu.org)
Krydos replied to ballagyr's topic in Escalated Requests
I added these lines use File::Basename; use lib dirname (__FILE__); and it seems to work now. The old Tommy has Perl v5.16.3 and the new Tommy has Perl v5.32.1 so maybe there was some change between these versions. Let us know if there are any other issues. -
[Solved] ENABLING REMOTE ACCESS TO DATABASES
Krydos replied to fdevillalobos's topic in Escalated Requests
Would you like to have your forum username changed to match your hosting account? This makes it a little easier for us to help you because we don't have to spend as much time figuring out who you are. -
[Solved] ENABLING REMOTE ACCESS TO DATABASES
Krydos replied to fdevillalobos's topic in Escalated Requests
The account fdevillalobos is actually a suspended Johnny account but I figured out what you meant. I have added it to my todo list to make the move script copy over remote PostgreSQL access, but for now I manually copied everything over. -
Exec() is disabled on shared hosting, Tommy, Johnny, and Morty. If you need exec() you'll need to get a VPS https://heliohost.org/vps/
-
You have to request remote access again for PostgreSQL database after being moved. If you want to be able to enable remote connections yourself you can use MariaDB instead. Remote access enabled. host=65.19.154.90 port=5432 username=fudobi_admin_strange dbname=fudobi_strange password=<set in Plesk>
-
Your account will be moved shortly.
-
Good idea. It's been updated to include that information.
-
The module mysqlclient has been installed on Tommy's Python 3.12. You can see the current list of installed modules at https://krydos1.heliohost.org/pyinfo/info3.12.py
-
We could always upgrade your VPS some more if it doesn't support running two copies of your site, but like I said as long as you password protect your development site it shouldn't cause too much load. A Wordpress site with zero visitors causes zero load. It's not like there is any constantly running processes that take up memory.
-
I don't see where you canceled your service? Did you email us? Your forum account only has 1 post. If you don't cancel it just keeps billing forever with the assumption that you're still using the service. Sure.
-
Making backups is pretty easy. Just tar zcvf your files, and mysqldump your database occasionally. You certainly don't need 10 GB of memory to do that. I would recommend automating the backups with cron, and then scp the files off somewhere secure. You can leave the backups on your server, but it's best practice to keep backups in several different locations to be safe. What I do is make a test domain like dev.yourdomain.com and password protect it so only you can access it. Then make the changes there where people can't see it, and then when it looks good copy the changes over to your main domain.
-
This is why the email you received after being moved has a giant Login button at the bottom, and explains at great length that logging in via any url other than https://heliohost.org/ or https://heliohost.org/login/ is a bad idea.
-
Your account was transferred from cPanel. Those old transfer accounts have all sorts of strange bugs. Since we have so few transfer accounts left, and there are no new transfer accounts being created I no longer waste my time trying to fix them. As long as people don't have any issues with these ancient accounts we just leave them alone, but as soon as they start to have bugs the first thing we recommend is a reset. If you can't get it to work on your own the only remaining option is to do a reset. This process deletes all your current content and recreates your account with all the default settings which fixes all the strange cPanel transfer issues because the account is created directly on Plesk. If you want to switch your main domain back to the old Tommy to get the website working again immediately we can do that, and then we can allow you to have 2 accounts at once, one on the old Tommy and one on the new Tommy. Then once you get everything working on the new Tommy we can move your main domain to the new account as well.
-
I don't even see a test.py file. Did you delete it already? How are you logging in to your account?
-
Your site appears to be working fine. Let us know if you have any other issues.
-
You're on the new server now. Let us know if you are able to login using the same password as before. If there are any other issues with the move please let us know about them as well.
-
Yeah, we always tell people not to do that. We've discussed just suspending people who set their contact email address to something hosted on their account. The analogy I always use is, setting your contact email address to something hosted on your account is like locking your spare car key inside your car. If you lose access to your account for some reason the email address is the only way we have of getting you access again, and if you don't have access to that email address because you lost access to your account then you're screwed.
-
Have you tested this Flask app on your home PC at all? [Sat Sep 21 02:41:47.620973 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] mod_wsgi (pid=3105472): Failed to exec Python script file '/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi'. [Sat Sep 21 02:41:47.621366 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] mod_wsgi (pid=3105472): Exception occurred processing WSGI script '/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi'. [Sat Sep 21 02:41:47.622307 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] Traceback (most recent call last): [Sat Sep 21 02:41:47.623106 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi", line 7, in <module> [Sat Sep 21 02:41:47.623167 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] from main import app as application [Sat Sep 21 02:41:47.623228 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/home/ujcis.helioho.st/httpdocs/alutagram/main.py", line 70, in <module> [Sat Sep 21 02:41:47.623308 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] @app.route('/signup/confirm/<student_id>', methods=['GET', 'POST']) [Sat Sep 21 02:41:47.623332 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Sat Sep 21 02:41:47.623544 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/scaffold.py", line 362, in decorator [Sat Sep 21 02:41:47.623631 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] self.add_url_rule(rule, endpoint, f, **options) [Sat Sep 21 02:41:47.623796 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/scaffold.py", line 47, in wrapper_func [Sat Sep 21 02:41:47.623859 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] return f(self, *args, **kwargs) [Sat Sep 21 02:41:47.623970 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] ^^^^^^^^^^^^^^^^^^^^^^^^ [Sat Sep 21 02:41:47.624192 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/app.py", line 657, in add_url_rule [Sat Sep 21 02:41:47.624257 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] raise AssertionError( [Sat Sep 21 02:41:47.624432 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] AssertionError: View function mapping is overwriting an existing endpoint function: confirm_signup
-
That xmlrpc.php file is a common vulnerability that hackers use to compromise your site. Most likely if some random IP is being blocked it is a good thing because they can't hack your site with that particular vulnerability if they are blocked. Even sites that don't use Wordpress get constant hacker bots looking for xmlrpc.php files. I ran another report on your site and it's looking pretty good https://gtmetrix.com/reports/gzmoperformance.co.uk/2Rc50v4y/
-
Comparing the two images, good: and bad: It looks like the only thing that is wrong is the text is missing. Do you know where your script is getting these fonts? Is there a font file that is missing?
-
I don't see any errors either. Here is the PHP 5.6 on the new Tommy https://php56.krydos1.heliohost.org/ and here is the PHP 5.6 on the old Tommy https://php56.krydos.heliohost.org/ Do you see any differences that would affect you? They both have gd and imagick, which are common image generating extensions, but I'm not sure what you're using exactly.