cpanel

Connect MySQL database with node JavaScript application

ε祈祈猫儿з 提交于 2020-04-30 06:26:21
问题 I make a node JavaScript app and deploy it on cPanel using SSH. App is working fine without database but when I connect the app with database on cPanel (GoDaddy) it takes times and shows the message "Error establishing a database connection". My connection code const mysql = require('mysql'); const express = require('express'); const app = express(); var pool = mysql.createConnection({ host: 'localhost', user: '<MY_USER_NAME>', password: '<MY_PASSWORD>', database: '<DB_NAME>' }); pool.connect

Connect MySQL database with node JavaScript application

被刻印的时光 ゝ 提交于 2020-04-30 06:26:10
问题 I make a node JavaScript app and deploy it on cPanel using SSH. App is working fine without database but when I connect the app with database on cPanel (GoDaddy) it takes times and shows the message "Error establishing a database connection". My connection code const mysql = require('mysql'); const express = require('express'); const app = express(); var pool = mysql.createConnection({ host: 'localhost', user: '<MY_USER_NAME>', password: '<MY_PASSWORD>', database: '<DB_NAME>' }); pool.connect

Access from cPanel to phpMyAdmin with 'Welcome to phpMyAdmin' screen

无人久伴 提交于 2020-02-08 06:31:03
问题 When I access from cPanel and click on phpMyAdmin, it pops up a blank page with the line "Welcome to phpMyAdmin" and i try to refresh many times but still the same phpMyAdmin blank page Has anyone encountered this error? 回答1: After a few hours of research, I found a solution to fix the blank page in this case. In your WHM (cPanel), visit: SQL Services -> Manage MySQL® Profiles -> and in the "Actions" column, click on "Validate" and the problem will be resolved. Validate MySQL profile to fix

Access from cPanel to phpMyAdmin with 'Welcome to phpMyAdmin' screen

烈酒焚心 提交于 2020-02-08 06:29:28
问题 When I access from cPanel and click on phpMyAdmin, it pops up a blank page with the line "Welcome to phpMyAdmin" and i try to refresh many times but still the same phpMyAdmin blank page Has anyone encountered this error? 回答1: After a few hours of research, I found a solution to fix the blank page in this case. In your WHM (cPanel), visit: SQL Services -> Manage MySQL® Profiles -> and in the "Actions" column, click on "Validate" and the problem will be resolved. Validate MySQL profile to fix

Setup Laravel project on cPanel

孤者浪人 提交于 2020-02-06 08:03:46
问题 I'm trying to set up a laravel project as a subdomain on cpanel but I'm getting parsing issues, and an error. These are the steps I've done so far zip the project and upload it to this directory public_html/encuestas unzip and move contents to the directory above get ssh access with PuTTY and cd into the directory do this command in PuTTY composer install --ignore-platform-reqs I've also done it all through the PuTTY, cloned the repository from bitbucket with the same results. After the

Move laravel project to new server

北城以北 提交于 2020-02-05 13:55:35
问题 I have an existing laravel (v4) project in one server. Now I want to upload it to a new server. Can anyone explain the steps how to do this? I am very new in Laravel. This is what I have done so far: I have downloaded all the files to my machine and then uploaded to my new cPanel server. Created mysql database and imported tables. 回答1: Follow the following steps: Create a new database from phpmyadmin of your new cpanel Import your previous database to the new database In app/config/database

Move laravel project to new server

橙三吉。 提交于 2020-02-05 13:53:46
问题 I have an existing laravel (v4) project in one server. Now I want to upload it to a new server. Can anyone explain the steps how to do this? I am very new in Laravel. This is what I have done so far: I have downloaded all the files to my machine and then uploaded to my new cPanel server. Created mysql database and imported tables. 回答1: Follow the following steps: Create a new database from phpmyadmin of your new cpanel Import your previous database to the new database In app/config/database

How to deploy a nextjs application on cpanel?

坚强是说给别人听的谎言 提交于 2020-02-05 05:40:27
问题 I followed these steps to deploy my nextjs on cPanel. go to package.json and add this line: "homepage": "http://afsanefadaei.ir" run next build to have .next folder as my build folder go to cpanel >> file manager >> public_html folder and upload the contetn of .next folder to this directory add or edit this file: .htaccess to: but when I go to the website I face this: Do you know what is wrong with this? 回答1: Your .next doesn't have index.html file. Seems like you have server side (mostly

How to access the php.ini from my CPanel?

瘦欲@ 提交于 2020-02-01 15:27:09
问题 I want to change the limit of the php POST array from 1000 to 6000 . Is there any way to do that ? i search about that and i found that i should change some variables in php.ini but the problem is that i did not find the directory of the file in my cpanel : Your server's php.ini file is located at /usr/local/lib/php.ini. This line is from the CPanel documentation but i could not find this directory in my cpanel even after i show the hidden files???? can anybody help me locating this file? 回答1

Can't get iOS push notification on server

六眼飞鱼酱① 提交于 2020-01-25 10:30:09
问题 This is a screenshot of file manager on my shared server. I will use ApnsPHP to send push notifications, but I am beginner in web developing. so, sorry for my questions. Where Can upload ApnsPHP files, so only iOS app can use it. And what is the URL that will be used in the app? Where can upload xxx.pem file, so it can't be downloaded by others. And what is its URL that will be used in other php files? How to run xxxx.php in background on shared server, because there is some file of ApnsPHP