.htaccess file/httpd.conf
| sarcasticprick  
      Joined: 2003-04-08 Posts: 63 |  Posted: Thu, 2004-12-23 23:12 | 
| it seems like my host is always changing things around on their end that affect my gallery negatively. the newset is that i am unable to upload images over 2mb in size. i tried to run the configuration wizard and here is where i found the problem... in step 1. Quote: Warning! after contacting my host to request that this line be put into the httpd.conf file... Quote: <Directory /home/origin/public_html> ...they told me to put this line in my .htaccess file. after doing this i immediately got this error: Quote: Internal Server Error any simple solutions? | |



 
 
 
 
 
 
 
Posts: 13451
Yeah, get your hosts act sorted....
Seriously, you can't add that to the .htaccess file, since thats what enables php directives in .htaccess in the first place...
Posts: 3236
If all else fails, you can take your monthly fee to another provider that doesn't change things all the time and break your shit.
Posts: 63
my host said:
"Hello Rick,
AllowOverride Options FileInfo is already set in our httpd.conf."
however, the problem still persists. i can't upload pictures larger than 2mb. i ran the configuration wizard again and i got... "Apache is not obeying the 'php_value' lines in your .htaccess file."
any ideas? :-?
Posts: 63
when i try to upload a file over 2mb this is the error message i get:
Processing status...
- Adding DSCF0073.JPG
Resizing/compressing original image
Warning: getimagesize(/home/origin/public_html/albums/album01/aac.jpg): failed to open stream: No such file or directory in /home/origin/public_html/util.php on line 436
Posts: 13451
Well, your host has to change it, you can't as long as the PHP directives in .htaccess is not followed.
Posts: 63
here is the response i got back from my host:
does what he's saying make any sense? here is my .htaccess in full:
# BEGIN Gallery section # (Automatically generated. Do not edit this section) # Note: still under development, so format may change. # If you edit this file, make a backup before runnng the Config. Wizard. Options -Indexes +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.\?/]+)/([0-9]+)$ /view_photo.php?set_albumName=$1&index=$2 [QSA] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /view_photo.php?set_albumName=$1&id=$2 [QSA] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.\?/]+)/$ /$1 [R] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.\?/]+)$ /view_album.php?set_albumName=$1 [QSA] </IfModule> # END Gallery section. Add User changes below this line #php_value post_max_size 30971520 #php_value upload_max_filesize 30971520 #php_value magic_quotes_gpc off Options +FollowSymLinks <IfModule mod_rewrite.c> </IfModule> Redirect temp /guestbook/addentry.php http://www.origin-studio.com Redirect permanent /sets.php http://www.originstudio.com Redirect permanent /pink.php http://www.originstudio.com Redirect permanent /galleries/ http://www.originstudio.com Redirect permanent /dirty_white.php http://www.originstudio.com Redirect temp /galleries/dirty_white/01.php http://www.origin-studio.com RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://melliart.origin-studio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://melliart.origin-studio.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://origin-studio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://origin-studio.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://originstudio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://originstudio.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.melliart.origin-studio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.melliart.origin-studio.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.origin-studio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.origin-studio.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.originstudio.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.originstudio.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]this is the .htaccess that was generated by gallery.
Posts: 13451
If you do have access to your own php.ini file, thats fine. You can add the
Lines to it, but they need some modifications, like removing the #php_value part of them.
Posts: 63
the solution to my problem is out of my skill set :-?
are there any basic tutorials on this php.ini and it's functions?
Posts: 13451
php.net has all you need!