newbie to DA

PSD

Verified User
Joined
Apr 12, 2013
Messages
24
Hi all
Am real newbie to DA and to a un-managed server!, always had a managed service.

My new un-managed server is
Dell CS24-SC - Intel Dual Xeon L5420
OS: CentOS 5.x Version: 64-bit
CP: DirectAdmin with Softaculous
16 GB RAM
HD 1 TB SATA

I have now managed to setup all three of my websites with help from searching DA forum user posts, all sites seem to resolve ok running…Q

But one of my sites is php/database driven and I have problem with a htaccess file in a image folder were users can upload images

htaccess Code:

Options -Indexes
Options –ExecCGI
AddHandler cgi-script .php .php3 .php4 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi
<Files ^(*.jpeg|*.jpg|*.png|*.gif|*.bmp)>
order deny,allow
deny from all
</Files>

At the moment this code blocks all my images, if I remove htaccess file from folder all my images are seen again?

Do I need to add Apache Handler to the users control panel for it to work??
Any help would be greatly Appreciated Thanks.
 
I never this file has always been in this folder and has been working for 5years???
Is the software on the new server EXACTLY the same as on the old server? For example, if you have a newer php version, some things might not work as expected.
Is your website application up to date?
Modern CMS and web applications allow users to upload images without the need of htaccess files.
 
thanks for your reply

Is the software on the new server EXACTLY the same as on the old server? For example, if you have a newer php version, some things might not work as expected.
Is your website application up to date?
Modern CMS and web applications allow users to upload images without the need of htaccess files.

Hi Themis Yes the script was copied exactly but the php versions are different
OLD SERVER PHP Version 5.3.21
NEW SERVER PHP Version 5.3.23

some settings are different??

I turned on debug while uploading an image through my classified script
error was <!-- 0 - Permission error; can not copy -->
if I change the folder Permission to 777 it works OK

any help thanks...
 
update

Hi Themis Yes the script was copied exactly but the php versions are different
OLD SERVER PHP Version 5.3.21
NEW SERVER PHP Version 5.3.23

some settings are different??

I turned on debug while uploading an image through my classified script
error was <!-- 0 - Permission error; can not copy -->
if I change the folder Permission to 777 it works OK

any help thanks...

Thanks for the advice chatwizrd, I removed the htaccess file now, and wrote code for post page to change folder permissions on upload my Issue solved thanks again to you all :cool:
 
Back
Top