I am trying to install opencart TVS on VPS server which is running Centos 7. I have used some tutorials, done everything like they said. Opencart files are uploaded into server but however install/index.php file is not found.
So I tried to upload an image to server and see if it shows or not. Nope, it does not show.
I have installed Centos Panel. Created account over there. Created database there also. The problem that I cannot see uploaded files and I think that install/index.php is not shown due to the same problem.
Apache: Apache version: Apache/2.4.39
MySQL version: 10.1.38-MariaDB
Server IP: http://141.136.44.45
File is listed in Home/USERNAME/public_html/
So as understand the file should be reached like: http://141.136.44.45/1.png (it is uploaded in Home/USERNAME/public_html/1.png
Related
I have a shared Cpanel host with the Litespeed web server. I want to deploy a Django application on it. After creating a Python application inside the Cpanel where I have not deployed the application on the host I try loading the website, and instead of displaying the Django version, I face 503 Unavailable!!
Also inside the "stderr.log" file, there is the following error.
/usr/local/lsws/fcgi-bin/lswsgi_wrapper: line 9: /opt/alt/python39/bin/lswsgi: No such file or directory
I'm creating the application with Python 3.9.
But it works when I create it with Python 3.8 and show the following message when I load the web,
It works!
Python 3.8.6
The issue is mostly caused by the lack of the Python 3.9 WSGI package. On out-of-date versions of LiteSpeed, the package needs to be installed manually.
To work around this, first ensure that LiteSpeed is up to date. LiteSpeed must be at version 5.4.10 for this to work. Once that is confirmed, execute the following script from LiteSpeed. It will pull the required Python Selector packages:
/usr/local/lsws/admin/misc/enable_ruby_python_selector.sh
Refer cpanel support
I installed Django in ubuntu server ,when I connect t my public server:8080 I got Django installed, now how to edit urls.py file or tests.py in server, should I use WinSCP or is there any graphical option to edit files in server to modify Django website
As a full Linux platform you can use any of these https://www.inmotionhosting.com/blog/ubuntu-text-editors/
I use Nano which can be run from within the folder of the file in question from the command line using
nano views.py
Assuming you're running the CLI version I suggest you edit your files from outside the Ubuntu non-graphical server and then upload those files with your preferred FTP platform afterwards.
This link also discusses the different types of editors
as well as how to find yours using $ echo $EDITOR
So I just finished deploying a django app to the internet and for some reason media files won't show up.
here's the link I followed
everything works perfectly fine but medias and the weird thing is the media does exist at the exact path it should come from but it won't show up.
try to change root to alias in your nginx setup and after service nginx restart
Using Refile gem to upload messages in my app to s3. My server is Ubuntu 16 and I am using Capistano and Nginx for deployment and server. Not sure why this error is coming up in production, but I am having trouble retrieving images in production from s3. It works fine in Dev, but in production, the images upload fine and I can see them in my s3 bucket, but they do not display when I try to retrieve them. The error message I get in the log files is:
Refile::App: Error -> ImageMagick/GraphicsMagick is not installed
I have installed imagemagick and graphicsmagick on my server but no change. Is anyone else having this issue and what could be missing?
This must solve your problem
sudo apt-get install imagemagick
if still problem exists this may work Click to go to documentation
I am brand new to web app development and thought I would try django as I am familiar with python. I followed the following guide: http://www.lennu.net/2012/05/14/django-deployement-installation-to-ubuntu-12-dot-04-server/ to deploy a django page to the letter. However, I now realize that this guide was for the server version of the OD and i'm running the desktop version. When I try to open my site in chrome (amitash.r) it fails with a page not found. Now when I open localhost, I get an internal server 500 error. All my config files are exactly as stated in the guide. Any fixes?
Can you post your mod_wsgi script and Apache VirtualHost file?
Following the instructions from the link you gave, the mod_wsgi script should be in:
/srv/my_project/app/conf/apache/django.wsgi
The VirtualHost file location from the link should be:
/etc/apache2/sites-available/DOMAIN
Make sure you enabled your site. If you named your file DOMAIN, like the instructions, you should enable the site using:
a2ensite DOMAIN