Wheres the default folder in Bitnami LAMP? The server is running but I dont know where to put my html files? I mean in comparison with XAMPP and WAMP, the default is you put it on xampp/htdocs/ or wamp/www/.
I've tried using the /opt/bitnami/apache2/htdocs/ and it works but I don't know if thats the default folder to put my website files in LAMP.
Yes, that is the default folder for your HTML or PHP files. You can also add applications on top of Bitnami LAMP and they will be installed at /opt/bitnami/apps/ folder.
HTML and php files, Bitnami on Google Cloud Platform server are in
/opt/bitnami/apache/htdocs
Config file httpd.conf in
/opt/bitnami/apache/conf
HTML and program files on my AWS Bitnami server are in:
/home/bitnami/apps/wordpress/htdocs
Config file httpd.conf it's in:
/opt/bitnami/apache/conf
Related
All I can find on internet is how to remove in linux using /etc/httpd/conf.d/welcome.conf. I am using apache on windows and I can't find any way to remove it on windows.
Remove index.html from htdocs directory. If you installed apache on C:\Apache then index.html location will be c:\Apache\htdocs\index.html
My local Apache server doesn't run my php file, instead the web browser downloads it when I try to view it. I'm using LAMP on Ubuntu. Would you help me how I can solve this problem? Thank!
Did you tell LAMP to handle .php files with the php5_module?
Check your current php setting by creating a new php file in the htdocs or www direectory with the following content:
<?php phpinfo(); ?>
This will show you if your webserver can process php files or not
Maybe it is not a right channel to ask this question but I donot know where to ask.
I want to know how to run html file with apache on my ubuntu. I have written program with javascript and a html file and I want to run it via apache. I could not find htdocs folder in to copy my files there beside that I do not have permission to do that in ubuntu. My apache is installed in /usr/share/apache2.
When I write http://localhost it says:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
but I do not know where to add the contents.
any help.
The default folder that it serves the HTML files from is /var/www.
For example, /var/www/test.html would be http://localhost/test.html.
In my case where I have installed and running the Apache 2 and if I type localhost/ into the browser it opens the Apache 2 Ubuntu default Page.
Now what I did was:
Suppose your HTML webpage Demo.html is located in the Website directory then copy the HTML page using one of the commands:
:~$ cp ~/Website/Demo.html /var/www/html
If this command does not work then try with the following command:
:~$ sudo cp ~/Website/Demo.html /var/www/html
And then open your browser and type this the browser search bar:
localhost/Demo.html
It will open the copied Demo.html.
Also if you want to access this hosted webpage from the outside of the machine where Apache 2 is running then use it's external IP address instead of localhost as follows:
ExternalIP/Demo.html
I have an Bitnami Redmine installation on my windows. I access my redmine at http://xxx.xxx.xxx.xxx/redmine. this works well.
Now I want to change the port so that I can access http://xxx.xxx.xxx.xxx:8060/redmine
But when I change my httpd.conf file from my Apache I can't find the redmine homepage.
Did I miss something or does somebody has a solution for this issue?
Are you running under bitnami? if so, there's an extra step of updating this file:
apache2\conf\bitnami\bitnami.conf
maybe this will help you (see item 8) http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
...
8. Assuming that we will be hosting Redmine under http://localhost/redmine
Edit C:\webserver\Redmine\config\environment.rb file to configure Redmine to work as a sub-URI (Apache configuration is also required and is listed later on in this document).
add the following line at the bottom of the file:
Redmine::Utils::relative_url_root = "/redmine"
My friend introduce me Linode and register.com, so I am playing with it now. I already get a domain name, while on my Linode server I am trying to set up a basic webpage so I can start to use it for my personal website. I'm following http://library.linode.com/hosting-website#sph_web-server to set up.
Here's the question, I made a testsite folder on my linode server, and a /etc/apache2/sites-available/testsite file which can be called at sudo a2ensite testsite command. (All of these are part of the tutorial.) But when I wish to switch the content for that website, I created a testsite1 and a /etc/apache2/sites-available/testsite1, then I do sudo a2ensite testsite1, but I don't know how to let the apache read the content from my testsite1 folder instead of testsite folder. The way I did that is I try sudo a2dissite testsite, so then the content in testsite1 can be read. But I hope there is better way to do that. Also I've heard apache2 can handle multiple server at the same time. How to assign which server load which folder on my linux machine? (For example, if I have abc.net and efg.net, I already link both of them to my linode server, how can I let abc.net go to read the abc folder in my linux server, while the efg.net load my efg folder?) Thanks.
You need to edit the httpd.conf file usually found in /etc/apache2/conf. Then edit the httpd.conf file and look for "Document Root" setting in this file. Change it to /etc/apache2/sites-available/testsite1 and then restart apache: /etc/init.d/apache2 restart