Can't get Wordpress to run under xampp

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't get Wordpress to run under xampp

Postby tivrod » 11. February 2009 21:59

I have an RHEL5 system on a test server behind a firewall on my intranet which I installed xampp in the default location /opt/lampp.

xampp works fine as does phpmyadmin and I have managed to create and install Wordpress 2.7.1. I can even get into the Wordpress Control panel, make posts, etc.

My DocumentRoot in /etc/httpd.conf is set to /opt/lampp/htdocs, which also contains my wordpress, xampp, and webalizer.

The question may have been answered but the one similar question I found was in German which I don't understand, so my apologies if there is already an answer.

No matter what I do, I cannot get the actual web page to come up even if I include the full path to the Wordpress index.php file in the URL.

I even edited the last line in httpd.conf to comment out the call to the /etc/extra/httpd-xampp.conf file and I then received just the text display of Kai's html code but without the xampp GUI.

Any help is greatly appreciated.
Thanks
tivrod
 
Posts: 3
Joined: 11. February 2009 21:37

Re: Can't get Wordpress to run under xampp

Postby Wiedmann » 11. February 2009 22:27

I even edited the last line in httpd.conf to comment out the call to the /etc/extra/httpd-xampp.conf file

Don't do this.

My DocumentRoot in /etc/httpd.conf

You mean "/opt/lampp/etc/httpd.conf"?

No matter what I do, I cannot get the actual web page to come up even if I include the full path to the Wordpress index.php file in the URL.

Please more details:
- Which URI must you currently using?
- Which URI want you use?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can't get Wordpress to run under xampp

Postby tivrod » 12. February 2009 15:16

Wiedmann wrote:
I even edited the last line in httpd.conf to comment out the call to the /etc/extra/httpd-xampp.conf file

Don't do this.

My DocumentRoot in /etc/httpd.conf

You mean "/opt/lampp/etc/httpd.conf"?

No matter what I do, I cannot get the actual web page to come up even if I include the full path to the Wordpress index.php file in the URL.


Please more details:
- Which URI must you currently using?
- Which URI want you use?


Sorry, I failed to mention that I reverted back to the original code once I determined that commenting that line out would not give me the results that I desired.

Yes, the quotes are there just as you showed. Here are some of the configuration parameters I have looked at from httpd.conf, which is now back to the original version of the file:

ServerRoot "/opt/lampp"
DocumentRoot "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">

In the directory /opt/lamp/htdocs, I have the following sub-directories:

webalizer, wordpress, and xampp

and the following files:

favicon.ico and index.html

Here is the contents of index.html

<html>
<head>
<meta name="author" content="Kai Oswald Seidler">
<meta http-equiv="refresh" content="0;url=/xampp/">
</head>
<body bgcolor=#ffffff>
</body>
</html>

I am fine with using htdocs as my document root and had planned to bring up Wordpress by specifying a URL of

http://www.sitename.com/wordpress/

Currently, when I specify that URL, Apache rewrites it to read http://www.sitename.com/xampp/

Do you need still more information? I am certain the problem is something simple that I have overlooked.

Thanks
tivrod
 
Posts: 3
Joined: 11. February 2009 21:37

Re: Can't get Wordpress to run under xampp

Postby Wiedmann » 12. February 2009 17:25

DocumentRoot "/opt/lampp/htdocs"
...
In the directory /opt/lamp/htdocs, I have the following sub-directories: wordpress
...
had planned to bring up Wordpress by specifying a URL of http://www.sitename.com/wordpress/
...
Currently, when I specify that URL, Apache rewrites it to read http://www.sitename.com/xampp/

From the default XAMPP configuration there should be no redirect from "http://www.sitename.com/wordpress/" to "http://www.sitename.com/xampp/".

I guess that wordpress is doing a wrong redirect to the DocumentRoot. Just remove all files in "/opt/lamp/htdocs/wordpress/" for a test and try again the above URI.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Can't get Wordpress to run under xampp

Postby tivrod » 12. February 2009 22:42

Wiedmann wrote:
DocumentRoot "/opt/lampp/htdocs"
...
In the directory /opt/lamp/htdocs, I have the following sub-directories: wordpress
...
had planned to bring up Wordpress by specifying a URL of http://www.sitename.com/wordpress/
...
Currently, when I specify that URL, Apache rewrites it to read http://www.sitename.com/xampp/

From the default XAMPP configuration there should be no redirect from "http://www.sitename.com/wordpress/" to "http://www.sitename.com/xampp/".

I guess that wordpress is doing a wrong redirect to the DocumentRoot. Just remove all files in "/opt/lamp/htdocs/wordpress/" for a test and try again the above URI.


Thanks for the quick response. I will test it later today and go through Wordpress 2.7.1 to see what may be mis-configured. If necessary, I will simply reinstall Wordpress and see what happens. This is the most recent version of Wordpress and I have it working on 6 Live sites, all of which are hosted by ISPs. This is my first attempt to make it work on a local Linux system (which I failed to mention, is in a VMWare ESX guest running in a very large IBM 16 processor system that was provided to me by my employer, and the configuration of which I have no control), thus I may have missed something that gets setup automatically on a real ISP. I did run the phpinfo from the Xampp control panel and it correctly reports htdocs is the Document Root.

I also have a Wordpress running locally on my Mac under Mampp using the same thought process as I did to install this one.
tivrod
 
Posts: 3
Joined: 11. February 2009 21:37


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 9 guests