Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Linux File Permissions On Maildir, Apache User


i have the following problem. I am trying to create maildir
directories on the local filesystem then chmod, chown them to
courier:courier (for courier mail server). the courier mail server
reads and writes on these maildirs on the local filesystem and they
need to have courier:courier ownership. it does not work because the
directories are created with apache:apache ownership and apparently
only root can change ownership. My question is as follows. Is the
only solution to this problem to add the courier user to the apache
group?




View Complete Forum Thread with Replies

Related Forum Messages:
How To Delete User In A Linux OS Using Apache
i'm using shell_exec('userdel -r $username');

but the user account still cannot be deleted from linux there.

View Replies !
Running PHP/Apache On A User Mode Linux Machine, Where To Stick Mysql?
I hope no one minds me running this past them.

I'm running a linux machine with with apache, php and mysql. This is not
accessable from the internet. I want a server that is visable to the
internet. For that purpose I am running a user mode linux machine and using
apache on that as the external looking web server. This means that stuff I
want to see on the outside is on a copy of apache that is doing little and
does not get messed around with as much as my main copy of apache.

I am not using mysql with it at the moment. If I do am I better running
mysql on the user mode machine or running a second copy of mysql on a
different port on the 'main' machine. I'm beginning to think the latter
has advantages.

View Replies !
Apache Php Write Permissions
I have two webservers. I can run php code fine on one but not the
other. Both webservers can read files only one can write. I have looked
around at other posts and they point at not giving permissions to the
apache user.

I have chmod 777 the directory /var/www/html and the subdirectory test:

View Replies !
Apache Needs Permissions To Write In
I have a script designed to read a number of images and make thumbnails of them. These thumbnails are stored in /thumbs/ as tn_filename.jpg. And so apache needs permissions to
write in ./ so it kan create thumbs and the files therein.

But I also want to upload pictures directly to ./ with FTP/SSH without logging in as apache. Code:

View Replies !
Permissions On WinXP/apache
i'm trying to perform a upload operaion on my web site but i got a "permission denyed" error when i do de copy() function. script: PHP Code:

if (is_uploaded_file($_FILES['archivo']['tmp_name'])) {
    
    //chmod("C:/Apache/wwwroot/ap_registro_tareas",775);
    
   copy($_FILES['archivo']['tmp_name'], "C:/Apache/wwwroot/ap_registro_tareas");
} else {
   echo "Possible file upload attack. Filename: " . $_FILES['archivo']['name'];
}

View Replies !
User Permissions - User Level 4 Or 5
I'm making a website with an admin section, and one facet of that is user management. I've made a script for this task, but I want it to be accessable only to people with user level 4 or 5. Here's the code for the script. At present, it isn't accessable to anybody, even level 4 and 5 users. Code:

View Replies !
PHP Not Available On Apache (Linux)
I am a newbie to Linux, and therefore having a difficult time of installations that are probably quite mundane to "high-timers." I hope this is the correct newsgroup for a posting like this, but if not, please suggest other newsgroups.

I have installed PHP4 on a LInux/Mandrake machine, running Apache 1.3.12. All installations are compiled and installed in the default locations.
In the browser, I see a text printout of the .php document I'm requesting, rather than the executed form.
File types of:

AddType application/x-httpd-php .php3 .php4
AddType application/x-httpd-php-source .phps

have been added to the Apache config file.

I have a list of what PHP was compiled with, and --disable-short-tags was not one of them.

Execute permissions (755) have been added to the files I'm trying to see.
The INSTALL file called for mod_so which would be visible if httpd -l was run. It was. The five steps required in the "Quick Install" went through without a problem. Actually, I'm just trying to execute that tiny .php file that they give you... <?phpinfo()?> .

I've done the copying thing:
cp php.ini-dist /usr/local/lib/php.ini

In the INSTALL file, it calls for LoadModule php4_module libexec/libphp4.so to have an entry in Apache's config file. I don't see one. I also did a search for the libphp4.so file, and there's none to be found. A search for libphp4 shows a number of files, but none with .so extension.
This PHP installation was performed from a php-4.01pl2.tar.gz download - is this the right module?

