vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   How to get to my php.ini file? (https://vborg.vbsupport.ru/showthread.php?t=187177)

christian8a 08-04-2008 06:15 AM

How to get to my php.ini file?
 
I know where is located, but how do I get to it?
like where do I put the url or what :confused:

Marco van Herwaarden 08-04-2008 07:03 AM

What do you want to do with it?

If you want to edit it, you will need to go to the command shell and edit the file with an editor like 'vi'.

nexialys 08-04-2008 10:48 AM

the best place to ask is the Support Ticket from your Host actually.... some hosts locate their ini in specific places, and usually they give permissions to use custom ones only to few of their clients, for obvious security.

SEOvB 08-04-2008 06:09 PM

if you're on vps or whatever and have SSH access

updatedb
locate php.ini

toonysnn 08-05-2008 09:18 AM

Are you on your own box or VPS?

Linux right...?
If so, these commands **SHOULD** work for you.
Code:

# updatedb
# locate

If Windows: C:\Program Files\PHP\php.ini :p

Marco van Herwaarden 08-05-2008 10:13 AM

Quote:

Originally Posted by christian8a (Post 1590972)
I know where is located....

Guys he already stated in his first post the he does know where it is located.

christian8a 08-05-2008 06:41 PM

Yea, thanx for the replies ;) I know in my case would be /etc/php.ini
is a vps but I was looking for the SSH login but I dont have my password so I would ask for it and go from there.

The reason I need it was to change the memory limit to generate a xml map for my site, and is not letting me because it gets cut on half way.

Marco van Herwaarden 08-06-2008 06:01 AM

You might also be able to override some of the memory settings using a .htaccess file on your forum directory.

christian8a 08-08-2008 05:23 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1592405)
You might also be able to override some of the memory settings using a .htaccess file on your forum directory.

really? can you help me how to do that :)
like what code to add to it

Marco van Herwaarden 08-08-2008 05:52 PM

You can create a .htaccess with lines like the following to override some php settings (if host has set to allow this):
Code:

php_value memory_limit 32M
Alternative might be to include a line like the following in your config.php (should do the same):
PHP Code:

ini_set('memory_limit'32 1024 1024); 



All times are GMT. The time now is 06:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete