DirectAdmin - Access Denied For User 'apache'@'localhost' (using Password: NO)
I get the following error when let my site connect to my database: Access denied for user 'apache'@'localhost' (using password: NO)
But when im running lil test script which connect to my localhost with the same passwords and it gives the status 'Connection OK' (im running on admin account, made a MySQL account with DA)
Code:
<?php $link = mysql_connect('localhost','admin_removed','removed'); if (!$link) { die('Could not connect to MySQL: ' . mysql_error()); } echo 'Connection OK'; mysql_close($link); ?>
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
ERROR 1045 (28000): Access Denied For User 'root'@'localhost' (using Password: NO)
Im trying to setup a mysql server on my centos vps server. Ive installed mysql server and done chkconfig and the mysql server has started. My problems start when i want to set a mysql root password. Quote: mysqladmin -u root password yourrootsqlpassword mysqladmin -h server1.example.com -u root password yourrootsqlpassword I get an error "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)" Which i totally dont understand because why would it want a password when im trying to set the password?
View Replies!
View Related
Access Denied For User 'root'@'localhost
I'm getting the error after running [root@server ~]# mysqladmin processlist Quote: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' I'm running plesk on FC4. Not too sure why it says failed or denied, as I'm root?
View Replies!
View Related
ERROR 1044 (42000) At Line 21: Access Denied For User 'umar_cs'@'localhost' To Data
in ssh i try create new database root@server1 [~]# mysql -uumar_cs -ppassword umar_cs </home/umar/public_html/localhost.sql it is show direct ERROR 1044 (42000) at line 21: Access denied for user 'umar_cs'@'localhost' to database 'umar_cs' i try from script same message i think maybe the problem from the size in this file /etc/my.conf set-variable = max_connections=500 i change to set-variable = max_connections=500M and restart mysql and i try create same problem!
View Replies!
View Related
MySQL: Access Denied For Root User
When I deleted a database, the user apparently was orphaned because when I tried to recreate it, it returned "user already exists". I've never encountered that problem although from Googling, I see others have and they delete the user to get around it. When I log into mysql using the da_admin@ account and attempt to remove the user with drop user <user_name>; I receive the following error message: ERROR 1227 (42000): Access denied; you need the CREATE USER privilege for this operation It seems I don't have rights even as the root user. How can I get remove the orphaned user?
View Replies!
View Related
ERROR 1044 (42000) At Line 15: Access Denied For User
My server is new from SoftLayer when i try to restore Data Base He Give Me this Massege ERROR 1044 (42000) at line 15: Access denied for user 'mov_uu'@'localhost' to database 'mav2' i try to restore another data base he give Also A masseges ERROR 1064 (42000) at line 1: 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 And i have Upload Center It Was Work 100% Suddenly He give me Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request ------------------ also Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/home/nameofuser/public_html/vb/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
View Replies!
View Related
MS Virtual PC - How To Access My Localhost (Apache) Subdomains On Guest OS?
I've just downloaded Microsoft Virtual PC and the Internet Explorer 6 Application Compatibility VPC Image containing an XP installation for testing sites with IE6 [url]. Everything works fine, I chose VPC Shared Networking (NAT) and I can access the internet from the VPC as well as my Apache development server which runs on the host OS (Win XP) by going to the host's IP address which is [url] in my case. And here I have 2 problems: 1. I want to access [url]on VPC just by typing [url]. I added the following line to the hosts file: 192.168.52.141 localhost But this doesn't work. Interestingly, any name other than localhost works fine, for example: 192.168.52.141 localhost.localhost or 192.168.52.141 local This is not a major problem but I'd prefer localhost. Any ideas how to do that? 2. And the more important issue: on my host OS I have some development sites which I have set up to be accessed by subdomains, for example [url], in httpd.conf: Code: <VirtualHost 127.0.0.3> ServerName perfekt.localhost DocumentRoot C:wwwperfekt DirectoryIndex index.php index.html </VirtualHost> and in hosts file: Code: 127.0.0.3 perfekt perfekt.localhost And now I want to access this site from my VPC too by using subdomains like this! How can I do that? The address 127.0.0.3 seems to be local to the OS and VPC can't see it. I have tried setting other IP addesses in httpd.conf but nothing outside the 127.x.x.x range works on either OS. I suppose I need to make each of my sites to be seen under a different IP from the outside network so that VPC (which is "outside" the host OS) can access them - then I just set up the appropriate subdomain names in VPC hosts file -
View Replies!
View Related
Installed Apache Can Access Via LAN IP + Localhost But WAN IP Doesnt Work
I'm on windows vista. I've got an SDSL line into the house with a dedicated IP 62.etc. I've then got a Prestige 791R and all PC's plugged in to that. I've also got a wireless router for my Wii set up. Basically I've set up this DHCP thingy to start at 192.etc.3 and the Wireless router is at 192.etc.1 and the Prestige is at 192.etc.2 my pc is at 192.etc.9 This is about where my knowledge stops unfortunately. I have installed apache as the most basic default install I think you can and it seems to be working absolutely fine. I'm assuming I could also install PHP and MySQL etc and wouldn't have too much of a problem, however, my friend cannot seem to access the environment from the WAN IP and when I type in my WAN IP I get the prestige router's control panel. I read somewhere that I needed to forward port 80, now I can 'open' ports in the prestige control panel but I did try opening port 80 in the control panel and pointing it to my LAN IP (92.etc.9) but it didn't seem to work. I'm at a bit of a loss so if anyone could point me in the right direction I would be most grateful, just to clarify: //localhost loads the html file 100% //192.etc.9 loads the html file 100% //62.WANIP internally loads my prestige routers control panel //62.WANIP externally does not load a page (cannot be found) If you need any more info just let me know and I'll get it.
View Replies!
View Related
Apache, Linux, Access Denied Error
I have apache, php, and mysql setup on CentOS 4.4. I have phpMyAdmin running perfectly in a folder in /var/www/html/phpMyAdmin. I can access phpMyAdmin and use it perfectly. I downloaded Cacti which is a server monitoring application written in php, nothing special. I untar the file and it creates a folder, I simply do a mv command from /home/sys/cacti to /etc/www/html/cacti. Then when I open my browser and attempt to access: [url]I am getting a Access Denied error. It makes no sense though, I have verified the permissions of the files and folders, all good. The group owner and owner are root, the files are all -rw-r--r-- and the folders are drwxr-xr-x.
View Replies!
View Related
Limit Access To Localhost
I have a win2003 server running some apps in the 'default web site' I have just installed PHP on the 'default web site' and I want to use it to run some admin jobs. BUT I do not want the PHP scripts to be accessible over the internet, they should only run from local machine. Is it possible to set it up so that the files can be executed only by localhost?
View Replies!
View Related
Fast MySql Access- Localhost
I've been using Dreamhost for years and they're very good, but their MySql databases are quite slow. Then I moved to ServInt with a VPS, and my MySql is on localhost instead of on a different server. WOW! It's so fast! However, now I'm trying to find a shared hosting package that has fast MySQL service. I'm not sure if the requirement is that it's on localhost but it sure doesn't hurt. Is there anyone who is familiar of a good solid shared hosting package with fast MySQL service?
View Replies!
View Related
Server Access Denied
I have a strange problem that I encounter sometimes. I have 3 websites on my hosting account. About once a week, I will try to access one of those sites and I will get a timeout or connection error in my browser. I will not have any problem viewing any other websites and as soon as I restart my computer, I can view my sites again. It seems like either my computer, wifi router, isp or webhost decides to block me from accessing any of my 3 sites for no apparent reason. Restarting my computer fixs this. My ip does not change when I restart my computer so I do not know why it would suddenly allow me acces again but it does. What is this problem likley to be? A bug on my computer, a bug on my server? My isp being retarded? No one else seems to have any problems accessing my site, I would guess it is a local issue. What I can not figure out though, is why it only happens to my own websites on my hosting account. This never happens when trying to view any other websites except my own(on my hosting account). This cannot be a coincidence. It is a big mystery to me.
View Replies!
View Related
Mysql Access Denied
I've setup a mysql user and assigned a password for it. When I try logging in to it with Quote: mysql -u USERNAME -p and then providing the password I get an error: Quote: ERROR 1045 (28000): Access denied for user 'USERNAME'@'localhost' (using password: YES) I don't have trouble logging in as root and when I check the user table there, the password assigned to the user is same as the value the mysql function PASSWORD gives me. Really driving me nuts here, why is it telling me the password is wrong when it's not? I've tried: Restarting mysql setting new password changing username Using mysql server 5.1.34
View Replies!
View Related
IIS: Access Denied
I am installing a .NET application on a client's server but they don't know much about IIS and neither do I. I am having an access denied issue when browsing a recently installed website on a fresh .NET framework. The "%systemroot%Microsoft.NETFrameworkv2.0.50727Temporary ASP.NET Files" folder appears to have the correct rights, I read that incorrect rights could be a reason for this issue. What else could it be ? Code: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Puerto' or one of its dependencies. Access Denied. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'Puerto' could not be loaded. === Pre-bind state information === LOG: User = NT AUTHORITYServicio de red LOG: DisplayName = Puerto (Partial) LOG: Appbase = file:///C:/Inetpub/wwwroot/CFDOCS/home/ LOG: Initial PrivatePath = C:InetpubwwwrootCFDOCShomein Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:InetpubwwwrootCFDOCShomeweb.config LOG: Using host configuration file: ?c:windowsmicrosoft.netframeworkv2.0.50727aspnet.config LOG: Using machine configuration file from C:WINDOWSMicrosoft.NETFrameworkv2.0.50727configmachine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/web/13c8581c/98ca4568/Puerto.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/web/13c8581c/98ca4568/Puerto/Puerto.DLL. LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/CFDOCS/home/bin/Puerto.DLL. ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated. Stack Trace: [FileLoadException: Could not load file or assembly 'Puerto' or one of its dependencies. Acceso denegado.] ....
View Replies!
View Related
Can't Check Anything Always Access Denied
i got this message in my direct admin This message has been automatically generated notifying you that the service httpd is currently down and i searched and someone recommend to check using this order in ssh and i got this message Could not open configuration file /etc/httpd/conf/extra/directadmin-vhosts.conf: Permission denied and also i get permission denied for anything related to apache
View Replies!
View Related
FTP: Access Denied On Whole Server
I have many accounts on my server, everyone can connect via FTP but when they try to upload something they get "access denied", i get it too, sometimes it works for a few minutes and goes back to giving me access denied. I have not changed any settings since it was working just fine before. I checked the folder permissions, user permissions, used chown command to make sure the folders belonged to the correct users/groups and I disabled the firewall same thing, any ideas what might be going on? do you this I have a virus on the server? it's a linux server
View Replies!
View Related
554 Relay Access Denied
got a dedicated server with linux and I am using vhcs2 control panel on the server. I get a bounced message saying 554 <domain> Relay access denied. I get this message for any email address i send externally. If i send emails to any email on the server. It works fine. I am not familiar with the config of vhcs2 or how the mail works.
View Replies!
View Related
SSL Access Denied Error
Recently migrated a customer's website to a new server and transferred their SSL certificate. They are now reporting that some users are getting a "permission denied" error when trying to visit the site. The customer's developer and I are unable to reproduce the error anywhere. Please click on this site and tell me if you get a "permission denied" error: www.accreditationnow.com/
View Replies!
View Related
TheNYNOC - Billing Error And Denied Access
I've had a tiny VPS with Nynoc for a while, and have been satisfied with it's performance. Today, I just purchased their supervps 3 ($15/mo) and paid 6 months in advance. Although the full amount of the purchase was $90, I was billed only $85 in the invoice. My paypal account showed they had deducted $5 immediately before the order. Anyways, I completed the payment and got confirmation email. However, few hours later I come to learn via paypal emails that the subscription had been cancelled and the $85 payment refunded! I tried to login to the client portal, and surprise! Access denied! I tried to reset the password using the "forgotten password" link, now it says my e-mail address doesn't even exist in the database! I contacted support via e-mail and awaiting a reply. In the past few months I've received some weird invoices from nynoc. Sometimes they sent me invoice for $0, and then notify me that the invoice was paid in full! Clearly, their invoice & billing system is having trouble. And now I'm being locked out of my client area. (My old VPS is still running though.) Worse still, there was no word from the nynoc staff. Has anybody experienced billing errors with nynoc?
View Replies!
View Related
ModSecurity: Access Denied With Code 400 (phase 2)
We have a small Hosting reseller account at eNom. We have a new customer that moved his website from another hosting company to ours. The website is on a shared IP. Enom also uses a internal IP for internal use associated to the domain. The problem we have is that AOL users can not see the website. As far as we can tell no other ISP's are having this problem. Everyone can see it except AOL users. When AOL users go to the site they get "Page can not be found". After several calls to eNom support and them triple checking the DNS we still have the problem. I looked at the error log for the website this morning. I found several errors. I looked up the IP's with the errors and they all pointed back to AOL.. See below for two examples of the errors.... Is this a server problem or DNS? What do these errors mean and what do I do about it? The domain is http://2hotlicks.com . They sell Hot Sauce.. Would AOL block it because of the keywords in the Domain name? [Wed Oct 17 08:11:56 2007] [error] [client 207.200.116.7] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\bhttp.(?:0\.9|1\.[01])|<(?:html|meta)\b)" at REQUEST_HEADERS:Via. [id "950911"] [msg "HTTP Response Splitting Attack. Matched signature <http/1.1>"] [severity "ALERT"] [hostname "www.2hotlicks.com"] [uri "/"] [unique_id "uPWvAgoHAlYAAA25N5AAAAAI"] [Tue Oct 16 13:11:20 2007] [error] [client 207.200.116.137] ModSecurity: Access denied with code 400 (phase 2). Pattern match "(?:\bhttp.(?:0\.9|1\.[01])|<(?:html|meta)\b)" at REQUEST_HEADERS:Via. [id "950911"] [msg "HTTP Response Splitting Attack. Matched signature <http/1.1>"] [severity "ALERT"] [hostname "www.2hotlicks.com"] [uri "/combos.htm"] [unique_id "yddhwAoHAlYAAEEfgyEAAAAi"]
View Replies!
View Related
Configuring Subdomains In Apache On A Localhost
I'm currently trying to configure apache 2 to handle subdomains. This is on a local machine (not tied to any domain names) and I'm only doing it to research how the final structure of a site 'could' be setup. Basically I have a single install of Apache 2 running. The outcome eventually should be to have specific sub domains that all point to the same document root as the actual domain name. So eventually I will have: http://www.mydomain.com http://subdomain1.mydomain.com http://subdomain2.mydomain.com with both subdomains showing the content at mydomain.com (there is reasoning behind this but I'm not gonna go into that). I have apache setup as follows: NameVirtualHost *:80 <VirtualHost *:80> ServerName daneastley DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" </VirtualHost> <VirtualHost *:80> ServerName subdomain1.daneastley DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" </VirtualHost> <VirtualHost *:80> ServerName subdomain2.daneastley DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" </VirtualHost> Now on my local machine, only the top one works - the subdomains dont. if I add the following into my hosts file in windows, they all work: 127.0.0.1 daneastley 127.0.0.1 subdomain1.daneastley 127.0.0.1 subdomain2.daneastley the problem being, that I wish to test this enviroment on the local network. How would I go about having every computer being able to access this? I'm assuming it comes down to DNS stuff.
View Replies!
View Related
Mod_security: Access Denied With Code 406. Pattern Match
Taken from apache error logs, are these below legit or false alarms per se? This same customer is having issues with php sendmail (server uses php 5 w/ phpsuexec enabled) [Thu Feb 21 17:02:02 2008] [error] [client 216.9.250.112] mod_security: Access denied with code 406. Pattern match "!^[0-9a-z]*$" at COOKIE("PHPSESSID") [hostname "www.clientdomain.com"] [uri "/%23URL.ImagURL%23"] [Fri Feb 22 10:13:18 2008] [error] [client 189.24.155.203] mod_security: Access denied with code 406. Pattern match "',''));" at POST_PAYLOAD [hostname "clientdomain.com"] [uri "/xmlrpc.php"] ....
View Replies!
View Related
401 Unauthorized: Access Is Denied Due To Invalid Credentials.
I have just installed WHMCS on a dedicated Windows 2003 Server box with Plesk 8.2. I am getting the above error when I try to go to the billing subdirectory (www.mydomain.com/billing), if I don't input a correct username/password. Inputing a username/pass does work, and I did so to install it, but obviously this is not a long term solution. IUSR has read/execute/list rights to the parent httpdocs directory and inheritable permissions is checked. I have checked the child directories and files, and everything seems to have inherited the correct permissions. I am able to otherwise access my website, as well as TCadmin.
View Replies!
View Related
Changing FTP User Password
I've got an ftp account that was created in the very beginning and now I want to change the password to it but when I log in to my PLESK WINDOWS OS Control Panel and go under ftp accounts, I only see one account on there which is not what I've been using. My questions is, is there another way of locating other ftp accounts that I have? In this case, its the account that I've been always using and its not under ftp account in my plesk cp. I just really need to change the password to it n I can't find it. Im on Plesk Windows OS
View Replies!
View Related
Access DirectAdmin Site Without Domain - Possible With CPanel
I'm new to using directadmin and I've got a problem; I've not yet switched the DNS over to the directadmin server 'cause I want to make sure the sites work first, however I can't find how to view the sites. With cpanel you can go to http://192.168.1.1/~username (where 192.168.1.1 = IP of server and username is username of account). is this possible with directadmin? I can't find anything about it, anywhere.
View Replies!
View Related
Pda Access To Whm / Remember Password
I access whm from my pda via this method as told by cpanel's DavidG from support [url] However, there is no remember me option. I'm using Opera Mobile on my HTC Touch and really need some sort of remember me option. Opera mobile (or mini) do not have the wand function either. IE doesn't have any such feature either.
View Replies!
View Related
Website Permissions Issue / Trying To Password Access
I'm trying to allow part of a website to be secure and prompt for a password that can be access by a user/password. I'm running Win 2003 server and IIS 6.0 I have my website running fine. This is what I wanted to do. Allow the main page to be accessed by all. Part of the site needs to be secure and allow access to people only with a password. I thought I would be able to do this by creating a user with a password on the windows machine just like I have created users with FTP accounts that are logging in and using the FTP service fine. However, when I limit access to the folders. When I try to access it by internet it comes up with a user/pass box as I thought it would, but when I try to access it with the user/pass for a user that can auth fine for the win FTP service it doesn't accept it. how I can do this in IIS to allow secure access to part of a site and allow them to auth to login to part of the site only ?
View Replies!
View Related
How To Access Password Protected File Via Curl
I've got a file I want to access via cURL that is within a password protected directory. I've tried sending: Code: $headers = array( "HTTP_AUTH_LOGIN: admin3e", "HTTP_AUTH_PASSWD: opensesame", "Content-Type: text/html" ); curl_setopt($curl, CUROPT_HTTPHEADER, &$headers); (insecure) and: Code: curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, '[user]:[pass]'); but I can't figure out how to get past the login: Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Apache/2.0.52 (CentOS) Server at ****** Port 80
View Replies!
View Related
Lighttpd And Apache With Cpanel Or Directadmin
Has anyone done this or currently running this setup? to try it with my directadmin server first but havent found very good documentation or howtos. Ive looked the last week or so and havent really found anything helpful. So if anyone is running such a setup Id like to know how you did it and how much better if any it is.
View Replies!
View Related
Single User Can't Access Any Site On My Server
I have a user who says he cannot get to any site on my server from either home or work. He has been a user for many years, and has never had any problems. He has also checked with his IT at work and they confirmed the site is not available. He is computer savvy, so I trust he is telling the truth. His work and home are only 10 miles apart. Do you guys have any ideas what could be happening? Is there a DNS entry wrong somewhere? He can't access the site even when putting in the IP address. There is one other user reporting something similar but other than that no other complaints. The site works fine for everyone else. site is gm-trucks.com
View Replies!
View Related
Giving Chrooted User Access To Mysqldump
I have a chrooted ftp user that I use on my server. I would like to run a cron job using this user that backs up my mySQL databases. When I execute the job, it complains about date and mysqldump not existing. I was able to fix the date problem simply by copying it from the actual /bin to the chrooted /bin. However, I can't simply copy mysqldump because it depends on several libraries. Anybody know how I can give this chrooted user access to commands that aren't in his chroot?
View Replies!
View Related
Cpanel Not Allowing Access To User Accounts
On a new server we have running CPanel, we have manually created a user account and when i try and log into mydomain.com/whm with that username/password it doesn't let me. Now my second thought is that I should be logging into mydomain.com/cpanel rather than mydomain.com/whm but I get a 404 for /cpanel. If i'm logged in as root, i cannot transfer into the user account cpanel either...
View Replies!
View Related
Access RAM Memory & CPU Usage By User Files
I don't really now how this can be done, but as far as I can remember when I was in shared hosting, they always complaint about memory usage.... but they always know what specific files were cosing the most load on the server. So, I remember I have this count.php file that was constantly hited and the complaint and tell me exactly what file it was cosing the heavy load. This is just an example, but looks like they always knew the specific files that were cosing problems, so what the hell, this can be done! Now that I have my own server I would like to know these things as well, so I can know what files need to be optimized. I searched and searched and searched and... OK, you'll get the point, and I just HAVE NOT find any information on this. Can someone tell me this "secret"? What do you use to get the files that are cosing the most heavy load on a Linux server?
View Replies!
View Related
Apache User Authentication Logic ...
I'd appreciate if you can point out some links, or if anyone is willing to help me for a fee, we can talk about it. I have a web application called MyApp - Each MyApp user has 5gb hosting, and a web interface to manage their files. - Therefore MyApp user gets a user account on linux machine and has access to only one directory /repo/usr/<user_id> and nowhere else. (suexec?) - If that MyApp user creates a subdomain from any folder inside his home folder (he can do that using web interface), that folder is readable by www-data user not writable. - That myapp user is able to mount/unmount his own ftp drives using curlftpfs. - In short, users can only mess with their own files and they have no access nor rights to any other file that is outside of their home dir. In short, this is a kind of hosting company server setup. Right now, we will have to manage all this from -only- one powerful server.
View Replies!
View Related
Why Should Us Change The User/group Of Apache
APache is running under the "nobody" user/group as default in CPanel servers as a suggestion I should change it to another user/group to improve security! But in CPanel servers its hard to do that because you must edit some scripts and files to prevent the backing to nobody when running some scripts such PHP Code: /scripts/chownpublichtmls/scripts/enablefileprotect or when create a new account Some sites says "the secret of changing the user/group is in the UID/GID of nobody < 100 !" so I found a solution : 1 - delete the user/goup nobody 2 - recreate it with GID/UID > 30000 3 - run /scripts/chownpublichtmls so the question is that solution improve security or i should change the user/group to another one! like "www"?
View Replies!
View Related
Apache - Run Virtual Host As User
I've run into a wall trying to run apache with multiple websites allowing users to use FTPd to manage files. I'm running FreeBSD 7.1 on Apache 2.2.x The issue is that Apache runs as www:www but FTPd writes the files as username:client. When performing some scripts that edit back-end files, this obviously can cause errors. The data for each directory is stored in /home/username/www I looked into some apache directives I could use. I tried putting User and Group directives into the vhost configuration for each vhost, but that did not work. I even found the perchild module and it looked like it can do the job but was a bit scared and turned off by the fact that it states it is beta at the top of the page. (I cannot link to it because I do not have enough posts.)
View Replies!
View Related
Soft Or Tool To Manage Apache User
Here is what i have: - Webserver for member to download which is using user/pass from .htpasswd to allow anybody can see file or download. What i need: - any software(code) can show me who log in and when, how much they download, how many time did they login. ---> this to prevent account from to be shared between many people. - some sort of tool or software can allow me to add new user/pass quick since i am manuallly adding new username/password encrypted to .htpasswd file. what software to use( or to buy if not so exspensive).
View Replies!
View Related
Apache 2.2 DocumentRoot /home/user/public_html Not Exist
I am getting this error and I just installed apache 2.2 and added a user using useradd user. When i added into the virtual which is: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /home/user/public_html ServerName user.com </VirtualHost> It does not find the public_html folder I added. Is this a permissions problem? or something else?
View Replies!
View Related
PHP: Uploading As Apache User, And Chmod 600
I've recently moved to a new server in which I don't have root, so bare with me. For some reason when I upload a file with 'move_uploaded_file($tmpName,$new_filename)', it seems to work fine - but when I check it, try to download it (http or ftp), or change the permission - I can't, because its set to 600 for some odd reason, and owned by the user Apache is setup on.
View Replies!
View Related
Apache File Access
I'm trying to set up Apache on CentOS 4. I'm using Apache 2.0 and it can't seem to access anything outside of the /var/www directory - it gives an Error 403. I thought this would be down to SELinux but this is disabled. I've run the following command on the directory but with no luck: Code: chown apache /home/jmaskell -R
View Replies!
View Related
My Apache Access Log
As per subject, I have a cpanel server and lately there is something seems wrong with my apache access logs. /usr/local/apache/logs/access_log The problem is the log did not recorded website being accessed in details Quote: 218.111.202.105 - - [24/May/2008:22:53:37 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:22:55:01 +0800] "GET /whm-server-status HTTP/1.0" 200 31811 74.53.197.2 - - [24/May/2008:22:55:17 +0800] "-" 408 - 74.53.197.2 - - [24/May/2008:22:55:23 +0800] "-" 408 - 219.93.152.12 - - [24/May/2008:22:56:34 +0800] "-" 408 - 207.234.129.249 - - [24/May/2008:22:56:42 +0800] "-" 408 - 203.130.242.48 - - [24/May/2008:22:56:56 +0800] "-" 408 - 203.130.242.48 - - [24/May/2008:22:57:01 +0800] "-" 408 - 76.184.65.88 - - [24/May/2008:22:58:07 +0800] "t&rls=org.mozilla:en-USfficial&client=firefox-a" 501 - 127.0.0.1 - - [24/May/2008:23:00:01 +0800] "GET /whm-server-status HTTP/1.0" 200 32935 127.0.0.1 - - [24/May/2008:23:01:36 +0800] "GET / HTTP/1.0" 200 3473 58.186.201.58 - - [24/May/2008:23:02:22 +0800] "-" 408 - 203.130.242.48 - - [24/May/2008:23:04:11 +0800] "-" 408 - 203.130.242.48 - - [24/May/2008:23:04:15 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:23:05:01 +0800] "GET /whm-server-status HTTP/1.0" 200 32548 72.29.95.45 - - [24/May/2008:23:06:13 +0800] "-" 408 - 72.29.95.45 - - [24/May/2008:23:06:13 +0800] "-" 408 - 195.82.99.126 - - [24/May/2008:23:06:43 +0800] "-" 408 - 195.82.99.126 - - [24/May/2008:23:06:49 +0800] "-" 408 - 195.82.99.126 - - [24/May/2008:23:06:54 +0800] "-" 408 - 74.53.197.2 - - [24/May/2008:23:08:16 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:23:10:01 +0800] "GET /whm-server-status HTTP/1.0" 200 31890 127.0.0.1 - - [24/May/2008:23:10:18 +0800] "GET / HTTP/1.0" 200 3473 208.101.51.84 - - [24/May/2008:23:10:46 +0800] "-" 408 - 62.193.196.250 - - [24/May/2008:23:13:18 +0800] "-" 408 - 62.193.196.250 - - [24/May/2008:23:13:24 +0800] "-" 408 - 62.193.196.250 - - [24/May/2008:23:13:29 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:23:15:05 +0800] "GET /whm-server-status HTTP/1.0" 200 33145 127.0.0.1 - - [24/May/2008:23:19:08 +0800] "GET / HTTP/1.0" 200 3473 127.0.0.1 - - [24/May/2008:23:20:02 +0800] "GET /whm-server-status HTTP/1.0" 200 32720 67.15.205.17 - - [24/May/2008:23:22:26 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:23:25:16 +0800] "GET /whm-server-status HTTP/1.0" 200 31203 209.25.195.74 - - [24/May/2008:23:26:21 +0800] "-" 408 - 209.25.195.74 - - [24/May/2008:23:26:24 +0800] "-" 408 - 209.25.195.74 - - [24/May/2008:23:26:27 +0800] "-" 408 - 209.25.195.74 - - [24/May/2008:23:26:29 +0800] "-" 408 - 209.25.195.74 - - [24/May/2008:23:26:33 +0800] "-" 408 - 209.25.195.74 - - [24/May/2008:23:26:36 +0800] "-" 408 - 127.0.0.1 - - [24/May/2008:23:28:05 +0800] "GET / HTTP/1.0" 200 3473 My old logs /usr/local/apache_bacup/logs/access_log record them fine Quote: 80.191.80.84 - - [18/Jul/2007:04:21:13 +0800] "GET /ss-xs/?action-spacelist-uid-356-type-blog-starttime-1181520000-endtime-1$ 80.191.80.84 - - [18/Jul/2007:04:21:53 +0800] "GET /forum/archiver/tid-1303.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:22:18 +0800] "GET /forum/archiver/tid-819.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:22:37 +0800] "GET /ss-xs/?17/spacelist-blog.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:22:44 +0800] "GET /ss-xs/?viewthread-1745.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:23:21 +0800] "GET /forum/archiver/tid-2074.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:23:29 +0800] "GET /forum/forumdisplay.php?fid=35 HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:23:58 +0800] "GET /forum/archiver/tid-998.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:24:02 +0800] "GET /forum/archiver/tid-784.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:25:01 +0800] "GET /whm-server-status HTTP/1.0" 200 21150 80.191.80.84 - - [18/Jul/2007:04:25:01 +0800] "GET /forum/archiver/tid-2100-page-1.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:25:10 +0800] "GET /forum/archiver/tid-1211-page-3.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:25:37 +0800] "GET /forum/archiver/tid-834.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:25:40 +0800] "GET / HTTP/1.0" 200 2860 80.191.80.84 - - [18/Jul/2007:04:26:25 +0800] "GET /forum/archiver/tid-623.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:26:41 +0800] "GET /forum/archiver/tid-25.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:27:18 +0800] "GET /ss-xs/?10/viewspace-18 HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:27:44 +0800] "GET /forum/archiver/tid-802-page-2.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:27:48 +0800] "GET /forum/archiver/tid-1802-page-7.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:28:15 +0800] "GET /forum/archiver/tid-1569-page-2.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:28:31 +0800] "GET /forum/archiver/tid-1133.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:30:02 +0800] "GET /whm-server-status HTTP/1.0" 200 21041 80.191.80.84 - - [18/Jul/2007:04:30:19 +0800] "GET /forum/archiver/tid-462-page-1.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:30:34 +0800] "GET /forum/archiver/tid-1900.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:30:42 +0800] "GET /ss-xs?693 HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:30:46 +0800] "GET /forum/archiver/tid-1501-page-2.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:31:48 +0800] "GET /forum/archiver/tid-2055.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:31:58 +0800] "GET /forum/archiver/tid-2050-page-2.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:34:04 +0800] "GET / HTTP/1.0" 200 2860 80.191.80.84 - - [18/Jul/2007:04:34:32 +0800] "GET /forum/archiver/tid-2019.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:34:53 +0800] "GET /forum/archiver/tid-744.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:34:59 +0800] "GET /forum/archiver/tid-2135.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:35:01 +0800] "GET /whm-server-status HTTP/1.0" 200 21102 80.191.80.84 - - [18/Jul/2007:04:35:11 +0800] "GET /ss-xs/archiver/ HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:36:38 +0800] "GET /forum/archiver/tid-781-page-2.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:37:04 +0800] "GET /forum/archiver/tid-1216.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:38:09 +0800] "GET /ss-xs/?viewthread-1879.html HTTP/1.1" 404 - 80.191.80.84 - - [18/Jul/2007:04:38:29 +0800] "GET /forum/archiver/tid-275.html HTTP/1.1" 404 - 127.0.0.1 - - [18/Jul/2007:04:40:02 +0800] "GET /whm-server-status HTTP/1.0" 200 21191 how do I make my apache to log the access log in details again?
View Replies!
View Related
|