Guest Posted July 10, 2003 Share Posted July 10, 2003 hi, i'm sure this is easy but,, How do u install oscommerce on your homepage. When i try to install it , it asks for a directory. There are many sites who do it on the homepage? how is this done pleas :D e. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 hi, here is a piece of code, copy paste the text in a file called ex. sysinfo.php and run this file on the webserver. it's show some system information. ex. server dir add this dir in your install form let me know if this was the answer, you need. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- sysinfo.php PHP-Systeminformationen Dieses Script liefert verschiedene Informationen ueber den Server und zeigt moegliche Probleme an. //--> <head><title>PHP-Systeminformationen</title><style type="text/css"><!--td,p{font-family:Verdana,Arial,sans-serif;font-size:10pt}a{color:#808080}a:hover{color:#003399}--></style></head> <body bgcolor="#FFFFFF" text="#000000"> <table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td> <p><span style="font-size:16pt">Systeminformationen</span><br> </p> <table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#000000"><tr><td> <table border="0" cellspacing="1" cellpadding="2" width="620"> <tr><td colspan="2" bgcolor="#FFCC33"><b>Systeminformationen:</b></td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>PHP-Version:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php echo '<b><font color='; if (phpversion() >= '3.0.10') { if (phpversion() >= '4') echo '"#00A000">'; else echo '"#C09000">'; } else { echo '"#A00000">'; } echo phpversion().'</font></b>' ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Betriebssystem:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if(phpversion() > '4.0.2') echo php_uname(); else echo 'unbekannt'; ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Webserver:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if ($SERVER_SOFTWARE) echo $SERVER_SOFTWARE; elseif ($SERVER_SIGNATURE) echo $SERVER_SIGNATURE; elseif ($HTTP_SERVER_VARS['SERVER_SOFTWARE']) echo $HTTP_SERVER_VARS['SERVER_SOFTWARE']; elseif ($HTTP_SERVER_VARS['SERVER_SIGNATURE']) echo $HTTP_SERVER_VARS['SERVER_SIGNATURE']; else echo 'unbekannt'; if ($SERVER_VERSION) echo ' ('.$SERVER_VERSION.')'; elseif ($HTTP_SERVER_VARS['SERVER_VERSION']) echo $HTTP_SERVER_VARS['SERVER_VERSION']; ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Webserver Interface:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if(phpversion() > '4.0.1') echo php_sapi_name(); else echo 'unbekannt'; ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>aktueller Serverpfad:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if ($HTTP_SERVER_VARS['PATH_TRANSLATED']) { if (is_dir(dirname($HTTP_SERVER_VARS['PATH_TRANSLATED']))) echo dirname($HTTP_SERVER_VARS['PATH_TRANSLATED']); else echo '<b><font color="#A00000">Kein gültiges Verzeichnis:</font></b><br>'.$HTTP_SERVER_VARS['PATH_TRANSLATED']; } elseif ($PATH_TRANSLATED) { if (is_dir(dirname($PATH_TRANSLATED))) echo dirname($PATH_TRANSLATED); else echo '<b><font color="#A00000">Kein gültiges Verzeichnis:</font></b><br>'.$PATH_TRANSLATED; } else { echo '<b><font color="#C09000">unbekannt</font></b>'; } ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Domain-URL:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if ($HTTP_ENV_VARS['HTTP_HOST']) echo $HTTP_ENV_VARS['HTTP_HOST']; elseif ($HTTP_HOST) echo $HTTP_HOST; else echo 'unbekannt'; ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>aktueller Domainpfad:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php if(dirname($HTTP_ENV_VARS['SCRIPT_NAME'])) echo dirname($HTTP_ENV_VARS['SCRIPT_NAME']); elseif ($PHP_SELF) echo dirname($PHP_SELF); else echo '<b><font color="#C09000">unbekannt</font></b>'; ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Benutzername:</b></td><td bgcolor="#F0F0F0" valign="top"> <?php echo get_current_user() ?> </td></tr> <tr><td bgcolor="#FFFFCC" valign="top"><b>Benutzer-ID (UID):</b></td><td bgcolor="#F0F0F0" valign="top"> <?php echo getmyuid() ?> </td></tr> </table> </td></tr></table> <p align="center"><font color="#808080"><a href="http://www.lindos.ch">Lin & Dos GmbH</a></font></p> </td></tr></table> </body></html> Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 nope, i dont think so. i want people to go to ie www.wirelessbusiness.com.au , and thats where oscommerce is installed, instead of having to go to www.wirelessbusiness.com.au and then go to www.wirelessbusiness.com.au/oscommerce - Any help. ie, like www.minidisc.com.au cheers Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 I solved this problem by creating an Apache .htaccess file with a single lie DirectoryIndex catalog/index.php Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 :D :D thanks guys. havent tried it work, but you hit the nail on the head :--) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.