Portal Home > Knowledgebase > Articles Database > PHP and .htaccess issue


PHP and .htaccess issue




Posted by atsdb, 06-13-2011, 03:38 AM
Hello, I am running a CentOS server with PHP. The PHP configuration details are given below. I am trying to use .htaccess file to alter local value of PHP configuration. For example, I am trying to switch on Safe mode for one certain account for this server. But, when I update .htaccess file for this, the local value doesn't change. How to go about solving this ? Please help me out. PHP Version 5.2.10 -------------------------------------- System Linux gohost01 2.6.18-238.9.1.el5PAE #1 SMP Tue Apr 12 18:52:55 EDT 2011 i686 Build Date Nov 13 2009 11:25:53 Configure Command './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' -------------------------------------- Server API Apache 2.0 Handler -------------------------------------- Virtual Directory Support disabled -------------------------------------- Configuration File (php.ini) Path /etc -------------------------------------- Loaded Configuration File /etc/php.ini ---------------------------------------------

Posted by Mr X, 06-13-2011, 04:14 AM
Is AllowOverride enabled in the Apache configuration?

Posted by linuxbabu, 06-13-2011, 04:14 AM
Seems you have not configured AllowOverride directive. Can you show the snippet of httpd.conf for the domain in question?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
cxs and ignore files. (Views: 1990)
WHMCS Pipe Issue? (Views: 790)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.