Before this thread happens, don't tell me to chmod the file to have execution privs. I want umask to work properly, with no seperarate chmod required.
For some reason, on every single system i've tested this on, linux, freebsd, vps, standalone server, fresh install of operating system, any time I test this, it ends up with the same issue.
Running `umask 000` should result in files created from that point on having a chmod of rwxrwxrwx. However, they always end up having a chmod of rw-rw-rw.
If I create a directory after setting the same umask setting, the directory ends up with rwxrwxrwx.
Code:
root@bonkers[/usr/local/etc/php/umask] $ umask 000
root@bonkers[/usr/local/etc/php/umask] $ touch 000
root@bonkers[/usr/local/etc/php/umask] $ mkdir d0
root@bonkers[/usr/local/etc/php/umask] $ ls -la
total 10
drwxrwxrwx 5 root wheel 512 Dec 6 03:31 .
drwxr-xr-x 4 root wheel 512 Dec 6 03:21 ..
-rw-rw-rw- 1 root wheel 0 Dec 6 03:31 000
drwxrwxrwx 2 root wheel 512 Dec 6 03:21 d0
I basically have a script that uses passthru when people login with FTP so it can connect users from multiple interfaces.
Thing is, it uses the default php.ini file so, to get this script to work I have to enable passthru in the default php.ini file, affecting all users with an account. I am currently running SuExec and can change the php.ini file each user uses from httpd.conf. But as far as I am aware the FTP user isn't in httpd.conf.
What user does FTP run under and how can I use a custom php.ini file just for the FTP daemon. Also, as a side note, what are the effects of passthru and can it be used for malicious intent if wanted?
I have 2 servers, both servers have apache... I have my apache on my 2nd server create a few images into a folder... and that folder is shared with server 1... however, those images are not viewable by server 1... not sure what the umask is, but I would like it to be 0022/644 when server 2 output images into that folder...
i try to restore a backup from another hosting to my server and always get stucked on "restoring reseller privs"
i'm using restorepkg username and got this error
Code: not a reference at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 27 at whm i can transfer multiple account and select "skip restoring reseller privs" but in this case my old hosting doesnt provide ssh access.
i was wondering is there any paramater to skip that? something like
Lets say I have a file, doesnt even need to have any PHP functions in the document, could be just pure CSS / images. Say I have a copy of this file named something.html and a copy named something.php, the php one takes about 5 times longer to load than the html page. You can see 90% of the page loads and then it sticks with the loading bar nearly fininshed, waits a while and then pings to finished and the remaining parts of the site load (usually footer links etc).
This has me stumped, even has my hosts stumped. Would any one have any idea why this may happen? Something to do with the installation directory of PHP or location of php.ini?
This is on a Windows 2003 machine running IIS6, I have tested the same files on a Linux installation and its perfectly fine.
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ante/public_html/me/classes/http.php on line 418
Warning: fclose(): supplied argument is not a valid stream resource in /home/ante/public_html/me/classes/other.php on line 145
when i try upload big files (up 140mb to my vps using RapidLeech and here my php.ini [url] i chnaged the php.ini to the new value and restart http only
my vps info safe mod : on Operating system: Linux PHP version: 5.2.5 Apache version: 1.3.41 (Unix)
During the last couple of weeks my main server has started acting weird.
Sometimes(often) when accessing my site, I get a page saying that server or location could not be found. Reload and "bam" page loads again. Average load on the server is 0.50
When executing scripts (I.E uploading files using web2ftp or cp file manager) server shuts the connection after a few seconds and say page cannot be found.
I set the execution time in php to 60sec, so this is not the issue.
When I ping the server, I do not get any packet losses.
At times as I'm developing, due to some coding error in PHP on my part, particularly calling a COM object, the apache server crashes. I'm delighted that it recovers, but in so doing it always tries to rerun the query that crashed it, which just causes another crash, and so on. Is there some way of getting round this, so that it recovers but the problematic code is not rerun?
XP SP3 (still!) Apache/2.4.3 (Win32) mod_fcgid/2.3.7 PHP/5.4.9 Firefox (Aurora)
Details: Doing restart of Parallels Installer... File downloading products.inf3: 100% was finished. File downloading plesk.inf3: 10%..20%..30%..40%..50%..60%..70%..80%..90%..100% was finished. File downloading ppsmbe.inf3: 17%..26%..37%..47%..57%..78%..88%..100% was finished. File downloading sitebuilder.inf3: 22%..35%..48%..60%..73%..86%..100% was finished.
[code]....
ERROR: Currently installed version of product with ID 'plesk' is not available from download site anymore.Please upgrade to the next available product version to receive software updates.Seems like the RPM got damaged, but I already fixed that part, now when I put "install" I'm geting the following Installation started in background..Getting bootstrapper packages to installation list:
Following bootstrapper packages will be installed: (empty) ---------------- Getting packages to installation list: Following packages will be installed: (empty) ---------------- Loaded plugins: fastestmirror
Patch for plesk 12.0.18 will not be installed since it is already applied.Error: You already have the latest version of product(s) and all selected components installed. Installation will not continue.HOWEVER the "mail" and mail server configuration no longer shows in "tools & settings".
while i am restoring db (110MB) via SSH following error occur
Code: ERROR 1064 (42000) at line 145689: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Fatal error: Maximum execution time of 30 seconds exceeded in ' at line 1
I have this error when i put import to mysql database
Code: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<script></script><p>ERROR: Maximum execution time of 300 seconds exceeded (Util.' at line 244
I have in domain > doemainname > max_execution_time Standaard Geef een aangepaste waarde op 0
and insert in usr/local/psa/admin/htdocs/domains/databases/phpmyadmin in the file config.sample.inc.php following command $cfg['ExecTimeLimit'] = 70000;
My mail server receives tons of messages directed towards bogus, non-existant addresses at my domain. When those addresses don't exist, it creates a reply email with the subject "Mail delivery failed: returning message to sender". How do I stop exim from doing this?
I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily.
God knows what just happened... but in a positive way, customer is extremely happy!
So...
Both servers are on cPanel - with root access (duh)
200 odd files which total to 25 GB
1 database about 100 MB in size (no biggie)
I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.
When I upload a file in FTP I can not see the file, When I upload the file again asked me to file any replaced it exists, When using Cpanel can upload any file, And working well.
When watching the size of folders I find little in the FTP but sized Cpanel see him very different.
I found that recently a lot of nobody files appear in my /tmp.
I delete and delete.. by still same. I don't know how to trace where they from. I suspect is from my hosting users, but I don't know how to check and trace. Anybody can give me some guide?
I've just uploaded my website files onto the server, the website is working fine, but I'm not sure my files are 'arranged' right. I uploaded my images in a folder, but all the rest of the files are 'loose' along with the index file. If I go to either of my domain names, the website appears, which is ok for now, but I only really intended it to under one domain name, so there may be problems if I want another site up there. I think my files should be in a folder. Is this right? Should the index file be in the same folder, or should it be outside the folder with the links changed accordingly. I've been emailing my hosting service, and they 've been trying to help, but I feel a bit thick because I don't really understand what they're saying. Could someone tell me in very plain english how the files should be arranged?
i just bought php file management script, its running smoothly, the only problem was i cant upload big file ( > 1 Gigs ) using that script, then i ask the developer and he said it shouldnt be a problem since he sold that software before people and he never got a problem like that.
OS : Slamd64 apache 2.2.10 php 5.2.8
i tried to changed post_max_size = 1900M upload_max_filesize = 1500M
There is a directory with many files and subdirectories. I want to copy ALL the filesnames beginning with post-1111 to another folder. What is the command to do this?