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

10-16-04, 09:53 PM
|
|
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
|

10-17-04, 08:16 AM
|
|
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...
|

10-17-04, 09:46 PM
|
|
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
|

10-18-04, 05:29 AM
|
|
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...
|

10-18-04, 03:55 PM
|
|
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
|

10-19-04, 10:23 PM
|
 |
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
|

10-20-04, 09:05 AM
|
|
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...
|

10-20-04, 02:17 PM
|
|
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
|

10-20-04, 07:41 PM
|
|
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...
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|