Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
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.
Here's what I did:
installed. Debian 7.0.4 - No desktop. Web Server and mysql-server.
Code:
apache2 -version | head -1 && cat /var/www/index.html
Server version: Apache/2.2.22 (Debian)
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
cd /var/www
wget http://wordpress.org/latest.tar.gz
tar ztf latest.tar.gz
shows:
wordpress/ as the directory prefix, soooooooooooooooo....wishing to be of further help, I untar'd it and moved everything up one directory to /var/www and re-edited /etc/apache2/sites-enabled/000-default using:
I solved it. Maybe not the most elegant solution but I just had to remove the index.html file in /var/www and restart apache. Now apache is looking at the index.php which is my wordpress site. I didn't actually remove the .html , just renamed. Thanks for all the help here, forced me to read up on some more stuff I didn't know about and learn.
Here's what I did:
installed. Debian 7.0.4 - No desktop. Web Server and mysql-server.
Code:
apache2 -version | head -1 && cat /var/www/index.html
Server version: Apache/2.2.22 (Debian)
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
cd /var/www
wget http://wordpress.org/latest.tar.gz
tar ztf latest.tar.gz
shows:
wordpress/ as the directory prefix, soooooooooooooooo....wishing to be of further help, I untar'd it and moved everything up one directory to /var/www and re-edited /etc/apache2/sites-enabled/000-default using:
Thanks! That is helpfull as that is probably more elegant than my solution. It all will help when I eventually want to host two sites on the same server, which I will want to do
I solved it. ... I just had to remove the index.html file in /var/www and restart apache. Now apache is looking at the index.php which is my wordpress site. I didn't actually remove the .html , just renamed.
Great.
3 ways to correct this issue:
rename or remove /var/www/index.html or an explicit DirectoryIndex directive (that's my personal preference)
I decided to blow way this server and rebuild it with Debian 7 since that is what I'm running on my home server.
I installed and configured lamp, owncloud and wordpress and I'm at the same place. Wordpress works fine in the admin dashboard but when I got to my domain I get "it works"
To be fair, it was a waste of time, but not so much mine as yours.
Re-installing an OS to "fix" or correct a trivial issue such as this is never an answer.
DocumentRoot was not the issue as was the DirectoryIndex directive apparently has an order of precedence.
20 years and I'm still learning.
Sorry about the 'tude'.
I didn't actually remove the .html , just renamed.
I think that is wise. If something happens and your WordPress has a bad day, it's handy to have an index page you can quickly edit appropriately, rename, and put into play while you go troubleshooting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.