|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
4 tries of failure
Hi ...
I purchased this auction code for my site and have very little knowledge of php. I am only on a learning level right now. I have tried 4 times to upload this script to my server and I set all permissions. I even went through the programs so called "installation procedures" and I can only get the admin area to work. This was great except if you go to my website it only show file folders on the main page. If there is anyone that could help me to figure this out, I would be so greatful. thanks! plutodip |
|
#2
|
|||
|
|||
|
RE: 4 tries of failure
Tell me your permissions. You moight have to chown the directory so that your web server can write to it ie.
chown -R apache.yourusername directory/* This will do a recursive change owner of the directory and its child directories and files |
|
#3
|
|||
|
|||
|
RE: 4 tries of failure
Hi PostalCow,
thank you for helping me. The only permissions I set (that I was told to set) are the following: 1.chmod the "uploaded" directory to 777 2.chmod the "counter" directory to 777 3.chmod the "backup" directory to 777 (but .. this directory I could not find .. so, I didn't set anything) 4.chmod the following include directory files 666: a) passwd.inc.php b) config.inc.php c) categories_select_box.inc.php d) countries.inc.php e) currency.inc.php Then I was told to upload all of the files of this entire script (including the last permission set files) to my main root directory so that it would work as my main domain page (http://www.cracklejack.com). Once, I did this, I was told to type in http://www.cracklejack.com/admin/install.php ... which this went through 3 stages. It confirmed that all stages passed ... and then directed me to login to my administration page to setup general preferences. I did all of this. The only two errors I received was the main page comes up with file folders ... and, when I was in my admin area, I tried to setup preferences for my logo to be uploaded, but it said the path could not be found. Anyway, that was what I did 4 times. Postalcow ... I hope you don't mind me explaining this to you. I just want to make sure I give you as much info as possible. Sorry for the long note. Oh ... and, by the way, I can send the coding via email if needed. Again, I am very grateful for your help. plutodip |
|
#4
|
|||
|
|||
|
RE: 4 tries of failure
During setup it may have asked for the path to the root directory did you put in for the obsolute path
|
|
#5
|
|||
|
|||
|
RE: 4 tries of failure
are you speaking of the auction program itself (for the main page) or the upload file (this file is in the includes directory) for the images (this was the one I said that came up with an error message)?
If you are talking about the auction program itself ... I was not asked to do that. If you ara asking about the upload directory ... here is some of the code I was told to change ... [highlight=php] */ $SESSION_NAME = "PHPAUCTION_SESSION"; session_name($SESSION_NAME); session_start(); //-- This is the directory where passwd.inc.php file resides - requires ending slash $include_path = "./includes/"; #$include_path = "C:\some\path\to\includes\"; //-- This is the directory where users pictures will be uploaded - requires ending slash //-- Under Windows use something like C:\path\to\you\uploaddir\ $image_upload_path = "/home/www/uploaded/"; #$image_upload_path = "C:\some\path\to\uploaded\"; $uploaded_path = "uploaded/"; #$uploaded_path = "uploaded\"; //-- $MAX_UPLOAD_SIZE = 100000; //-- This string is added to passwords before generating the MD5 hash //-- Be sure to never change it after the firt set up or //-- your users passwords will not work $MD5_PREFIX = "put_here_along_and_unpredictable_string"; /* This is the log file generated by cron.php - insert the complete file name (including the absolute path). If you don't want to generate a log file for cron activity simply leave this line commented. */ #$logFileName = "/var/www/auctions/logs/cron.log"; #$logFileName = "C:\path\tocron.log"; /* Set this to TRUE if you want cron to generates HTML output BESIDES the cron file declared above. cron.php cannot generates only HTML output. */ $cronScriptHTMLOutput = FALSE; $expireAuction = 60*60*24*30; // time of auction expiration (in seconds) /*================================================= ===================== * * * Don't edit the code below unless you really know what you are doing * * * ================================================== ====================*/ [highlight=php] you will see the directory. Can you tell me if I was suppose to change this code --->>>>>> [highlight=php] $MD5_PREFIX = "put_here_along_and_unpredictable_string";[highlight=php] Thanks plutodip |
|
#6
|
|||
|
|||
|
RE: 4 tries of failure
WHat happens if you put the absolute path in
$include_path = "./includes/"; They have the absolute path in the example. |
|
#7
|
|||
|
|||
|
RE: 4 tries of failure
Hi PostalCow,
Yes...that is what they have for the settings, but here is what the adminstration asks when setting up general preferences: Include path : ./includes/ Image upload path : /home/user/phpauction/uploaded/ Max upload size : 100000 MD5 prefix : put_here_unpredictable_string ------->> this was the 3rd stage of finalizing the admin setup before finished. Then when I logged into the Admin area for the first time, I then went to the general preferences and tried to upload my logo. And ... the following error occurred: --------------- Warning: Unable to create '/home/www/uploaded/face4.gif': No such file or directory in /usr42/home/plutodip/public_html/admin/settings.php on line 75 ------------------ I hope I've answered your question. Thanks again, Plutodip |
|
#8
|
|||
|
|||
|
RE: 4 tries of failure
I went to your site.
When you set up the database using the admin menu did you add the trailing / {slash} where it asked for site URL? |
|
#9
|
|||
|
|||
|
RE: 4 tries of failure
Yes ... I did put the trailing slash, like this:
http://www.cracklejack.com/ ... is that correct? thanks! plutodip |
|
#10
|
|||
|
|||
|
RE: 4 tries of failure
I am confused. I went to the site. I was able to register and put an auction up for bid what is not working again?
|
|
#11
|
|||
|
|||
|
RE: 4 tries of failure
Hi PostalCow,
whether I use Netscape or IE, all that I see is file folders - nothing else - literally I see my all of my folders ... as if everyone can get into (unsecurely) all of my folders. I do not see an auction site at http://www.cracklejack.com ... is this the same site you logged into? or, is there something I am doing wrong ... or, ???? Thanks again, plutodip |
|
#12
|
|||
|
|||
|
RE: 4 tries of failure
Ok I see. Your web server is not setup to see index.php as a start page. Ask your ISP to add it to the config. In the time being create a file in your folder called index.html and put the following code in it.
Code:
<html> <head> <META HTTP-EQUIV="refresh" content="0; URL=http://www.cracklejack.com/index.php"> <title>cracklejack</title> </head> <body> </body> </html> This will do a quick redirect to the correct page. Let me know if this works, Good Luck |
|
#13
|
|||
|
|||
|
RE: 4 tries of failure
Hi Postalcow,
THANK YOU, THANK YOU!!! Now ... all I have to do is locate all the folders where I can change colors of borders and stuff... would this not be in the includes file "config.php"? Anyhow... I am so grateful... plutodip |
|
#14
|
|||
|
|||
|
RE: 4 tries of failure
I did not look through your files but I did see a header and footer file in there. Change those.
BTW, Your Welcome.... |
|
#15
|
|||
|
|||
|
HELP
Hi,
Im after someone who knows how to set cron.php up on php auction or could someone tell me how to as im new to PHP Thanks Craig |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > 4 tries of failure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|