473,320 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

posix_setuid() is broken on snow leopard. why?!

posix_setuid() is broken for me on snow leopard.
I can't get this code snippet to return anything other than Error when executed in PHP 5.3.1 / Apache 2.2.14 on OSX 10.6.3

Expand|Select|Wrap|Line Numbers
  1. // Set our real user ID to root
  2.     $success = posix_setuid(0);
  3.     if (!$success)
  4.     {
  5.         print "Error: Cannot setuid().\n";
  6.         return 1;
  7.     }
  8.  
I know this same code snippet works on my other machine running PHP 5.3.1 / Apache 2.2.12 on Ubuntu 9.10.

Any ideas? I'm going crazy!
Apr 30 '10 #1
0 1142

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: JKD | last post by:
I'm looking for a script in javascript that simulates the snow effect on my web site. I've searched in google but scripts I found use applets or move images on the screen. I had a javascript with a...
5
by: toronto | last post by:
I'm stumped. I'm playing with a javascript that produces falling snowflakes on screen. I got the script from this author: http://thelocust.org/projects/snow2/ If I hotlink to the exploding flake...
11
by: Imok20 | last post by:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I am unable to compile C programs. GCC is there, but it can't find a library. I'm currently running 10.5.1. Perhaps there's a...
4
by: mark | last post by:
I've recently switched from Ubuntu to OS X Leopard. I have some python scripts which download info from the web. The scripts were working fine before on Ubuntu, but urllib seems to work really...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
3
by: Gordon | last post by:
Has anybody had any success compiling a PHP build for Leopard, specifically for Leopard running on a 64 bit Intel architecture? I have been using the Entropy builds up to now but there has been a...
1
by: blackbiscuit | last post by:
Hi, I wanna have boost installed on my mac leopard system. I have searched through google and it seems the boost can not been directly installed but through tools like macports. Since it is...
6
by: Massi | last post by:
Hi everyone, I'm trying to install Python2.6 on my mac (Leopard 10.5.5), but I'm encountering some problems. To install the package I followed the instructions I found at this link:...
2
by: anuj001 | last post by:
I bought a new macbook with snow leopard os.. I am having trouble resizing the fonts in idle which is a python IDE to an appropriate level as the default size is very small. I tried changing it with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.