cpanel

CPanel does not allow using script to create file?

谁说胖子不能爱 提交于 2019-12-08 11:18:58
问题 I have the following function in my php file, and my script is putting on CPanel. I am sure the script has been executed, as the last print out has appeared, however my csv file does not. I have changed the permission of folder Log_report to 755, but still file cannot be created, how can I make change? I am sure the mysql script to create csv is correct, as I used the same script in my XAMPP local machine and successfully created a file in my machine before. function export($DB){

PHP script to import file in MySQL

风格不统一 提交于 2019-12-08 10:36:05
问题 I have some code in my postwwwacct script which doesn't work, it doesn't import the sql file shell_exec("cd /home/".$opts['user']."/public_html/sbans/sql/"); $command="mysql -u ".$opts['user']." -p".$opts['pass']." ".$opts['user']."_bans < data.sql"; shell_exec($command); However after account creation i can manually run in ssh cd /home/jason/public_html/sbans/sql/ mysql -u jason -pmypass jason_bans < data.sql Which then works. What is the problem with the php code in postwwwacct ? Sorry for

Setting up a laravel project on a server with cpanel

吃可爱长大的小学妹 提交于 2019-12-08 04:43:10
问题 I"m trying to set up a laravel project as the main page for this cpanel, I'll be blurring out the website name and such for privacy reasons. I've made a redirect to the directory like this When I click on the directory link, I get sent to the project but get these errors Refused to apply style from 'http://page_example.com/css/app.css?id=4513b702e5714c4239c0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. If I try and go into

Deploy a Symfony2 app on cPanel

大憨熊 提交于 2019-12-08 04:13:45
问题 I'm new to cPanel and I want to deploy my Symfony2 app on it. I need some guidance on how to do it, I downloaded the Symfony2 framework with the Softaculous Apps Installer. PS : My app is also on BitBucket. 回答1: First off all: CPanel is just a web-shell arround your linux os that makes it easy to maintain your server from distance through a web interface. Actualy you do not need softaculous because it just installs an empty new symfony project. There are globally two ways to install your

How does one go about creating a database through the cpanel/whm API?

ε祈祈猫儿з 提交于 2019-12-08 03:00:21
问题 I have the API creating an account on a dedicated server for a user fine, creating email addresses fine as well, however when I attempt to create an mysql database through the API, I get error message 'Access Denied', even though access is root. The code I am trying to use: $xmlapi = new xmlapi($host); $xmlapi->password_auth("".$root_user."","".$root_pass.""); $xmlapi->set_debug(1); $xmlapi->set_output('array'); $xmlapi->set_port('2083'); //create database $createdb = $xmlapi->api1_query(

install XML::DOM module Error

廉价感情. 提交于 2019-12-08 01:12:35
问题 i'm having loads of problem in trying to install CPAN Modules. Using the cpan.exe, I try to install a module with, for example, "install XML::DOM" but I end up hitting a wall. when the install finishes it says dmake.exe is NOT OK here is my error: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\ehsan\Documents>cpan cpan shell -- CPAN exploration and modules installation (v2.00) Enter 'h' for help. cpan> install XML::DOM Fetching

Can I Install Docker Over cPanel?

时间秒杀一切 提交于 2019-12-07 11:54:06
问题 Can I install Docker over a server with pre-installed cPanel and CentOS 7? Since I am not aware of Docker, I am not completely sure whether it will mess with cPanel or not. I already have a server with CentOS 7 and cPanel configured. I want to know if I can install Docker over this configuration I mentioned without messing up? 回答1: Yes you can install docker over cPanel/WHM just like installing it on any other CentOS server/virtual machine. Just follow these simple steps (as root): 1) yum

'Installation failed: Could not create directory.' I get this error everytime i try to download plugin in wp 4.8

做~自己de王妃 提交于 2019-12-07 10:14:19
问题 I am getting error accessing my admin panel. The error is due to plugin. I fixed the issue by renaming the plugin folder from cpanel and changed it back. Since then,i couldn't download any plugins and get the error Installation failed: Could not create directory. 回答1: You need to set permission on plugin folder/directory, now the user does not have permission to create folder/directory in plugin folder/directory. You need to set permission on wp-content and all inside folder/directory to 755.

Host Primary Domain from a subfolder

岁酱吖の 提交于 2019-12-07 09:18:13
问题 I am having a problem making a sub directory act as the public_html for my main domain, and getting a solution that works with that domains sub directories too. Background My hosting allows me to host multiple sites, which are all working great. I have set up a subfolder under my ~/public_html/ directory called /domains/ , where I create a folder for each separate website. The folder structure on my server looks something like this: public_html domains websiteone websitetwo websitethree ...

PhalconPHP Database transactions fail on server

ぃ、小莉子 提交于 2019-12-06 20:26:15
问题 I have developed a website using PhalconPHP. the website works perfectly fine on my local computer with the following specifications: PHP Version 7.0.22 Apache/2.4.18 PhalconPHP 3.3.1 and also on my previous Server (with DirectAdmin): PHP Version 5.6.26 Apache 2 PhalconPHP 3.0.1 But recently I have migrated to a new VPS. with cPanel: CENTOS 7.4 vmware [server] cPanel v68.0.30 PHP Version 5.6.34 (multiple versions available, this one selected by myself) PhalconPHP 3.2.2 On the new VPS my