Current location: Hot Scripts Forums » Programming Languages » PHP » AHHH HELP!!! PHP with Mac OS X Server question!!! DESPERATE!!!!!!!!!!!!!!!!!!!


AHHH HELP!!! PHP with Mac OS X Server question!!! DESPERATE!!!!!!!!!!!!!!!!!!!

Reply
  #1 (permalink)  
Old 10-16-04, 09:53 PM
phizzlecom phizzlecom is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
AHHH HELP!!! PHP with Mac OS X Server question!!! DESPERATE!!!!!!!!!!!!!!!!!!!

Hey everyone,

I don't know if anyone here has experience with Mac OS X Server 10.2.8 with PHP 4.1.2. I have a problem. I KNOW that Mac OS X Server's version of PHP does not come with a php.ini file, but I need to edit the UPLOAD_MAX_FILESIZE variable so Administrators on my site can upload videos. Any ideas on how to do this?

Thanks,
Ryan
Reply With Quote
  #2 (permalink)  
Old 10-17-04, 08:16 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
hi phizzlecom,
afaik, php.ini is not mandatory in mac os x.
anyway, we can still get the ini to work.
how about doing these following steps??
Quote:
1.go to your php source directory
2.search for php.ini (it's usually located in /usr/bin/php.ini or /usr/local/bin/php.ini)
if it doesn't exist do step 3 and 4
3.search for php.ini-dist
4.copy the file to your binary directory
root@xxx:>cp php.ini-dist /usr/local/bin/php.ini
or
root@xxx:>cp php.ini-dist /usr/bin/php.ini
5.edit your php.ini
good luck!!
__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #3 (permalink)  
Old 10-17-04, 09:46 PM
phizzlecom phizzlecom is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
php.ini-dist doesnt exist!!

thanks for your response.

unfortunately, php.ini-dist doesn't exist either!!

what now?


thanks,
ryan
Reply With Quote
  #4 (permalink)  
Old 10-18-04, 05:29 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
the file should exist. if it doesn't, it means that someone has deleted it, together with the installer file. as a workaround, check your current php version (php function: phpinfo()), get the source file. unpack it and then copy php.ini-dist. to the specified path. for simplicity, instead of getting the source, you can search php.ini file for mac in the internet..
__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #5 (permalink)  
Old 10-18-04, 03:55 PM
phizzlecom phizzlecom is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
uh oh

Quote:
Originally Posted by moronovich
the file should exist. if it doesn't, it means that someone has deleted it, together with the installer file. as a workaround, check your current php version (php function: phpinfo()), get the source file. unpack it and then copy php.ini-dist. to the specified path. for simplicity, instead of getting the source, you can search php.ini file for mac in the internet..
ok, i downloaded my version of php and took the php.ini-dist file and renamed it to php.ini and put it in /usr/lib/php (php installation). i changed the php.ini values UPLOAD_MAX_FILESIZE and POST_MAX_SIZE to my values (50M, 80M) and then i restarted the ENTIRE server. phpinfo() did not pick up on this at all, and it still does not work. help!

did i miss anything?


thanks,
ryan
Reply With Quote
  #6 (permalink)  
Old 10-19-04, 10:23 PM
nova912's Avatar
nova912 nova912 is offline
Code Guru
 
Join Date: Sep 2004
Location: Traverse City, MI, USA
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts
lol still have your apple care they might help you out with this issue (if you baught Mac OS X Server with support.. /shrug
Reply With Quote
  #7 (permalink)  
Old 10-20-04, 09:05 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
it shouldn't be put there. instead of /usr/lib/php/, move it into /usr/lib (or /usr/local/lib if you have local folder)

regards,
__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #8 (permalink)  
Old 10-20-04, 02:17 PM
phizzlecom phizzlecom is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
thanks

thanks, that fixed it.

thank you for all you help.

ryan
Reply With Quote
  #9 (permalink)  
Old 10-20-04, 07:41 PM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
you're welcome..
__________________
just an ignorant noob with moronic solution...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting MAC address using PHP - please help! mishmia PHP 1 06-04-04 07:38 PM
general question about php and html timfoster PHP 3 05-17-04 12:29 PM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM
Question about dreamweaver and php? chinablack1480 PHP 0 12-07-03 10:16 PM
Proven PHP Script not working on Windows 2000 server – any ideas? chimchim PHP 5 11-13-03 09:16 PM


All times are GMT -5. The time now is 04:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.