• I am running the current Ubuntu server (8.04) with Xampp. When I go to my webpage I always get the Xampp page.

    Xampp is being read from: /opt/lampp/htdocs

    I have loaded WordPress at: /var/www/wordpress

    I have gone into /opt/lampp/htdocs/index.html and changed the:
    <meta http-equiv=”refresh” content=”0;url=/xampp/”>
    to:
    <meta http-equiv=”refresh” content=”0;url=/var/www/wordpress/”>
    and also to:
    <meta http-equiv=”refresh” content=”0;url=./var/www/wordpress/”>
    It always redirects to the default Xampp page.

    How do I get WordPress to come up as the default webpage? I really do not want it to show as “www.abc.com/wordpress/”. I want it to show as “www.abc.com”. However, showing up either way would be a major improvement at this time.

    Thanks for your help!
    regulusrigel

Viewing 10 replies - 1 through 10 (of 10 total)
  • I really do not want it to show as “www.abc.com/wordpress/”. I want it to show as “www.abc.com”.

    Then start reading the documentation!
    Giving_WordPress_Its_Own_Directory

    Thread Starter regulusrigel

    (@regulusrigel)

    Moshu,

    Thank you for responding so quickly!

    That documentation assumes that you are able to access WordPress Administration. I apologize for actually putting two issues into the above question.

    The initial issue is not being able to see wordpress at all! I cannot figure out how to get Xampp to point to /var/www/wordpress. I am running Ubuntu Server which means all HTTP access is from another computer. I cannot test via “localhost”. I did try installing Ubuntu Desktop at one point and it would not redirect to /var/www/wordpress either.

    I have been pouring over the Ubuntu, Xampp and WordPress documentation and forums for two weeks (about 30 hours) and cannot find how to do this. I do appreciate you showing me the above document for the second part of the question. Again I apologize for actually having two in the question.

    Regulusrigel

    Well, I know nothing about setting up and managing servers… therefore I leave it to professionals.

    I have local XAMPP for working on my themes and other customizations but that’s stricly local.

    I have never used anything but the available LAMP installation with Ubuntu server, but either way, it sounds like you may want to take a look at the httpd.conf file. I don’t know how the xampp installation has affected your setup, but Apache2 in Ubuntu uses configuration files normally found in /etc/apache2/sites-available/ and /etc/apache2/sites-enabled/, which seems to be just an extra layer of abstraction using simlinks. In any case, you may need to adjust the default website directory path to your actual install path. If the path to serve htdocs for the default enabled server is /var/www/, you will have to change it to reflect your actual path. …ie /var/www/wordpress/. ..or to whatever path defined by the “XAMPP” installation.

    Someone chime in and kick me if I’m off base please. I haven’t set up a Ubuntu server in a while… plus, I don’t know crap about that xampp. Ubuntu LAMP server install has always performed well for me right out of the box. Best wishes.

    …or just install WordPress in the default directory.

    Thread Starter regulusrigel

    (@regulusrigel)

    Thank you for responding again moshu. Thank you for helping where you could.

    I believe that Xampp places their httpd.conf file under /opt/lampp/etc/

    I have gone into that document and replaced:
    DocumentRoot “/opt/lampp/htdocs”
    with
    DocumentRoot “/var/www/wordpress”

    It is still going to the Xampp default. So I also changed:
    <Directory “/opt/lampp/htdocs”>
    to
    <Directory “/var/www/wordpress”>

    Which also has made no change.

    Any other ideas? Am I even close?

    Regulusrigel

    Thread Starter regulusrigel

    (@regulusrigel)

    By the way, thanks for the tip ClaytonJames!

    Regulusrigel

    Thread Starter regulusrigel

    (@regulusrigel)

    I have also checked with the Xampp for Linux forum and it said to delete the /opt/lampp/htdocs/index.html file, which I did. When i tried to refresh I still got the same Xampp page, so I cleared the cache (recommended on their site.) Now I am seeing:
    Index of /

    Icon Name Last modified Size Description[ ] favicon.ico 11-May-2007 06:40 30K
    [DIR] webalizer/ 26-Dec-2004 03:30 –
    [DIR] wordpress/ 19-Sep-2008 08:16 –
    [DIR] xampp/ 10-Nov-2006 02:03 –

    Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 Server at dnsnamechanged.dyndns.biz Port 80

    Thanks again!
    regulusrigel

    Have you tried changing it to /opt/lampp/htdocs/wordpress , and then installing WordPress at /opt/lampp/htdocs/wordpress ? Or why not just install wordpress at /opt/lampp/htdocs ? XAMPP appears to be serving documents from its own path, not the /var/www path that the default apache2 install would normally use. If I am interpreting what your are doing correctly, your web server is serving docs out of /opt/lampp/htdocs, not /var/www. ( I think.. maybe.. possibly..)

    Have a look at the ServerRoot directive in your config file.
    That is the path from which your web server (XAMPP) will serve files. The XAMPP path in your case is probably;

    ServerRoot /opt/lampp

    The Document Root is just that . The folder where your htdocs will be located.

    DocumentRoot /opt/lampp/htdocs

    So, xampp would want to serve the web from that path, not the /var/www/path. (I believe, in this case). I sure hope I got all that right.

    …and don’t forget to restart your web server after making changes to the config file.

    ??

    Hi regulusrigel

    Wondering if you ever got this solved… I have a similar issue occurring.
    I am on the hunt for a solution at the moment and if I find anything I will post it here.

    I found out how to fix this it has taken me a weak its not apache or the index.html redirect its wordpress.
    Login to worpress on the local host and go int setting general and change the wordpress address url from 127.0.0.1 to the LAN IP
    and the BLOG address from 127.0.0.1 to the LAN IP keep the /wordpress/ after both.
    clear your cache out of the LAN browsers and all should work great

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot get Xampp or Ubuntu to redirect’ is closed to new replies.