As a note, CGI forms and MySQL queries work fine on this machine.

View Replies !
Apache, Php And Linux
I want to be able to use the php COM object to instantiate MS Word for a mail merge application I'm writing in php. I know this works like a charm on  a Windows Box because Windows is MS but my question is will this work on a Linux server? In order for this to work in Windows I need to change the login properties of the Apache Server and tick the box that says 'Allow service to interact with desktop '.

View Replies !
User Permissions
I would like the users to login and be assigned a guess pass as a general permission where they can view the contents of the databse information based on the form they visit. That's no problem, but how do their permissions get upgraded to -Level2-being able to add to the database and view the contents?

Then -Level3- hasving complete control add/view/update/delete records from the database? At what point does the upgrade happen, and what do you base the upgrade on?

View Replies !
Php From Windows To Linux/Apache
I want to write php3-files in windows and then transfer them to a Linux-machine to run them on an Apache. Is it possible?

View Replies !
PHP 5.1.6 And SOAP And Apache On Linux
I thought I could just use the --enable-soap when I configure php, but
that does not seem to work. I was looking for it to create a
php_soap.so but i dont see it. I get this when I try and access the
page:
Fatal error: Class 'soapclient' not found in
/home/as411161/apache/htdocs/index4.php on line 3

If I run php from a command line, things work fine.

View Replies !
Is PHP The Best Language On Linux With Apache?
I am about to use server side technology with our new server (I want to begin using dynamic pages). These are the details:

Apache Web Server 1.4 on Linux Red Hat 7.1
PHP 4.06
Perl 5.6
SSL
MySQL 3.23

Could you tell me what is the best server side language to use for dynamic pages? I know PHP is becoming very popular. But I am from an ASP and JSP background. I could set up the server to use JSP and servlets etc but is there much point if PHP and Perl are installed? I've heard these are good and fast!

View Replies !
PHP, Apache (Linux), And Modules
I plan on installing PHP and Apache on a Linux box. (Plan on doing it with
binaries that come with Linux distro.)

One thing I'm confused about is how PHP is run as a module. I'm not that
familiar with this stuff, and I would have thought that there's something
called mod_php that needs installing. But I can't find much reference to
anything like that anywhere.

(Want to install as little stuff as possible.)

View Replies !
Questions Regarding Linux/Apache
I have always written code for Win32 based servers, however, at my office, I have been tasked with ensuring more secure controls over our internal web servers, and as such, I think going with a *NIX solution is the best option, so here's what I've done. Code:

View Replies !
Php Configuration For Mssql On Linux With Apache
I'd like to know the easiest way to make my php access to a mssql database.

Is there something to do as easy as uncommenting an "extension" line in the php.ini file (like for win32 platform)?

View Replies !
Php,PhPBB,Apache,MySQL,Linux
The problem is that i must run a BulletinBoard like Helpdesk program. Somebody else made this program. but in the vacation the shutted down the linux server. Now the Database doesn't work anymore.

The error he gives is:

phpBB : Critical Error

Could not connect to the database

I installed al programs again (Apache,Php,MySQL). And then i put back the backup from the database/phpBB program. I already asked some people and they say it is maybe the link between the database and the MySQL.

View Replies !
Dom And Excel Under Linux/apache/php4.04
I'm wondering if there is a way for me to create an excel document and fill it with the fields that have been provided to me by the user using a form ? can it be done using dom even if I don't use windows/iis ?

I guess that under NT/IIS that whould be possible but I don't use NT/IIS I want to do this using Apache/PHP/Linux.

If not, then do you think that I could do this:
-create an empty excel document under windows
-copy it on linux
-now from linux/apache/php, every time instead of creating a new one I copy the empty excel doc to a new doc ex: empty.xls to form.xls
-create the sells I need, populate the excel doc and send it via mail ?

