Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSCommerce 4 installation Centos 7 - Unpacking Installation Fees


spoma

Recommended Posts

I have a recently built Centos 7 system that I am trying to install OSCommerce 4 on it.  I am failing the first check where it is trying to Unpack Installation Files because it's saying the 'Directory Writable' field is failing.  

Apache is using /var/www/html and this is where I have placed the index.php and the folder application_files_do_not_unzip.zip

I have  made the html folder 777 and the owner is apache

I looked through the index.php file (i'm not a PHP programmer) and it looks like the checkWritable function is what is failing me.  From what I can see it's trying to create a tmp folder and a file in there to decide on whether it returns true or false.  With my permissions I can't see why it would fail.  Is it the /var/www/html folder that it is looking at?  

  • $folder = INSTALL_ROOT . DIRECTOR_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR;

Any help with pointing me in the right direction is appreciated.

Thanks

Mark

Link to comment
Share on other sites

I was able to complete the install and all looked successful.  I see the front entry page and I'm able to click on each of the areas except for Admin.  When i click on admin it brings me to a page not found error.  Is there something specific that needs to be done for the admin area to work?

Thanks

Link to comment
Share on other sites

6 hours ago, spoma said:

I was able to complete the install and all looked successful.  I see the front entry page and I'm able to click on each of the areas except for Admin.  When i click on admin it brings me to a page not found error.  Is there something specific that needs to be done for the admin area to work?

The Apache configuration must include module mod_rewrite with Override all option. Please check this page https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_4_on_Dedicated_Server,_Cloud_Server_or_VPS

How to check if mod_rewrite is working well on your server:

1. Open your website admin directory, create a php file mod_rewrite.php:

2. Add the following line of code to it:
<?php echo "Mod_rewrite is activated!";

3. Create .htaccess file (rename the original file to .htacess_original if you have it):

4. Add the following content to the file:
RewriteEngine On
RewriteRule ^.*$ mod_rewrite.php

5. Open your site. If you see a message “Mod_rewrite is activated!”, it is enabled on your server. If you see anything else - mod_rewrite is disabled.

6. Make sure to delete the .htaccess file you created and rename the original file back        

Link to comment
Share on other sites

6 hours ago, spoma said:

@pandreiThanks for the response and sorry I was so slow on responding.  I have checked mod_rewrite the way you suggested and it seems to be working.   I saw mod_rewrite is activated in my browser.

Could you provide some screenshots? Page not found error, admin folder with test files, the page with message “Mod_rewrite is activated!”

Link to comment
Share on other sites

@pandreiIf I use https://localhost/admin/ as the URL then I get the same Not Found page that I get when I click on the admin link.  It brings me to https://localhost/admin/login and I get Not Found The requested uRL /admin/login was not found on this server

I did check with httpd -M and I do see rewrite_module (shared) in the ouput

Edited by spoma
Link to comment
Share on other sites

OK.  I was able to get this piece working.  I updated the httpd.conf and set AllowOverride All for /var/www/html/

now when I go to https://localhost/admin/ I see Mod_rewrite is activated

So, then I tried removing mod_rewrite.php and going back to the original .htaccess file.  I am now brought to a login screen for admin

I will work with this a little more later on tonight.  Thanks for the assistance.

Edited by spoma
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...