Can't access htdocs with static IP address from browser - joomla

I created a Joomla instance using Lightsail. Using FileZilla I transferred my html files in /opt/bitnami/apache2/htdocs.
However when I enter my static IP address in my browser I always end up on this home page.
And if I try to redirect towards a file in my htdoc I end up on this one.
What am I doing wrong?

FIXED:
So it appears the directory I was using wasn't the right one.
You need to use: /opt/bitnami/apps/joomla/htdocs.

Related

Jomsocial transfer from one server to another

I am trying to transfer my website with jomsocial from one server to another.
www.iremember.gr
Previous server steps:
Backup all the files from public_html folder.
Backup the DB from php my admin.
New server steps:
Install joomla, entered the prefix in DB of the previous DB prefix.
Deleted all files from public html and extract the backup from the previous server.
Export the DB from the previous server, to the new one.
Changed the configuration.php file with the new user/dbname/password.
Now when i try to enter the new server at this IP address
93.174.121.23/~niremco/
and i login ok.
It loads the main page
but when i try to enter a profile i get a 404 Error.
Although when i try to see the profile
http://93.174.121.23/~niremco/index.php?option=com_community&view=profile&userid=109
i can see it.
But not from the correct link that i had in the previous server
http://93.174.121.23/~niremco/team-iremember/profile
Any idea why this happens?
You probably haven't copied the .htaccess file from the old website, you will need to copy it from the old Joomla website to the new one. This typically happens because the .htaccess file is considered to be a hidden file and as such does not get copied over automatically.
First of all, installing a clean Joomla first is totally unnecessary. As for why you are getting the 404 error pages, this is because you probably have URL rewrite enabled in global configuration, while there is not a proper .htaccess file sitting in your new server.
With proper I mean either no .htaccess at all, or one that was setup for your old hosting. I rather tend to think the second.
To test that your moved correctly your site, disable url rewrite from global configuration.
If you would want to test with url rewrites enabled, then I would suggest to edit the hosts file in your computer and point your domain to the ip address of the new server.
Google Search: How to edit my hosts file - choose the resource for your OS.

SFTP Login Success - 404 Error In Browser

This is my first time working with SFTP. I'm used to using a cPanel with a hosting company (like JustHost or GoDaddy, etc.).
I'm able to log in to my SFTP server through FileZilla and I'm able to upload files onto the server but when I go to visit the page on my web browser, it gives me a 404 error. For example, let's say my IP address for the server is:
123.45.67.89
I have the logins and I use them in FileZilla and put files in. And then I want to navigate to a file (in this case I'll use the phpMyAdmin directory I've created since that's what I'm trying). In the browser I write:
123.45.67.89/phpMyAdmin/setup/
This directory exists and has an index.php file in it but when I try to go to it, the browser gives me a 404 error. Am I missing a step here? Do I need to somehow work the login credentials into the URL? I've tried other paths too and they don't work either.
Thanks for your help!
EDIT
I just realized that with SFTP, the browser uses the information that's in the /var/www/html/ folder to display. I can navigate to those directories by just simply typing the directory name in. I suppose my question now is how do I get to the root directory in my web browser. Using just the 123.45.67.89/ defaults to the /var/www/html/ folder...
Which web server do you use? If it's Apache you should learn about apache virtual hosts and modify the apache configuration file (usually on /etc/apache2).
See here for more details.

codeigniter accessing through IP address in subfolder

I have a backoffice module in codeigniter. ive uploaded it to a.setver.into backoffice/ folder. the server can be accessed only by IP address like http:// IP ADDRESS /~user/backoffice/ but its not working.
ive uploaded it onto another server which can be accesses like www.domainname.com/backoffice/ and it works fine there.
i have to make it work on the first server without editing the hosts file.
i guess there must be a problem with segments order in the urls.
I opened the error log which sais file not found usr/local/apache/htdocs/home .
the home is the default controller.
the config bse url is set fine.

TinyMCE NetAdvImage virtual path

I am trying to have a virtual directory outside of the my web where I upload files via TinyMCE for company marketing data, etc... For images, I'm using the netadvimage image uploader.
To set this up, I removed the physical directory /content/images/upload and created a virtual directory "uploaded" under /content/images/ in IIS7.
When the image uploader/selector comes up, it appends the physical path to the file name. The window will come up with broken links and have something like this for the image. src="https://dev.mysite.comC:/MyUploaded/myimages/1-200X200.jpeg"
C:/MyUploaded is where my virtual directory exists. Since that is the case, it puts that instead of /content/images/uploaded (the virtual directory path)
Is there a way to tell it to use the virtual path instead of the physical path?
The site is hosted in IIS 7 and is using Microsoft MVC3/c#.
Thanks in advance. This has me stumped.
Looks like that plugin uses valums ajax uploader. You need to specify your path like so:
endpoint: '/upload/endpoint' OR try: '../../upload/endpoint'

Redirecting user to a folder but show another domain

I am using htaccess to redirect people from a domain that is registered on my host to a folder. Ex: the user type www.my2nddomain.com and I redirect them to www.my1stdomain.com/folder. But I wanted to show the domain the user typed instead of the address with the folder on it. How do I do it? Thanks in advance!
If the folder is on the same machine then you can just point them to the folder on the filesystem and omit the R flag. If the folder is on a completely different machine then you'll need to make sure mod_proxy is enabled and use the P flag.

Resources