Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
From your post output it seems that your web root is not /var/www but something else. You should then look at httpd.conf configuration file installed with apache.
There are many articles on web which give setup howto.
From your post output it seems that your web root is not /var/www but something else. You should then look at httpd.conf configuration file installed with apache.
There are many articles on web which give setup howto.
Instead of 'locate' you may try using 'find /etc -name "httpd.conf".
Also see the files in /var/www/html and check whether it's empty, if so put a test html file named index.html and run http://localhost/index.html in a browser.
Instead of 'locate' you may try using 'find /etc -name "httpd.conf".
Also see the files in /var/www/html and check whether it's empty, if so put a test html file named index.html and run http://localhost/index.html in a browser.
Hi,
$ sudo find /etc -name "httpd.conf"
No printout
$ ls /var/www/html/
No printout
$ sudo cp /var/www/index.html /var/www/html/
$ ls -al /var/www/html/
Code:
total 12
drwxr-xr-x 2 root root 4096 Mar 30 18:39 .
drwxr-xr-x 6 root root 4096 Mar 30 12:40 ..
-rw-r--r-- 1 root root 177 Mar 30 18:39 index.html
if apache doesnt start type
sudo apache2ctl configtest
and see/post what it gives out
On Mint 17 (upgraded from Mint 16)
$ sudo apache2ctl configtest
Code:
Syntax OK
On Mint 16 (another working VM for comparison)
sudo apache2ctl configtest
Code:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
I couldn't resolve why /html/ folder/directory will be created after upgrading Mint 16 to Mint 17. Mint is based on Ubuntu
Earlier versions of Ubuntu/Mint had /var/www as the Document Root location and the most recent releases have changed it to /var/www/html. I have a web server on a localhost machine with Ubuntu 12.04 and the default location for the Apache files is /var/www. I also have the same set up on Ubuntu 14.04(Mint 17) and the default is /var/www/html and that is where the index.html and Server Root are.
So on the new system, either change your Document Root or move all the directories/files to /var/www/html. The configuration files on Ubuntu 14.04 for apache are in the /etc/apache2 and there is no httpd.conf file. There is an apache2.conf file in this directory. In this directory is a sites-available directory with a file named "000-default.conf" where you can set the Document Root. There is a line in the sites-enabled directory to this file also. I have no idea why they made all these changes.
So on the new system, either change your Document Root or move all the directories/files to /var/www/html. The configuration files on Ubuntu 14.04 for apache are in the /etc/apache2 and there is no httpd.conf file. There is an apache2.conf file in this directory. In this directory is a sites-available directory with a file named "000-default.conf" where you can set the Document Root. There is a line in the sites-enabled directory to this file also. I have no idea why they made all these changes.
For wordpress or phpMyAdmin you need PHP to be installed as an apache module. Additionally you have to allow the server to look for index.php, index.html, index.phtml and such as a default page to render when the directory is called. Take a look at apache2.conf. (DirectoryIndex)
For wordpress or phpMyAdmin you need PHP to be installed as an apache module. Additionally you have to allow the server to look for index.php, index.html, index.phtml and such as a default page to render when the directory is called. Take a look at apache2.conf. (DirectoryIndex)
Hi,
Thanks for your advice.
Mint 17 makes me very frustrating, having spent hours without result.
Performed following steps but still fail:-
sudo ln -s /var/www/xyz /var/www/html/xyz
$ ls -ald /var/www/html/xyz
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.