View Replies !
Running PHP 4 And PHP 5 Together As Modules, Linux, Apache 1.3.x
We have been running PHP 4.x on Apache 1.3.x with
no problems. After the first upgrade from php3 -> php4 were
were able to load both modules for php 3 and php 4 with no
problem. With an AddType directive we forced php 3 execution
for just those files ending in php3.

Thought we could do the same with php 5. We have a
lot of folks on 4 who may not be ready to upgrade yet, so
we were planning on letting php 4 handle anything ending in
..php or .php4 -- and use php 5 for just php5 extensions.

Did the same thing as before in our Apache Config,
we are running on Redhat 9 -- but can't get both 4 and 5
running together. It seems we can run one or the other, but
not both -- when we start apache we get ONE server process
that just sits there, nothing in the log files?

After some web searching could not find much, one
guy said there was a conflict in memory management and
you can't run the two together?

Anyone got this to work and how? Had posted this to
the alt..php group and still looking for a solution?

View Replies !
Installation Php For Ldap And Apache Under Linux
i'm trying to compile for apache the php with a link for functions ldap In a static way with apache , i have to launch a configure for apache first , then i go to php and i launch a configure --with-apache= directory apache --with-ldap = directory ldap and i finish with make and make install for php:

this is functionning The last thing to do is to activate module php for apache with the following command for apache :

./configure --activate-module=/src/modules/php3/libphp3.a

and after make and make install but when i launch the make the functions ldap aren't not found I use apache 1.3.12 , php 3.0.17 and openldap 1.2.11 and a linux mandrake 7.0.

View Replies !
How Can I Delete The Default Apache And Php On Linux?
I installed php4.0.2 and apache 1.3.12,but I use the function phpinfo() checked the version of the php,it always tells me it is 3.0.15,so I want to delete the default apache and php on linux,so I can install new php4 and apache and it can connect to the mysql.By the way how can I get rid of the php and apche which the in linux when I installed the linux.

View Replies !
Apache,MySql,PHP On Windows Vs. Linux
Crazy (possibly dumb) question here...
I have a site running apache, mysql, php in a Win2K environment.
Primary development is that env also. I also am setting up a linux box
(old laptop), to begin playing with Linux. I'd like to set it up
similiary with apache,mysql, php.
If I do that, and start doing some development there (Linux box) - can
I expect that when I move the php code to the windows box that it will
behave similarly as it did on Linux?
Anything to watch out for? I'm completely new to Linux...

View Replies !
Install PHP5 And Apache 2.2.2 (Linux)
I'm running into the same problem that no doubt many are. I'm installing PHP 5.1.4 and Apache 2.2.2 on the same server, but Apache won't recognize the PHP module, saying it's garbled.

I understand from reading various bug reports that PHP will release this option come 5.2.0, but I want to know if anybody has PHP 5.1.4 and Apache 2.2.2 working under Linux yet.

View Replies !
Version Of 5 That Can 'module' Together With 4 On Linux/Apache
We are slow in rolling out PHP 5 to our users because it
won't live as a module with PHP 4 in Apache 1.3.x/Linux. I have
seen many workaround like running it as CGI or using a reverse proxy
to forward php 5 requests to another server. Code:

View Replies !
Showing User Permissions From A Database
Anyone know how to show what users have permission to a mysql database a la cPanel?

View Replies !
Php,apache,mysql,phpmyadmin Bundle For Linux?
Is there a bundle that will work on RedHat 7? I wanted to check first because I heard that the RH 7 rpm's dont work right.

View Replies !
Can't Link Gd Library To 4.3.4 Running On Apache And Linux.
It installed the files by default in /usr/local/lib and /usr/local/includes.

I'm using a debian based distribution called Knoppmyth that installs php and apache automatically. When I run phpinfo(), it tells me that it was compiled with gd support like so --with-gd=shared,/usr.

I'm not exactly sure what "shared, /usr" means though. I'm assuming it means its looking for the gd library files in the /usr directory but I don't know why the word "shared" is there. Code:

View Replies !
User Permissions Problem With Created Folder.
I use an indexing script that generates thumbnails for pictures and
stores them, so the next time someone requests a directory listing,
the thumbnail is already there and needn't be re-created.

