collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: c:\php5\??  (Read 1893 times)

0 Members and 1 Guest are viewing this topic.

Offline Handor

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
c:\php5\??
« on: June 06, 2008, 08:34:02 pm »

   Hows it going guys and gals.

Windows XP SP3
Bebot v0.4.3
PHP 5.2.6

Current setup, works flawless.

    Every time I try to install the newer svn releases ( for example v0.5.2) with the same php in bot directory it searches for the PHP extensions in C:\php5. If its not there I get the errors saying it needs sockets, and etc. So i make the directory for testing purposes, move copy everything from C:\bebot\php_extension\*.* to c:\php5 and the bot loads fine. I tried to dig through the php files, and confs and I dont see anywhere to adjust this or a area calling for c:\php5.  How do I change this to look for it in the normal directory? I'm a hard drive neat freak  =P  hate staring at the added directory with only 2 files in it.

  Thanks guys, and I did search the forums before posting and it doesn't seem like anyone else has questioned this.

Thanks for reading =)

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: c:\php5\??
« Reply #1 on: June 06, 2008, 08:47:45 pm »
put c:\php5 in your path directive in your environment, under the advanced tab in your "My Computer" Properties.   This has always worked flawless for me.

Also setup your php.ini file to point to where your modules are, like php_mysql.dll  and so on

Here is what my php.ini looks like  (well partially at least)

Code: [Select]
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0
error_log = ./log/php_errors.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
error_reporting = E_ALL & ~E_NOTICE
; BeBot will normally use about 10-13megs with default
; modules. Default php memory limit is 8megs.
; Raise default on hosts that permitt it.
memory_limit = 20M

; Mainly for windows where additional modules are always required
extension_dir = ./php_extension/
extension=php_zip.dll
extension=php_sockets.dll
extension=php_mysql.dll

Hope that helps
« Last Edit: June 06, 2008, 08:50:49 pm by Nytridr »
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Handor

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: c:\php5\??
« Reply #2 on: June 06, 2008, 09:46:15 pm »
Good information to know Nyt :), and I also figured out my sad issue.




can I get a round of applause?    =)


on my machine, fresh install of php package, and .0.5.2 doesn't have a php.ini...*cough*  copied the one from my 0.4.3 install to the 0.5.2 directory..and whalla..fixed.. so apparently the default directory lacking a .ini files defaults to c:\php5


Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: c:\php5\??
« Reply #3 on: June 07, 2008, 06:29:00 am »
good job..  yea the bots stoped coming with php.ini files since most systems should have them from there php install both manual installs and automatic installs. 

good to hear you figured it out.
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 360
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal