spoma Posted February 1, 2023 Posted February 1, 2023 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 Quote
osCommerce-Official Posted February 2, 2023 Posted February 2, 2023 @pandreicould you please comment? Quote
spoma Posted February 2, 2023 Author Posted February 2, 2023 All I managed to figure this out. The SELinux was blocking the apache from communicating with /var/www/html. Thanks Mark Quote
spoma Posted February 3, 2023 Author Posted February 3, 2023 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 Quote
osCommerce-Official Posted February 3, 2023 Posted February 3, 2023 @pandrei could you please check? Quote
pandrei Posted February 3, 2023 Posted February 3, 2023 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 Quote
spoma Posted February 8, 2023 Author Posted February 8, 2023 @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. Quote
pandrei Posted February 8, 2023 Posted February 8, 2023 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!” Quote
spoma Posted February 8, 2023 Author Posted February 8, 2023 @pandreiThanks for the help. I think this is everything that you wanted to see. Let me know if there is any additional information needed. Thanks. Quote
pandrei Posted February 8, 2023 Posted February 8, 2023 1 hour ago, spoma said: @pandreiThanks for the help. I think this is everything that you wanted to see. Let me know if there is any additional information needed. Thanks. Thanks for the screenshots. To check mod_rewrite you have to use this link: https://localhost/admin/ What do you see when you open it? Quote
spoma Posted February 8, 2023 Author Posted February 8, 2023 (edited) @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 February 8, 2023 by spoma Quote
spoma Posted February 8, 2023 Author Posted February 8, 2023 (edited) 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 February 8, 2023 by spoma pandrei 1 Quote
Recommended Posts
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.