Now, the problem is, the script cant create the thumbnail folders
because the base folder is owned by a normal system user, while the
script-screated folders or images are owned by the httpd, www-data. Is
there a way to have folders/files be created under the correct system
user?

View Replies !
Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
I did the following as instructed in the docs. (see below)
everything seemed to install ok
and I started apache with no complaints, but,

1)I do not see a process for apache using ps -ef
2) In yast I see that the new apache2 version is installed but not
php5, its still on php4

any ideas ?

1. gzip -d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar -xvf php-NN.tar
5. cd httpd-2_0_NN
6. ./configure --enable-so
7. make
8. make install

Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM
prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.

9. cd ../php4-NN
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini

Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.

14. Edit your httpd.conf file and check that these lines are
present:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

The path on the right hand side of the LoadModule statement must
point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.

15. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start

View Replies !
Libmysqlclient.so Unresolved Mysql_close On Apache Start, Non-linux
I have a successful compile with no complaints of dso php with
mysql that is getting the message, mysql_close not resolved in
libmysqlclient.so on apache start after install in libexec.

There is a suggestion in the online php docs to add something to
ld.so.conf, but we're on Tru64, don't have that option. There's also a
suggestion to set LD_LIBRARY_PATH, and I've done that at both compile
time and apache restart time with no success found.

I've put links to libmysqlclient.so in various places on my system to
get it to load at apache start, is that the problem? Is one of these
libmysqlclient.so locations looking for other same-dir mysql libraries?

View Replies !
Content Management System With Robust User Permissions
I've been searching for hours for a CMS which has a lot of options for
user permissions. It has to be free and while mySQL is fine, it can't
require root permission to install.

Specifically, I want to be able to create news annoucements and links
to files, images, etc that only users of a certain group can access.
Basically, this is going to be the internal section of my company's
website where clients will login to get news pertaining to them, get
their latest invoice, etc. Eventually they want me to incorporate
SolarWinds stats into it - whatever that is.

View Replies !
How To Set Username & Password Dynamically In Apache Settings For Linux Server In Php
This settings allow only one user to access folder.

<Directory /home/webdav/zahn>
AllowOverride None
Options None
Order Allow,Deny
Allow from All
<LimitExcept GET HEAD OPTIONS>
Require user zahn
</LimitExcept>
</Directory>

But we want to access all directory to respective users. that users are from our user table. Please check webexone.com & WEB FOLDER functionality for mapping network drive. then you can understand better way. Code:

View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error:

"Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf:

Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id"

Does anyone know what is causing this error,or what I can do to correct it?


View Replies !
Use Php Add User In Linux.
Can I write php script to add user in linux? Is it has security hole if this script run under SSL?

View Replies !
Apache Conf To Make The PHP's System Command Works On Linux.
I've got a big problem to make my code works.
My system() command don't seems to work.

for that code :

$res = system($command);
echo"res = $res<br>";

the result is "res = " and the command is not executed.

I feel that it come from my Apache configuration.
However my safe_mode_exec_dir is pointing on the dir of my exec code. My OS is Unix.

View Replies !
Authenticating Against Linux User.
I'm looking for a Tutorial about Authenticating using PHP and Linux User
Accounts. Can some one point me in the right direction?

View Replies !
How To Create New Linux User Account By PHP?
how to create a new Linux user account by PHP, so that only that user could go to his won account? I tried system("useradd xxx") but didn't work...did I forget anything? or are there any other ways to do that?

View Replies !
Php Script - Create Mail User - Linux/Postfix
I have a personel server (I learning) with Linux
I use apache, Php, Postfix.

I want create with Php script a mail user by web form (yahoo like) I
don't really know Php. May be someone can give me a example. I want
permit at my friends to create their own email account.

View Replies !
Apache User Through Php Possible?
As a part of a "system test" page I'm writing, I want to find out what user that apache is running for the virtual host that it is running.

Ex:

