cpanel

Update GD version to support Webp for PHP 7.3

懵懂的女人 提交于 2021-01-28 11:19:06
问题 I am trying to enable WebP support for GD through WHM. Currently I am getting version 2.1.0 (2.5.5 is stable) and when I check PHP info WebP support is not enabled. Can I enable this using WHM? I am not experienced with servers and I am using WHM settings. 回答1: Instead of recompiling PHP, you can use the official WebP package to generate WebP images. Just download the package depending on your server OS. Extract it and upload it to public_html folder. Using shell_exec command you can generate

Map cpanel Add On domains to subsites in Wordpress multisite

妖精的绣舞 提交于 2021-01-28 05:34:31
问题 I have a server where I have several domains set up as "Add On" domains on cPanel. Those domains are fully hosted, as I have emails set ups and a folder with a Wordpress installation for each one. All domains nameservers are the same, (as they runs on the same sever). As the Wordpress sites of each domains are quite basic I am trying to set them in a multisite installation (with subfolders). But I can't find how to map each domain to respective subsite folder. I am experienced to map domains

How can I make my nextjs with Express site work on ssl

你。 提交于 2021-01-27 10:20:00
问题 We have a site running on Next.js and Express. This is on a cPanel server with Aapche and together with nginx serving as reverse proxy. I need to have ssl on the site. But I am quite confuused with how the configurations should be. My server.js : const express = require('express') const next = require('next') const https = require('https'); const fs = require('fs'); //const forceSSL = require('express-force-ssl') var ssl_options = { key: fs.readFileSync('/home/myreactsite.key'), cert: fs

How can I make my nextjs with Express site work on ssl

[亡魂溺海] 提交于 2021-01-27 10:18:52
问题 We have a site running on Next.js and Express. This is on a cPanel server with Aapche and together with nginx serving as reverse proxy. I need to have ssl on the site. But I am quite confuused with how the configurations should be. My server.js : const express = require('express') const next = require('next') const https = require('https'); const fs = require('fs'); //const forceSSL = require('express-force-ssl') var ssl_options = { key: fs.readFileSync('/home/myreactsite.key'), cert: fs

Adding private git repo via cPanel

有些话、适合烂在心里 提交于 2021-01-20 19:38:34
问题 I'm trying to add a private git repo onto cPanel but have ran into permission issues and not sure where I'm going wrong I have generated the SSH keys in cPanel at the 'SSH Access' section. I then added the key onto the private repo in git at the 'Deploy keys' section. But when I try to clone the repo on cPanel I get the error: Error: “/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended: Permission denied (publickey). fatal: Could not read from remote repository. Please

Is there a way to deploy a fastapi app on cpanel?

╄→гoц情女王★ 提交于 2021-01-07 01:34:42
问题 I'm having trouble deploying a FastAPI app on cpanel with Passenger 回答1: You might be able to run your FastAPI app using a2wsgi: In your passenger_wsgi.py : from a2wsgi import ASGIMiddleware from main import app # Import your FastAPI app. application = ASGIMiddleware(app) 回答2: Applied the python package a2wsgi for resolving the problem but it's not working. 来源: https://stackoverflow.com/questions/65114261/is-there-a-way-to-deploy-a-fastapi-app-on-cpanel

Setting up a Laravel cron job in cPanel

旧城冷巷雨未停 提交于 2021-01-03 01:31:13
问题 I have the following function: protected function schedule(Schedule $schedule) { $schedule->command('email:users')->everyMinute(); } when I run the command artisan schedule:run it sends an email but when I add the following command to the cpanel as a cron job it doesn't send any email. Cpanel suppose to email me a notification when the cron job is run but I haven't receive a single email. php /home/rain/artisan schedule:run 1>> /dev/null 2>&1 Where am I doing wrong? Also when I run the

How to solve Error 404 when deploying laravel project to Cpanel?

泪湿孤枕 提交于 2020-12-19 04:24:05
问题 I'm trying to deploy my laravel (Laravel Framework 7.28.3) to Cpanel, but got a 404 error. I uploaded my project into /public_html, modified the index.php file to point to the correct files (as below). I think there must be some mistake in the index.php file but couldn't figure it out. This is my first time asking my question (after searching for it several times), so hope that I will get the answer! require __DIR__.'/../vendor/autoload.php'; $app = require_once __DIR__.'/../bootstrap/app.php

storage:link not working on hosting cPanel

左心房为你撑大大i 提交于 2020-12-13 17:55:53
问题 So, I've created a storage link with php artisan storage:link and it's working totally fine on localhost , However when I deploy my project on a shared hosting, it does not show any images. This is my hosting directory structure: - home2/username : + other hosting folders : - MyLaravelWebSite : : + other laravel folders : : - storage : : : - app : : : : - public : : : : : -images : : : : : : * some-image.jpg : : : : * gitignore : : : + framework : : : + logs : - public_html : : + assets : : +

storage:link not working on hosting cPanel

只愿长相守 提交于 2020-12-13 17:55:47
问题 So, I've created a storage link with php artisan storage:link and it's working totally fine on localhost , However when I deploy my project on a shared hosting, it does not show any images. This is my hosting directory structure: - home2/username : + other hosting folders : - MyLaravelWebSite : : + other laravel folders : : - storage : : : - app : : : : - public : : : : : -images : : : : : : * some-image.jpg : : : : * gitignore : : : + framework : : : + logs : - public_html : : + assets : : +