Post by mab » Sun Oct 18, 2009 7:30 am

I'm obviosuly being really thick here but I'm having trouble installing opencart on an Apache server.

I get to:
"4. Visit the store homepage
e.g. http://www.example.com or http://www.example.com/store/"

and I just get a directory listing. The installation files and folders are all in a directory called "public_html" as instructed. I don't see how I can get anything other than a directory listing as there are no files there in the root to run (e.g. no index.html).

All help gratefully received.

Regards
Michael

mab
New member

Posts

Joined
Sun Oct 18, 2009 7:22 am

Post by ThePath » Mon Oct 19, 2009 4:43 am

Lol this is the best post Ive seen in ages and the kind that is normally ignored, I will answer it though since for some obscure reason it tickled my fancy.

You are right there is no index.html however there should be an index.php? If not then you do not have all the necessary files. Try downloading from fresh and re-upload everything.

You must have the index.php file.

Good luck O0

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by mab » Mon Oct 19, 2009 7:13 am

Thanks The

I appreciate your help. There is an index.php file but it's in the public_html directory, which is where the installation instructions (at http://www.opencart.com/index.php?route ... stallation ) told me to put it:

"1. upload all the files and folders to your server from the "Upload" folder.
This can be to anywhere of your choice.
e.g. /public_html/store or /public_html"

As it unzipped into the upload folder on my PC I put it in the public_html directory on my server.

I will follow your advice and move the index.php into the root. However, do I also need to move config.php, mysql, php.ini and rc.conf into the root? Also, do I have to edit config.php (which seems to be empty), or any other file, to tell it the name of the installation directory?

Kind Regards
Michael

mab
New member

Posts

Joined
Sun Oct 18, 2009 7:22 am

Post by Daniel » Mon Oct 19, 2009 10:14 am

just reupload everything. I think you might be missing a file when you uploaded it or that your server is not configured to run php.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by mab » Mon Oct 19, 2009 11:51 pm

Thanks Daniel. I seem to be getting somewhere now by going to the install directory and double clicking on index.php in the browser. Is this what I'm supposed to be doing? So far I've got through stages 1 and 2 and I think I'm being held up at stage 3 by a MYSQL problem that I'm addressing with my server providers.

Kind Regards
Michael Bryant

mab
New member

Posts

Joined
Sun Oct 18, 2009 7:22 am

Post by ThePath » Tue Oct 20, 2009 12:01 am

Hi Mab,

Are you getting the install screen which requires the database name user etc? If so and you are filling out everything and all the indicators are ticked and it still isnt working then it must be your host.

Perhaps the server is running PHP4. Have a look in your cpanel or equivelant, there may be an option to upgrade the PHP version you are using. You want PHP5!

Good luck dude!

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by readyman » Tue Oct 20, 2009 9:08 am

Looks like you need to setup a directory index if index.php is not running automatically when you are in the directory.
To set-up a directoryindex, create a .htaccess file
Include the following text

Code: Select all

DirectoryIndex index.html index.cgi index.php
If you've already got a htaccess file there, then add or edit to include the above line.

Oh, and by the way, the public_html directory IS the root of your website.

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by mab » Wed Oct 21, 2009 12:27 am

Thanks Readyman, et al.

All problems sorted and all is now working. The problem was one of understanding on my part. I am using multiple domains within one Apache virtual server so the path as displayed in my FTPprog Filezilla is httpd/vhtdocs/[mydomain]. I guess this is an unusual setup and I didn't realise that when the documentation says public_html, it means the root. I got the clue in the end from the video tutorial hereabouts (thanks guy with brilliant accent) and Readyman confirmed it above. Once I'd sussed this and sorted out MYSQL and PHP it went very smoothly.

Thanks again for all the support. Now to customise it, test it, upload a zillion products, and repeat the trick half a dozen times in time for the Christmas rush.

Regards
Michael

mab
New member

Posts

Joined
Sun Oct 18, 2009 7:22 am
Who is online

Users browsing this forum: No registered users and 7 guests