cpanel

Has anyone come across this php error before, Warning: imagejpeg()?

匆匆过客 提交于 2019-12-02 10:16:41
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/SITENAME/public_html/files/cache/052f225905c1618003df0c5088aec7a9.jpg' for writing: Permission denied in /home/SITENAME/public_html/concrete/helpers/image.php on line 172 I emptied the cache directory and still no luck, and if I change the permissions on the cache folder then I get another error and I can't use the site at all: Warning: require_once(Zend/Cache/Backend/File.php) [function.require-once]: failed to open stream: No such file or directory in /home/MYACCOUNT/public_html/concrete/libraries/3rdparty/Zend/Cache.php on

htaccess redirect old links to new domain

拜拜、爱过 提交于 2019-12-02 08:57:21
I changed my site domain, and want to redirect old urls to new domain (note: instead of numbers 93, 54 maybe any digit number exists) the old urls are: http://olddomain.com/ http://olddomain.com/45 http://olddomain.com/p/93 the new urls are: http://newdomain.com/ http://newdomain.com/45 http://newdomain.com/p/93 I tried this at htaccess: RewriteEngine on RewriteCond %{REQUEST_URI} RewriteRule http://newdomain.com/ RewriteCond %{REQUEST_URI} (\d+)/ RewriteRule (\d+)/ http://newdomain.com/$1 RewriteCond %{REQUEST_URI} p/(\d+)/ RewriteRule p/(\d+)/ http://newdomain.com/p/$1 but not worked :( In

How to deploy war files into cPanel and remove the project name?

a 夏天 提交于 2019-12-02 05:36:35
I need to run my Java application on cPanel . I have successfully installed Tomcat, I can run my application by copying war file into my www folder but the problem is that it shows the Project name ( war file name) in the address, I need to know how to remove that, so users can access www.example.com rather than www.example.com/MyProject/index.jsp ? According to one cpanel hosting service command prompt access is generally turned off for cpanel for security reasons and you have to ask for it specifically. If you have this access you can login and run the unzip command (after uploading the war

How to turn off php safe_mode off for a particular directory in a shared hosting environment?

落花浮王杯 提交于 2019-12-02 01:31:52
Hi I'm used shared hosting. I want to turn off php safe_mode off for my site. My provider gave me a php.ini file and asked me to put it with my settings in my public_html folder to override the settings, but it didn't work. You can also try to create a file called php.ini in the root (public_html or other) folder, and putting the following in it: safe_mode = Off Depending on server settings, this may or may not work. Your service provider might have forgot to tell you that you need to enable your user defined php.ini configuration by adding this line in the .htaccess file that you find in your

Using Perl modules vs. using system() calls

有些话、适合烂在心里 提交于 2019-12-01 21:15:35
问题 Quite recently, I wrote a few scripts in Perl for a cPanel plugin in which, though most of the code was in Perl, there was quite a lot of system() commands as well which I used to execute shell commands directly. I am pretty sure that there are Perl modules that I could have used instead. Keeping in mind the time crunch, I thought using the system command was easier (to complete the project in time). In retrospective, I think that was a bad programming practice. My question is, is there any

how to change context path of tomcat?

喜你入骨 提交于 2019-12-01 14:11:40
In netbeans I can right click on project name, select properties > run > and change the context path, how can I change the context path of the tomcat on my server which is accessible using cPanel? Add root.xml file in $CATALINA_BASE/conf/[enginename]/[hostname]/ and add this as : <Context docBase="/opt/mywebapps/<yourApp>" path="" reloadable="true" /> For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html 来源: https://stackoverflow.com/questions/16454841/how-to-change-context-path-of-tomcat

how to change context path of tomcat?

巧了我就是萌 提交于 2019-12-01 11:27:30
问题 In netbeans I can right click on project name, select properties > run > and change the context path, how can I change the context path of the tomcat on my server which is accessible using cPanel? 回答1: Add root.xml file in $CATALINA_BASE/conf/[enginename]/[hostname]/ and add this as : <Context docBase="/opt/mywebapps/<yourApp>" path="" reloadable="true" /> For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html 来源: https:

Installing PDO_MYSQL PHP extension on CPanel?

a 夏天 提交于 2019-12-01 08:06:11
问题 I recieved this error while installing Magento on a customer's server, 'PHP Extension "pdo_mysql" must be loaded'. How would one go about installing/enabling this extension through CPanel Accelerated? Server information is as follows: cPanel Version 11.24.5-STABLE cPanel Build 38506 Apache version 2.2.13 (Unix) PHP version 5.2.8 MySQL version 5.0.81-community Architecture i686 Operating system Linux Kernel version 2.6.18-128.1.6.el5 cPanel Pro 1.0 (RC1) Thanks! 回答1: You can enable PDO in

Where to start with running a command line in PHP with CPanel hosting

不打扰是莪最后的温柔 提交于 2019-12-01 03:56:50
I'm having a look at some PayPal scripts/code examples and a lot of them need a php script running via the command line. I've never had to run anything from a command line in PHP before so don't know where to start at all. I don't know if I'm using the correct search terms as Google hasn't helped me answer. Do I need to use a different application or is there something in cPanel I can use? I get this error: INSTALLATION ERROR: Please cd to the /home/site_name/public_html/site and run install.php Use SSH to access the server via the terminal: http://docs.cpanel.net/twiki/bin/view/11_30

Where to start with running a command line in PHP with CPanel hosting

南楼画角 提交于 2019-12-01 00:59:22
问题 I'm having a look at some PayPal scripts/code examples and a lot of them need a php script running via the command line. I've never had to run anything from a command line in PHP before so don't know where to start at all. I don't know if I'm using the correct search terms as Google hasn't helped me answer. Do I need to use a different application or is there something in cPanel I can use? I get this error: INSTALLATION ERROR: Please cd to the /home/site_name/public_html/site and run install