chfields Posted March 1, 2003 Share Posted March 1, 2003 I am trying to bring make my cart live. Per osc guide I changed the default.php to index.php in catalog,application_top and language english. I added directoryindex default.php index.php....... in .htaccess and when I put in my url it gives me the index of / parent directory....I tried making a copy of index.php and putting it in public_html and get the error Fatal error: Failed opening required 'includes/application_top.php' (include_path='') in /home/mrsfield/public_html/index.php on line 13. The only thing I have found that actually works is creating index.htm with code <meta http-equiv="Refresh" content="0; url=default.php"> I understand that can cause problems with search engine. Can someone help with this?? Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Use this in your .htaccess that came in root with OSC. DiRectoryindex index.shtml index.html index.htm index.php default.php /missing.html AddHandler server-parsed .shtml AddHandler server-parsed .html AddHandler server-parsed .htm I've had problems with trying to change to index.php and Linda (bless her heart) posted this script for our .htacces and it works great, and even adds a level of security so someone can't upload a bad script to your image dir. (which is set to 777 so OSC can write to it). It is you paths that are wrong, that is why you get the error message. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Oh, and you are right about the search engines. They don't like and sometime will ignore metarefresh sites. It is better to not use them. In fact any type of forwarding script or links sometimes will be skipped by the engines. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 / public_html / (Current Folder) Create New Folder Upload file(s)Up one level catalog755 cgi-bin755 scgi-bin755 Create New File.htaccess I copied that into the .htaccess and it gives me Index of / Name Last modified Size Description -------------------------------------------------------------------------------- Parent Directory 28-Feb-2003 17:50 - catalog/ 28-Feb-2003 20:36 - cgi-bin/ 19-Feb-2003 19:40 - scgi-bin/ 20-Feb-2003 10:20 - Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Your root is /public_html/ which is default root for shared hosting on apache. Delete the catalog folder. Upload all the files under catalog on your computer to your server using public_html as your root folder. upload your admin folder. Create your empty database. Run your install/install.php Dir structure should be. /public_html/download/ /public_html/images/ /public_html/install/ /public_html/includes/ /public_html/pub/ /public_html/admin/ /public_html/cgi-bin/ /public_html/scgi-bin/ /public_html/all_the_php_files.php OR you can do as below. You add Linda's code to the .htaccess in the catalog root. Then you have to enter your URL like http://www.yourdomain.com/catalog/ or http://www.yourprovidersdomain.com/~username/catalog/ , but use above it is a lot easier to deal with. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 So I need to reinstall?????? Does that mean I will lose all my modifications and info entered into my database?? Is there some way to save all that?? Also, as per the instructions, I deleted the install folder Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Just FYI. As you have figured out, if somebody enters your URL in their browser. Apache will look for the public_html folder on your server and then try to find the file index.htm or index.html, which is default. Unless the server admin enters it otherwise. Like adds default.php and index.php into the httpd.conf file on the server, which I found they only use index.php. This is why the .htaccess file that I posted above. The reason you get a dir listing is because Apache can't find the above files under public_html and this is why your index.htm with the meta_refresh did work. But, as you stated search engines don't like meta_refresh pages. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Now, don't rerun the install file, and all the information entered into the database won't be lost. And your mods, you should have a copy of them on your computer, if you don't, make a copy. You should have a backup anyway. Just modify the two configure.php files to reflect your changes in the directories. If you want to get rid of any type of forwarding, you will have to do this. If you need help just let me know. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 So reinstalling won't change anything then? Maybe I should try to get my server to change the httpd.conf file on the server. In the meantime, what choices do I have to rectify this situation? Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 I need help please Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Just to make it clear. BACKUP YOUR ENTIRE SITE AND THE DATABASE BEFORE MAKING ANY CHANGES. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 I have cpanel5 and made a copy of the catalog folder. Now I know nothing about DB's how do I back it up? I did run a backup from admin earlier tonight. Is that good enough? Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 First of all, don't worry about the server admin making any changes, they generaly won't. The script I posted works just great. Just get your site backed up. When your are happy with your backup, triple check, and triple check it again. Go ahead and delete the catalog dir. Yes, all the files under it. If you have the dir set up /catalog/ and /catalog/admin. Then the admin folder goes to. Remember, if you did a COMPLETE backup you have nothing to worry about. And far as the database goes? Don't worry about it. You can't do anything to it. Without manualy going into admin and messing it up. Then go ahead and do the upload stucture as I stated before. You will have the dir sturcture as above. Then all you have to do is edit the configure.php files to reflect the dir changes. Which release are you using? Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 I have cpanel5 and made a copy of the catalog folder. Now I know nothing about DB's how do I back it up? I did run a backup from admin earlier tonight. Is that good enough? I think I would FTP my site to my computer. But, I'm not familer with cpanel5. If you feel that this is a quality backup, then it is OK. Your database backup from admin is fine, as long as you haven't made any changes. Maybe re-run it again for GP. But it is for peice of mind only. You database is safe. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 I'm not sure it was a snapshot about a week ago I'm thinking 2.2 CVS?? What files in configure.php do I need to change??? So I just go into cpanel and upload everything under the second catalog from the original? Same as the first time?? Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 I'm not sure it was a snapshot about a week ago I'm thinking 2.2 CVS??What files in configure.php do I need to change??? So I just go into cpanel and upload everything under the second catalog from the original? Same as the first time?? I'm not sure what you mean. But try and copy the dir structure I posted above. You don't want any dir named /catalog/ . You are moving everything under your current /catalog/ dir to /public_html/ dir. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Dir structure should be. /public_html/download/ /public_html/images/ /public_html/install/ /public_html/includes/ /public_html/pub/ /public_html/admin/ /public_html/cgi-bin/ /public_html/scgi-bin/ /public_html/account.php /public_html/account_edit.php ect. ect. ect. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 Ok I am going to delete catalog and upload again. Crossing my fingers... Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Oh, sorry forget /public_html/install Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 It's easy, but I know what you are going through. I did the same thing when I changed my whole site around. But, everything went fine. Don't forget you must edit. /public_html/includes/configure.php /public_html/admin/includes/configure.php to reflect your dir changes. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 I'm having a problem. I don't know how to get cpanel to upload folders. I am also trying with dreamweaver but it is giving me catalog/catalog/images,etc Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Find a good FTP, WS_FTP LE is good, copy your files to another dir on your computer so dreamweaver will upload as you want them. Dreamweaver is wonderful, but I do hate, sometimes, that it maintains dir structure. Steve ------------------------- Link to comment Share on other sites More sharing options...
chfields Posted March 1, 2003 Author Share Posted March 1, 2003 Can I just take the folders from my copy and move them to public_html???? Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 I ment OR copy your files to another dir to achive the dir structure you want, so dreamweaver will be nice. I use Dreamweaver a lot, mainly as a FTP. I use HomeSite5 as my editor. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 1, 2003 Share Posted March 1, 2003 Can I just take the folders from my copy and move them to public_html???? I don't see why not. As long as they reflect all your changes. And get ALL the *.php file there too. Steve ------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.