(from apache's conf file)
DocumentRoot /home/ron/public_html/
User ron
Group ron

I want to find out that the virtual server is running as user "ron".

View Replies !
File Permissions
Im in the process of creating a web based frontend for a program called ASK (Active Spam Killer - http://a-s-k.sourceforge.net) and am currently running into a problem. Currently there is a perl based web front end, but it lacks functionality, and is rather bland, although it does work, and it works without changing any file permissions.

The problem im running into is that PHP requires me to make changes to file permissions (ASK files are located OUTSIDE of the web tree) which might end up causing problems as far as security and privacy of email. Has anyone come to any reasonable answer for this type of problem as im sure its a issue for other programs people write.

View Replies !
File Permissions....
I've read the stuff concerning writing to a text file and the related file permission issues on this forum.I have a script that does just that, it takes user-entered data from a Web Form and dumps it to a text file on a server.

This works fine on my private server, but is giving me the error...."Could not open stream.Permission denied on Line..." on the company server...The Company machine uses Windows XP.

I've tried talking to the System Administrator regarding the Permissions,but he says that giving READ/WRITE/EXECUTE Permissions could create Security Issues.

I have been told that previously,a script written in ASP had been used that did exactly the same thing i.e writing to the text file, but there were no File Permissions needed to be set!

View Replies !
4.3 And File Permissions
I know that the PHP "chmod" command sets file permissions, but how do I
retrieve what the permissions are for a particular file using PHP 4.3?

View Replies !
High Performance And High Avalaibility Platform On Linux/Php/Apache/mySql
i'm setting up a website with a forecast traffic of 70.000 sessions and
1.000.000 pageviews a day.
I'm in trouble about the short budget I have (about 10K $) and the big
traffic and so the best architecture I can set up.
Any Idea about I can do?


View Replies !
Apache + PHP + USER Table
How can i do to combine Apache user authentication using a "USERS" table from mysql under win32 environment and making an algorithm with PHP, use sessions, etc?

View Replies !
User Authentication With Apache
Another interesting form of security that I use, more as a **deterent** than anything, is randomly named symbolic links to secure areas of a website. I create a temporary symlink for every login so that nobody gets the same url twice.

Therefore, they can't bookmark it or share it with a buddy. The actual directory/files sit outside the web root. So, the user needs a symlink to see the secured section. Of course, allowing symlinks via the web root to any directory on your server machine, regardless of the owner or group, creates a possible security risk in itself.

View Replies !
.Net User Interface On Apache
I'm in the process of making the specs. for a web app.

I was going to base it on Apache and PHP but the end users are begging me for a .Net UI because they are used to .Net and XP. To be honest I to think that the .Net UI is nice.

Having said that I would hate to base the app. on an expensive and slow MS platform. So my question is:

Is it possible to an open source platform for backend and .net for front end? Or even better. Can I program a .Net like UI in PHP?

View Replies !
Problem With File Permissions : PHP / FTP
My php-script makes directories and puts files in it.
But via FTP'ing, I can't delete those files anymore.

Also, I need to put a whole bunch of existing files into these,
'made-by-php' directories, and that seems impossible
by means of FTP. I get an 'access denied' error every time.

View Replies !
How Can I Have Permissions To Delete A File?
How can I have permissions to delete a file? example: I have to delete a file, but I don't to public users have permission to delete that file but, with a certain "login" they can.

View Replies !
File Permissions After Copy()
This function basically creates a new dir in a determined location and copies the files from an established dir to the new dir. It copies the files and creates the folder ok, bit it sets the file permissons to 755 for the new folder and file contents. I then get a 550 error if I try to delete or chmod them. Any suggestions? I get permission errors in the script if I use the chgrp and chmod functions also. PHP Code:

View Replies !
How Do You Create A File In PHP And Set Permissions To It?
How do you create a file in PHP and set permissions to it?

View Replies !
File Permissions In Win98
I just wanted to know if there was any way I could change my file permissions so I can use the fopen function in windows 98 using Apache and PHP 4.04???? I know how to do it for Linux but I need it for Win 98.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved