I'm using linux mint and I'm install Apache web server. When I'm testing him in web browser I can see
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 if I'm trying to added one more html docs in the htdocs directory. I;m restart the server, but I have an 404 error:
Not Found
The requested URL /test.html was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
Now I'm open index.html which located in htdocs just after installation the server. It contains the following:
<html><body><h1>It works!</h1></body></html>
Now I'm trying to change it, but there is no effect when I'm trying to view it in browser http://localhost/index.html.
Question: What is a possible reason of this trouble?
DocumentRoot for apache2 on Linux Mint is /var/www/.
To change the default message, edit /var/www/index.html.
Put new files in /var/www/
You don't need to restart apache after updating or adding files, changes are seen immediately.
Related
I have a website on my locally hosted XAMMP server (Windows). I need to transfer this over to 123Reg.
The XAMPP server runs: PHP 7.3.2 and MySQL 5.5.5; and the 123Reg server runs:PHP 7.2.16 and MySQL 5.5.5
I have tried using Duplicator. It works however I cannot access the Wordpress backend (wp-admin) using any admin credentials or make a new one in the Duplicator wizard and via the database (it would just say 'Sorry, you can't access this page', and yes, I have tried deleting plugins and editing the .htaccess file with no luck). I have tried a manual migration (export and restore files and database) as well with the same issue as the duplicator one.
Currently, I have installed a new version of Wordpress on the 123Reg server can copied the wp-content directory from the XAMPP server to the 123Reg one. However, this is not enough. I need the whole site (including pages), cloned so they look exactly as they are on the XAMPP server on the 123Reg server.
I was expecting it to transfer the site without errors as the site is fine on my XAMMP server, but it's not.
Am I doing something wrong? I am not sure of what to do now so I would appreciate any sort of help.
I'm trying to run polymer on a local machine with XAMPP but, it seems like it can't run it,
It shows nothing ,but when I inspect console on the page in browser , it's giving this error :
Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///C:/Users/Home/Desktop/polymer/iron-component-page/iron-component-page.html
I'm using XAMMP on windows (Apache port : 80)
Move your project into the XAMMP htdocs folder and you will able to use it from the http://localhost/myproject address. The file:// protocol is not for the web.
If you polyserve it then the url should be: http://localhost:8080/ or any port what you defined with -p.
I have a EC2 with apache2 and static web site in /var/www/html.
I changed one html file there and after that I can't access my web page with url - Amazon Linux AMI Test Page opens.
After sudo service apache2 restartit becomes to work normally, but switched to the Amazon Linux AMI Test Page after some minutes.
I changed owner for html folder to user sudo chown ubuntu /html and it became works normally again, but every time I exit from ssh session it immediately starts to display Amazon test page.
I checked apache2 Document root in .conf and +r rights for files in html folder, they are normal. Why this issue happens?
Sometimes all pages working normally, but index.html returns 404 error
It looks like there are two elastic IPs assigned for the site. One of them is not working, while the other one works. EC2 is randomly picking one of the IPs (I found this after doing a wget request)
You will have to remove the one IP that is not related to your site.
I'm trying to upload a file using Flex to an Ubuntu server running asterisk. The server-side upload code looks correct; when I test it locally it successfully uploads the file to the server.
When I deploy the solution to our main server it doesn't upload the file. Debug mode shows an error: crossdomain.xml could not be found.
I have a crossdomain file, but I don't know where to put it. The main server is at 192.168.1.143, and the Ubuntu server is at 192.168.1.137.
After some reading I found it should be accessed from 192.168.1.137:8088/crossdomain.xml.
Where do I need to put the crossdomain.xml file on the Ubuntu server?
The crossdomain.xml file will be search on your webserver main page, which is on port 80 of the server you're trying to connect.
If you're using Apache, lighttpd, or others, and don't use a VirtualHost, chances are your must put your file at /var/www/crossdomain.xml.
You must be able to access it using http://192.168.1.137/crossdomain.xml, without any port indication.
I am running an apache server on computer A. I use computer B with ubuntu desktop and A lamp server to develop code because it's more portable. I use ftp to put html files on computer A and they can be opened by connecting to computer A's ip via the browser, all simple enough. Now I would like via a link on my default page index.html to be redirected to an html file stored in a shared folder on computer B. Is such a thing possible and if so how can I make apache render the html page at such a location as smb://<network location>/var/www?
mkdir /var/www/remote # assuming your current document root is /var/www/
mount smb://network.host/var/www /var/www/remote/
Once you have it working you can edit /etc/fstab to make it permanent, or script step 2.
This will keep your current local server working, and allow you to access the remote path at http://127.0.0.1/remote/