The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   point apache to a folder (http://hintsforums.macworld.com/showthread.php?t=87737)

tlarkin 03-27-2008 04:11 PM

OK

Well, I got to get a bit more familiar with XAMPP today. It seems that when you install XAMPP it puts this on your Mac:

Quote:

Apache 2.2.8, MySQL 5.0.51, PHP 4.4.8, PHP 5.2.5, Perl 5.10.0, ProFTPD 1.3.0a, phpMyAdmin 2.11.4, OpenSSL 0.9.8e, GD 2.0.35, Freetype 2.3.5, libjpeg 6b, libpng 1.2.18, libungif-4.1.4, zlib 1.2.3, expat 2.0.1, Ming 0.3, Webalizer 2.01-10, pdf class 009e, mod_perl 2.0.3, SQLite 3.4.0, phpSQLiteAdmin 0.2, libiconv-1.11, gdbm-1.8.3, libxml-2.6.29, libxslt-1.1.21, openldap-2.3.36, imap-2004g, gettext-0.16.1, libmcrypt-2.5.8, mhash-0.9.9, curl-7.16.4, zziplib-0.10.82, bzip2-1.0.3, freetds-0.64
MD5 checksum: 22d7cc3878c510ff809593d712d0f8c9
All in one nice little package, it also puts the root apache web folder in /Applications/XAMPP/htdocs

It puts MYSQL in /Applications/XAMPP/etc


So, I move the glpi folder into that directory and it lives there. Now, when I try to run the interactive set up, I still get no dice, but this time its a different error message.

Internal server error or misconfiguration

Which before I was getting 404. So, it seems that it sees the document there, but it can't load it....

Still trying to figure it out, and I think I like XAMPP, but I should have read all the documentation first. I guess I should have also known better to read all the documentation first, but hey, I am an IT worker, and I only read manuals if I can't figure it out first few tries hahaha.

I will post when I figure out exactly whats up with it.

Thanks to everyone who helped

acme.mail.order 03-27-2008 11:45 PM

Oy gevalt. So you installed an alphabet soup of programs and now you've got config errors.

Is it a 500 http error? Most common cause of those is misconfigured perl CGI files/folders. Check the execute bits, shebang line for proper path, and that the directory has exec-cgi enabled.

tlarkin 03-28-2008 10:01 AM

ah well here is a screen shot

http://img329.imageshack.us/img329/3697/picture1fe9.jpg

All that is needed, or should be needed, is load XAMPP, then toss the folder into the xamp/htdocs and be done with it.

From my understanding, XAMPP does not alter any default configurations but it just links apache to its web folder as well as the default in OS X.

tlarkin 03-28-2008 02:11 PM

I am wiping the mini clean and loading leopard server on there, which has all of that stuff native. I will report back. A guy on the apache forum was baffled why it wouldn't work either.

I am sure I screwed something up, but no one can figure out what...

tlarkin 03-28-2008 03:33 PM

update
 
well leopard server up and running along with everything I need natively installed.

Added the GLPI folder into /Library/WebServer/Documents and when I access http://localhost/glpi it downloads the config file.

Do, I need to change the htaccess file in GLPI?

I did a chmod 777 to the glpi directory since it does say in the documentation you need fulll access to some files in there.

acme.mail.order 03-28-2008 07:46 PM

htaccess wont do what you are describing. Is this thing written in perl or php? If perl, do files have the execute bit set? If PHP, did you enable the php module? Don't remember if it's on by default or not.

tlarkin 03-29-2008 03:17 PM

It is PHP based, and I think with the new leopard control panel you can go in and manually turn on whatever services you want in the web service and I am almost certain I have PHP running....

Will double check on Monday.

Thanks.

acme.mail.order 03-30-2008 06:30 AM

Ok, so can you load a phpinfo file properly? And what happens when you go for a random file directly rather than a directory? In all the examples above you try to get http://localhost/glpi which I'm guessing is a folder. This needs an Apache redirect to http://localhost/glpi/ to even begin to work properly, and another internal function to get http://localhost/glpi/index.php

tlarkin 03-31-2008 10:37 AM

If I try to load the index safari just downloads the file, every time I access the file it just downloads it in text format.....:confused:

acme.mail.order 03-31-2008 07:24 PM

so http://localhost/glpi/index.php shows you the source code? That's easy - PHP isn't running. Check the httpd.conf file and restart Apache.

tlarkin 04-01-2008 11:12 AM

Well, I took all the #s out of the httpd.conf file to allow for PHP to load and run and I still have the same errors.

I do see in Leopard some things are changed and a lot of this is configured via server admin. I created a new page in server admin and put the path as /Library/WebServer/Documents/glpi and gave it a name, and allowed it permission to run, and turn all options on for it, and listed either html.index or php.index as the default page.

I am not sure exactly where to go from here....Why is this so hard lol?


All times are GMT -5. The time now is 09:44 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.