is this config for php enabled??

Status
Not open for further replies.

icemanc

New Member
Messages
26
Reaction score
0
Points
0
.htaccess not working properly

  • PHP4 or PHP5 with the following configuration
    1. safe_mode = off
    2. short_open_tag = on
    3. output_buffering = on
    4. register_argc_argv = On
    5. session.gc_maxlifetime = 15000
    6. register_globals = off
    7. magic_quotes_gpc = on
  • and also # Apache web server with mod_rewrite enabled.

my htaccess not working properly

----------------------------------

Code:
<IfModule mod_rewrite.c>
RewriteEngine On 

RewriteRule ^signup$ /signup.php
RewriteRule ^members/(.*)/(.*) /memberprofile.php?pid=$1&name=$2
-------------------------------------


above code not working .
if i add
Options +MultiViews
to the above code , then only signup working .

i need member profile to be worked.

------thank you
 
Last edited by a moderator:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Mod rewrite is enabled on all the servers. As for the PHP configuration, it can't be changed like that, and the values that are currently in there will most likely not change. You can check each one of these settings using http://ca3.php.net/manual/en/function.ini-get.php
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
PHP:
<?php

$settings= array( 'safe_mode', 'short_open_tag', 'output_buffering', 'register_argc_argv', 'register_globals', 'magic_quotes_gpc' , 'session.gc_maxlifetime') ;

for( $i=0 ; $i < 7 ; $i++){
echo $settings[ $i ] . "  " . ini_get( $settings[ $i ] ) . "<br />" ;
}

?>

returns:

Code:
safe_mode 
short_open_tag 1
output_buffering 
register_argc_argv 1
register_globals 
magic_quotes_gpc 1
session.gc_maxlifetime 1440

on Chopin ... blank is Off, 1 is On
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
remove <IfModule mod_rewrite.c>
 

icemanc

New Member
Messages
26
Reaction score
0
Points
0
can output_buffering be set to on ??

@remove <IfModule mod_rewrite.c>

i removed but not working
 

icemanc

New Member
Messages
26
Reaction score
0
Points
0
hmm . i can define it in .htaccess only if

<Directory />
Options Includes ExecCGI -MultiViews FollowSymLinks Indexes
AllowOverride All
</Directory>

override option is allowed on apache . i think so .

i put
php_flag output_buffering on
on .htaccess .

then it is showing error
 

allofus

New Member
Messages
183
Reaction score
2
Points
0
Create a file using notepad++ or your favourite file editor

info.php
PHP:
<?php
// Show php config info
phpinfo();
// Show php module info
phpinfo(INFO_MODULES);
?>

Now upload it to your root (public_html not root, sorry!!!) and point a browser to yourdomain/info.php

You will see all the info you want / need RE: php config.

This is what you will see;
http://4allofus.com/info.php
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
info.php
PHP:
<?php
// Show php config info
phpinfo();
// Show php module info
phpinfo(INFO_MODULES);
?>

Warning: phpinfo() has been disabled for security reasons
 
Last edited:

allofus

New Member
Messages
183
Reaction score
2
Points
0
hmm, it works fine for me. Maybe there is a difference between paid and free hosting?

Sorry I could not be of more help.
 
Status
Not open for further replies.
Top