cpanel

How to run artisan command schedule:run on hosting server? (Laravel)

只谈情不闲聊 提交于 2019-11-29 03:19:43
I have statusUpdate.php file in the xampp\htdocs\project\app\Console\Commands folder. statusUpdate.php : <?php namespace App\Console\Commands; use Illuminate\Console\Command; use DB; class statusUpdate extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'status:update'; /** * The console command description. * * @var string */ protected $description = 'Update Job status daily'; /** * Create a new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * Execute the console command. * *

how to install django on cpanel [closed]

[亡魂溺海] 提交于 2019-11-29 00:22:30
What directory do I need to put the files in? I tried public_html but when I put the files there and clicked on setup.py, it didn't start the script. It's probably not the best thing to run Django application on cPanel (shared hosting) because of the following: Most shared hosting providers do not allow you to install custom libraries which need to be compiled. You can still however create virtualenv and pip install packages into as long as they do not require anything to be compiled (e.g. Django) Performance. In my experience it is possible to deploy a simple Django application on shared

How to increase Maximum Upload size in cPanel?

邮差的信 提交于 2019-11-28 21:22:52
I am using cPanel of my website to increase maximum upload file size for wordpress media uploads. I have used the codes(found out from google) for this purpose wp-config.php, .htaccess but nothing is working. In my cPanel, there is no service for php configuration editor under software / services section or anywhere else. Please help what should I do? My .htaccess shows this code: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule

Subdomains leading to Codeigniter Controllers?

ぐ巨炮叔叔 提交于 2019-11-28 17:04:19
This seems like a common request, but I haven't been able to find definitive instructions on doing something like this. I'd like a subdomain to trigger a certain controller on my CI installation. For example: students.mysite.com : would open mysite.com/students (technically: mysite.com/index.php/students . controller: students ) teachers.mysite.com : would open mysite.com/teachers While preserving the subdomain when traversing deeper. For example: students.mysite.com/help : would open mysite.com/students/help ( controller : students() , method : help() ) students.mysite.com/help/contact :

disk space is full by `vda` files, how to clear them?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 12:01:38
问题 So I have a VPS and it has whm / cpanel installed. For some reason its giving an error when ever I login to cpanel or visit a site on my server which says the disk space is full. When i check the desk space in WHM it says /dev/vda3 is 100% full. I don't know how to track that folder or what files i need to delete. Also on SSH it says root@server [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda3 48G 47G 0 100% / tmpfs 939M 0 939M 0% /dev/shm /dev/vda1 485M 112M 348M 25% /boot

Cron jobs in codeigniter

有些话、适合烂在心里 提交于 2019-11-28 10:22:22
I am trying to do a cron job with a site built in CodeIgniter - I've got access to the CPanel cron feature can anyone suggest the best way to setup a cron job using CPanel? I am using CodIgniter so cannot be sure how to call a controller within a cron job? E.g http://admin.com/sites/publish/ How would I access this publish function within the sites controllers using a cron job? Best way is to call from the command line in the cron job... php /path/to/index.php controller >> /dev/null You can run controllers via the command line in CI, see here . For me the easier way of doing this is using

How to install MySQLi on a cPanel-managed server?

China☆狼群 提交于 2019-11-28 10:13:20
问题 I have an existing web application that was written over the past few years. I chose mysqli as the method for accessing a MySQL database. That works fine. My problem is that I'm deploying to a 3rd party web host server - WHM/cPanel - and I cannot find a way to get mysqli installed on this server. I've tried too many things to list here - including everything I could find on this site. This server uses yum. It has PHP5.4 - MySQL 5.5 When I run phpinfo on it there is a MySQL section but no

CodeIgniter + Command Line + Cron + Cpanel

懵懂的女人 提交于 2019-11-28 09:51:27
SOLVED: Crap... why is it always you figure something out right AFTER you finally decided to ask for help!! If anyone else is having this problem, try running from /usr/local/bin/php instead of /usr/bin/php to get codeigniter to pick up on the URI segments. QUESTION I have the latest installation of codeigniter and everything seems to be working fine locally. I recently put my files on my server and everything except my cron command is working. When I try to call a controller through cron (as described here: http://codeigniter.com/user_guide/general/cli.html ), I am not getting the controller.

Cannot make remote connection with PyMySQL (pymysql.err.InternalError: Packet sequence number wrong)

放肆的年华 提交于 2019-11-28 06:45:00
问题 update: Problem solved, solution posted below I am new to the process of making remote database connections, but it seems that there tends not to be an obvious solution for this error. pymysql.err.InternalError: Packet sequence number wrong - got 80 expected 0 arises when attempting to make the following pymysql connection I'm running MacOS 10.12.5, Python 2.7.10 in PyCharm (also tried with Terminal), and PyMySQL 0.7.11 (also tried 0.7.9) update : also tried on Windows 10, Python 2.7.13 with

onchange file input change img src and change image color

故事扮演 提交于 2019-11-28 06:22:59
onchange event is not working. What am I supposed to do to get result on same page. I dont want to redirect to any other page to upload image. Is this issue is because of opencart? I dont know if it is correct to write like this in cpanel. I am using opencart and cpanel. Is there any other way? HTML <input type='file' id="upload" onchange="readURL(this.value)" /> <img id="img" src="#" alt="your image" /> script function readURL(input) { var url = input.value; var ext = url.substring(url.lastIndexOf('.') + 1).toLowerCase(); if (input.files && input.files[0]&& (ext == "gif" || ext == "png" ||