[nycphp-talk] Problems After Install Of Xammp. Help Please
Fee, Patrick J (US SSA)
patrick.fee at baesystems.com
Fri Jun 10 10:41:39 EDT 2005
You have 2 issues here. Once is changing the default directory for
Apache.
The second is the default page within that directory (e.g.: default.html
or index.php or index.html).
First, the default directory issue.
XAMPP is set up to install in its own directory structure. According to
the literature this is to make it easy if you wish to remove it:
"If you decide that XAMPP isn't needed any more just delete the XAMPP
directory and it's completely removed from your system."
-http://www.apachefriends.org/en/xampp.html
To change that you need to change the default directory in your Apache
config file. (Although the default location is usually " var/www/html",
so xampp must have changed it...) That can usually be found in the
following directory structure:
apache/conf/httpd.conf
To change the default directory (e.g.:DocumentRoot from
"/opt/lampp/htdocs/" to "var/www/html" Add the following:
<Directory "C:/[the path]/var/www/html ">
# Changing default None to All in next line, to enable .htaccess
AllowOverride All
Allow From All
Options ExecCGI
SetHandler cgi-script
</Directory>
Second is the default FILE issue:
However, you may change these default settings if you edit the
/etc/httpd/conf/httpd.conf file in this section:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php ...
</IfModule>
Obviously there may be differences in different versions of Apache, and
I haven't really delved into XAMMP yet. But I hope this helps a bit.
pjf
Patrick J. Fee
IT Software Analysis Solutions Group Manager
13900 Connecticut Avenue
Silver Spring, MD 20906-2919
Tel: (202) 231-1418
Cel: (240) 401-6820
Patrick.Fee at BAESystems.com
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Serge Chabert
Sent: Friday, June 10, 2005 9:05 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please
i installed xampp on my computer and when i go to http://localhost. it
seems to work
however, how do i set up the configuration file so that i can have
access to the pages of my websites tests.
this is when i type http://localhost/mywebsite that it shows the file
list instead of showing the index.htm page.
before i installed Xammp, the document root was var/www/html (where all
my websites folder were located) but since i i installed Xammp, the
document root seemed to have become, somehow, /opt/lampp/htdocs/. if i
leave my websites folder in var/www/html and i type
http://localhost/something, it says not present on the server. when i
move the website folder in /opt/lampp/htdocs/ and i type
http://localhost/something, then it display the directory contents of
the folder without launching the index.htm file to display the page.
Furthrermore, i was able to enter in phpmyadmin, but when i want to
create a new database, it tells me :
#1064 - You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near '' at line 1
any idea what is wrong ?
i tried to add privileges, but it is the same thing after that.
Is there any tutorial that explain how to setup the configuration files
:
/opt/lampp/etc/httpd.conf The Apache configuration file.
/opt/lampp/etc/my.cnf The MySQL configuration file.
/opt/lampp/etc/php.ini The PHP configuration file.
/opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since
0.9.5)
/opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file
Help please !!!!!!
MY configuration :
Linux Mandriva 2005
XAMPP Linux 1.4.13 (Apache 2.0.53, MySQL 4.1.11, PHP 5.0.4 & 4.3.11 &
PEAR + SQLite 2.8.9/2.8.14 + multibyte (mbstring) support, Perl 5.8.6,
ProFTPD 1.2.10, phpMyAdmin 2.6.1-pl3, OpenSSL 0.9.7d, GD 2.0.1,
Freetype2 2.1.7, libjpeg 6b, libpng 1.2.7, gdbm 1.8.0, zlib 1.1.4, expat
1.2, Sablotron 1.0, libxml 2.4.26, Ming 0.2a, Webalizer 2.01, pdf class
009e, ncurses 5.8, mod_perl 2.0.0-RC4, FreeTDS 0.62.4, gettext 0.11.5,
IMAP C-Client 2002b, OpenLDAP (client) 2.2.13, mcrypt 2.5.7, mhash
0.8.18, eAccelerator 0.9.2a, cURL 7.13.1, libxslt 1.1.8, phpSQLiteAdmin
0.2, libapreq 2.04-dev)
MD5 checsum: 65643bf5cac992f455b89d06ba8ee267
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at
http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list