Apache 1.3 For One Site, Two Cgi-bin Folders
my server has just one site, apache conf has such a line:
Code:
ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/cgi-bin/"
and
Code:
<Directory "usr/local/apache/htdocs/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
then, my cgi script may run well under the said folder,
/usr/local/apache/htdocs/cgi-bin
but I have another script need to be setup another cgi-bin under its own folder below htdocs folder, like,
/usr/local/apache/htdocs/anotherscript/cgi-bin
however, when I run the said script in browser:
Code:
http://www.mydomain.com/anotherscript/cgi-bin/abc.cgi
the browser just shows source codes, instead of running it. I am guessing something wrong in httpd.conf,
may I know how to set apache httpd.conf to meet my requirement?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Directadmin Cgi-bin
I am receiving errors while executing domainname.com/cgi-bin/folder/filename.cgi files in directadmin. The error is Internal server error. I have tried the below things, ./script.cgi : no errors found checked domain log : got premature end of script headers checked suexec log : No errors Checked the permission : all the files and folders under cgi-bin is 755
View Replies!
View Related
Cgi-bin In Cpanel11
of will time i update cpanel 10 to cpanel 11 crated one problem for cgi-bin we want installation mt on it we copy files that mt need to it in /public_html/cgi-bin/mt but will time we run www.mysite.com/cgi-bin/mt take not found but will time i enter url cgi-bin take: Forbidden You don't have permission to access /cgi-bin/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
View Replies!
View Related
MediaLayer And Private Cgi-bin
I am in the process of building a database-driven website. The main purpose of the site is really for me to improve my PHP and MySQL, but I will be writing a forum and offer blogs to users, as well as the main point of the site, which is to allow users to upload text-based artwork (ie. stories, poems, etc). I don't expect the site to use up that much bandwidth (assuming my code is clean) or space, as I don't expect it to grow that large. Like I said, it's mainly a learning exercise. Anyway, the point is, I am looking for a host. I am currently with DreamHost but am having a lot of trouble creating a custom php.ini (because I know absolutely no PERL and am just starting to learn shell commands). The main host I'm considering is MediaLayer. They advertise on their website that you have a private cgi-bin directory, but it was unclear whether this directory would have a private php.ini. This is pretty important for me as I don't have the skills (yet) to do anything too clever like what is required at DreamHost to change it. Is anyone here a current or former MediaLayer customer? Is the php.ini in the cgi-bin? I know that DownTownHost have private cgi-bins, but the php-ini is not there. I had a look on the forums but, although I found mostly good general feedback about MediaLayer, I couldn't find anything that specifically addressed the creation of a custom php.ini file.
View Replies!
View Related
Cgi-bin Directory Not Found
I upgraded from Apache 1.3.7 to the latest copy Everything works nicely, except the cgi-bin directory When a user tries to access a script or even a standard text file, it throws up the error.. Not Found The requested URL /cgi-bin/first.txt was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. When they try and access the cgi-bin directory itself, they get Forbidden You don't have permission to access /cgi-bin/ on this server Now, I've checked the httpd.conf file and this is what it has for Cgi-bin <IfModule alias_module> ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" </IfModule> <Directory "/usr/local/apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> And the error logs say.. [Sun Jan 20 18:09:56 2008] [error] [client xx.xx.xx.xx] File does not exist: /home/goewowc/public_html/404.shtml [Sun Jan 20 18:09:56 2008] [error] [client xx.xx.xx.xx] script not found or unable to stat: /usr/local/apache/cgi-bin/first.txt The CGI-bin directory is chmodded correctly, the files are also chmodded and belong to the correct group
View Replies!
View Related
/usr/bin/perl -w Hnc.cgi
When i was running top -cd2 command following scripts are taking high cup uses on server. But when we are go home directory we didn't find any thing. 24489 "User Name" 20 0 6732 5084 1164 S 8.0 0.2 11:00.69 /usr/bin/perl -w hnc.cgi 26456 "User Name" 20 0 6876 5080 1164 S 8.0 0.2 7:23.47 /usr/bin/perl -w hnc.cgi 32569 "User Name" 20 0 6748 5056 1164 S 7.5 0.2 8:57.30 /usr/bin/perl -w hnc.cgi update us why this script are running under some particular users and what the application of this script.
View Replies!
View Related
/usr/local/apache/bin/httpd -k Start -DSSL
When I look at my Current CPU Usage / process manager, I see this: Pid |Owner | Priority | Cpu % |Mem % | Command 13754 | nobody | 0 | 2.2 | 4.0 |/usr/local/apache/bin/httpd -k start -DSSL I've got about 9 more of these, and it keeps eating up the memory. What is it and what can I do? Is it just apache running?
View Replies!
View Related
CGI Free Host Site With LWP
Can some one suggesst CGI free host site with LWP, as my company has blocked some site & I need to refer that so will lwp to pull that page & I can view the page which is blocked so can any one help me knowing which are good free lwp hosts ad free preferred, my load will be only 10mb per day max also is this possible in some ASp host? if some one knows
View Replies!
View Related
Apache 2.2.3 And Mod_rewrite / Cgi Script Conflict
I recently upgraded my server and it is using Apache 2.2.3. I have all the same server directives as before when I was using an early version of Apache 2. The problem is that when I have RewriteEngine On, my cgi scripts generate a forbidden error. If I comment out that line, they go back to working again.
View Replies!
View Related
Difference Between Running PHP Using Fast CGI Or As An Apache Module?
I have been a web developer using PHP for years now, and my work laptop runs CentOS with PHP5 as an Apache Module. This suits me just fine for development, but now I want to setup a web server that runs PHP 4.4.8 and PHP 5.2.5 and offer hosting to people. I know PHP4 is very old, but I am looking to offer my users the freedom of choice, as there are still third party applications out there that may need to be run on PHP4. I will want PHP 5 to be the default, and allow PHP 4 to be used if either the file extension is .php4, or they have a line in their .htaccess file. I have seen various tutorials in search engine results saying to run both, I can either do one of the following: 1. Install PHP5 as a module, and run PHP4 using FastCGI 2. Install PHP5 and PHP4 and run both using FastCGI 3. Install PHP4 as a module, and run PHP5 using FastCGI In the future I will also be looking to support PHP6 once a stable version has been released, though that will probably be optional to begin with and require a line in the .htaccess file too - like PHP4. I will be using Apache 2.2.8 on CentOS 5.1. I am also looking to install Ruby on Rails and Django too, which I think use FastCGI. What's the difference between running as an Apache Module, or using FastCGI? This will be for a shared hosting environment so performance over lots of connections, stability and security are my concerns. Should I run everything using FastCGI, if not, would the default PHP version be better off installed as an Apache Module?
View Replies!
View Related
Apache And Folders Named "error"
I have a problem in apache 2 Linux server. When I create a folder called "error" in a sub domain, apache doesn't read it. I tried with different permissions and proprietary (root and sub domain owner) but doesn't read the index.html. In other sub domain the same problem occurs. Quote: Forbidden You don't have permission to access /error/ on this server. Apache Server at sub domain.domain.com Port 80 Apache reserves the name "error" for internal use?
View Replies!
View Related
Rapid Site Deployment (database Driven Domain Name Server (DNS) + Apache Config)
I am trying to do something that I believe is fairly non-standard. What I am looking to do is create a system where I can rapidly deploy web sites without having to restart named and Apache. For example, if a customer completes a process, I want to be able to turn that site on immediately using a temporary domain (somecompany.example.com or othercompany.example.com). With some programming language (hopefully PHP) I would like to get the customer up and running with their site immediately without having to restart the server. While doing some research I found I could use MyDNS which uses MySQL to manage DNS data instead of configuration files. MyDNS can be updated on the fly. For Apache I have seen wildcard configurations, but everyone seems to be suggesting the use of mod rewrite. I would prefer that the domain maps directly to a specific folder: somecompany.example.com -> /sites/somecompany/htdocs (*.example.com -> /sites/*/htdocs) Does anyone know how I might do this with Apache. It seems similar to user directories (example.com/~username -> /home/*/htdocs)
View Replies!
View Related
/bin Directory
how I go about unlocking my bin directory and making it writable again. I tried to do installworld with the latest freebsd release and as soon as it gets to the bin directory I get a permissions denied error. I looked at the permissions and ownership compared to another freebsd box and they all look the same. I tried to create a file by using touch just to test it and I received permission denied error.
View Replies!
View Related
Cannot Run /bin/sh ./config.sub
I am trying to install a newer release of APC PHP cache on our server that runs RHES-4 and PHP 4.3.9 I installed version 3.0.14 some time ago and now cannot install the new v3.0.16. When I run ./configure I get this: Quote: [root@xxxx APC-3.0.16]# ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config configure: error: cannot run /bin/sh ./config.sub The baffling thing is that I also cannot now reinstall 3.0.14 as it shows the same error. I also get this error if I try to install XCache.
View Replies!
View Related
/usr/bin/fakegauge
Is anybody aware what this file or what it is for? /usr/bin/fakegauge LFD on my cPanel CentOS 5.1 Linux box reported an md5 checksum failure on this file. I am not sure what it is for. I want to know if this is something I can get rid of or a sign that my server has been compromised.
View Replies!
View Related
MySQL Bin Logs
I just have a quick question for the experts here regarding the bin logs that MySQL generates. I have Googled around, tried to understand these logs, and from what I gather, it is a good idea to leave on if you want to do replication in case something happens, or if you have a slave or backup drive and you want to replicate to it. So, these things seem like a good thing to have. My question is though, do they HAVE to stay there now? I unknowingly enabled these back in May on my CentOS server when I used and then tweaked the my-huge conf file, and there they are ever since. Currently they're sucking down 30GB of my hard disk and it's only 80GB. It would be good if I could just take say, all the ones that haven't been modified for at least a month or so (there are 30 of them, most of them are stopped at 1GB I believe, that's how it splits them up.) Is moving those to another hard disk say, my 500GB one, an OK thing to do? It won't affect my currently running MySQL data, right? And the bin logs will still be useful? Does this bin log make MySQL slower?
View Replies!
View Related
C99Shell Folders?
I found these folders in the root /usr/bin/c99 /usr/include/boost/numeric/interval/detail/c99_rounding_control.hpp /usr/include/boost/numeric/interval/detail/c99sub_rounding_control.hpp what are these ? is it normal folders ? or somebody hacked our server? what shall I do?
View Replies!
View Related
Nobody Folders And Delete
when people run a forum and the template and forumdate folders may created some files with nobody permission, the user could not delete them by the user themself, and need admin login as root with ssh to delete those, and let the files permission can run as the user instead of nobody. the server is centos with cpanel and suexec.
View Replies!
View Related
.htaccess And Folders
In the public_html directory, I have php_value user_agent "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0" <IfModule mod_security.c> SecFilterScanPost </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Errordocument 404 /404.html RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php [L] </IfModule> Then I created a new directory named caller There is an exact same .htaccess in public_html/caller However, the .htaccess in the public_html directory rewrites all request to index.php .htaccess in public_html/caller rewrites all request to /caller/index.htm The thing is when I access [url] whatever the one that's called is /public_html/index.php How can I arrange so that the one called is /caller/index.htm?
View Replies!
View Related
Permission Denied /usr/bin/maildrop
I have a VPS with Ubuntu 9.04. I've setup ISPConfig etc as per the Perfect Server Howto Forge pages. However I'm getting a problem with the configuration of maildrop, I get Code: temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to change to home directory. ls -lah /var/vmail Code: drwxr-xr-x 4 vmail vmail 4.0K Jul 27 04:19 . drwxr-xr-x 15 root root 4.0K Jul 26 13:01 .. -rw------- 1 vmail vmail 1.3K Jul 26 13:01 .mailfilter drwxr-xr-x 5 vmail vmail 4.0K Jul 26 17:15 siricom.co.uk -rw-rw---- 1 vmail vmail 4 Jul 27 04:19 ispconfig_mailsize drwxr-xr-x 2 root root 4.0K Jul 26 13:01 mailfilters grep vmail /etc/passwd Code: vmail:5000:5000::/home/vmail:/bin/sh
View Replies!
View Related
/usr/bin/php Overloads CPU
Moved to new server today (and upgraded PHP to 5.2.6). All I see now is high CPU load due bin/php + lots of defuncts. 24324 nobody 0 97.7 0.4 /usr/bin/php 21253 nobody 0 96.0 1.2 /usr/bin/php 28225 nobody 0 94.1 0.4 /usr/bin/php 18109 nobody 0 79.0 0.0 php <defunct> 12750 nobody 0 50.7 0.0 php <defunct> 24961 nobody 0 18.1 0.3 /usr/bin/php 18967 nobody 0 6.3 0.0 php <defunct> Once I click on process in WHM, it says: The Process no longer exists. Trying to trace this now.
View Replies!
View Related
-bin.0000 Files In /var/lib
There are many filenames of ...-bin.000001, ...-bin.000002, ...-bin.000003, and so on goes up to 22. They are taking almost 2GB of space in /var/lib. Is there a way to stop mysql from creating them? Before the OS reload, these files weren't present or at least didn't accumulate it to this much. I could be out of space quickly.
View Replies!
View Related
IIS 5.1 - Browsing Folders
Well I finally got around to getting my IIS up and running which will save some time with uploading various files to check that they are working correctly but now I have run into a new problem. What used to happen with my IIS is it would list out all of the folders which I had in the wwwroot and I would simply navigate through and select which site needed to be tested. At the moment, I have cleared out the wwwroot folder entirely since all of the stuff in there was to do with a "Windows XP Professional" page which appeared upon installation. However, now that I don't need it anymore, I decided to clear it out and test IIS out by making a new folder called "sites" into wwwroot. Now though, it simply comes up with a "Directory Listing Denied. This Virtual Directory does not allow contents to be listed." error message, even though I have changed the permissions on the wwwroot folder to allow writing etc. Could this be because it's IIS 5.1 and I need to install IIS 6.0 instead or is something else wrong? I know for a fact that my operating system (Windows Media Center Edition 2005) will do this list as I have had it before, back before I installed Vista and then decided to come back to MCE.
View Replies!
View Related
Emails Going To SPAM Folders
I can send e-mails out but many times they go directly to the recipient's SPAM box. Also, my server cannot send to any company e-mail that uses MXLogic.net's services. Going to [url]<--My server IP is on ZERO blacklists. /etc/resolv.conf appears correct /etc/hosts also appears correct Is there something that I am overlooking?
View Replies!
View Related
Accessing Shared Folders
I have server which all files and folders are stored on. Now there are a couple of folders which are only accessible by one machine at present and all the other machines when they access the folder it is displayed as empty. I have checked all permisions and all machines viewing of files settings are the same and folders accessible by all machines have the same settings as the couple which are only accessible from this one machine. If I copy and paste the folder all machines then have access to the folder from although this would be a lengthy exercise for the full hard drive.
View Replies!
View Related
Folders Display Permissions
I would to know how I can change the display permissions for my website sub folders and files from public view, for instants The current is you can access to any folders or files once trying access to any folders in my website like open this link www.yoursite.com/photos/ will see all sub-folders and files in this “photos” folder also you can see the other folders in another level by going to the top level folders! but I think there is a way to enforce my users to write the full path of any selected photo or file they want without browsing my folders and sub-folder.
View Replies!
View Related
Mystery Folders Being Created
I am designing a site for a client and in all the years I've done design etc, I've come up against a phenomenon with their VPS server they have. It's linux and uploading files I am using WS_FTP Home. I am uploading files and folders to their public_html/domain.com/ (*I use domain here for their privacy) and in some folders (directories) after doing so, a mystery folder suddenly appears that is named 5" and as you enter that folder, you see the path directory show up "public_html" and if you go into that one, you come up to the domain.com folder again, and if you deeper into that one you start to see this phenomenon of mirroring folders of the one you go into. Example: public_html/domain.com/images/5"/public_html/domain.com/images/file ***the file whether it's an image jpg, png, etc is created as the last directory as a folder, not a file. I should also mention that as you go deeper in the 5" mystery directory folder, you no longer see the path in the FTP anything past the 5" one even as you go further in. Oh, and it doesn't allow you to delete these 5" folders regardless of what permissions. And this folder seems to show up in many areas of this website's directory structure...mostly where images are (don't know if that is just a coincidence). So hope all this makes sense....anyone seen this before and what the cause could be? Their host doesn't seem to know the reason and says they cannot see it even though others can. They said it's the FTP program as the cause and not their server. My comeback to that is that I've used this FTP for years and never before seen this happen. It's only with this one client's server.
View Replies!
View Related
Permission Problem On /usr/bin For Hosting Users
I'm working on one of my customer's server but i have a permission problem. I want to run some commands via php but there is a permission problem with commands. If my php file having root user and group permissions i can check and use the executable files. Otherwise, if the php files have normal hosting account user and group permissions i can't be able to use needed commands/executable files. I tried to change commands group to same group but it didn't work. What should i do for solve this?
View Replies!
View Related
Is It Safe To Put /usr/local/bin In Basedir
I am trying to assist a customer install a Dolphin CMS but it returns some "open_basedir restriction in effect" on /usr/local/bin/php (it needs the path to the PHP binary). If I put /usr/local/bin/php in httpd.conf -> php_admin_value open_basedir "..." it seems to work and it finds the required binary but...is this safe?
View Replies!
View Related
SSL Certificates Works For Folders?
Say i have domain zzzzz.com and have some folders say a, b and c would ssl if installed for main domain zzzzz.com work for https://zzzzz.com/a and so on ? or would wildcard ssl be required for that ? And what if that /a folder is actually a subdomain, but since you can access subdomains via url/folder instead of folder.url would ssl work on it using url/folder option instead of subdomain url ?
View Replies!
View Related
Deny Perl In Public Folders
How do you guys deny run of perl/bash scripts from /tmp, /var/tmp, /dev/shm? I've tried to build simple shell wrapper, but that's not a compromise if you run for example spamassassin on the same server (it needs direct io to/from perl binary). I'm looking intro some kind of binary wrapper or patch that will deny running perl scripts from public folders (also the same for shell scripts will be great). Any ideas or solutions? If anyone interested in primitive shell wrapper code: Code: #!/bin/sh ARGS=`echo $@ | grep -v "/tmp/"` if [ "$ARGS" != "" ]; then /usr/bin/perl.orig $ARGS; fi
View Replies!
View Related
Zipping Up Multiple Public_html Folders From Shell
OK so I'm on the shell and looking at the contents of my home/ directory which has all the various accounts. In each account directory are subdirs such as mail, logs, tmp, etc, and public_html. Is there a way (or a ZIP command) to be in the home directory and create a massive ZIP file containing all the account directories, each containing ONLY the respective public_html subdir for that account? Using the command "zip -r Backups.zip ./" seems to include all those extra folders (such as mail, etc.) that aren't needed.
View Replies!
View Related
Access Folders In Root / Bypass Wordpress
My blog is set up to display in the root of my domain, although the files on the server sit within their own folder: i.e Server files Public_html/wordpressfiles/ Broswer displays www . mydomain . com/ (disaplys pages from /wordpressfiles) The problem I have is that I can't access individual directories within the root, unrelated to wordpress. e.g I have Public_html/folder2/... Setup on the server, but if I enter the path in my browser: www . mydomain . com/folder2 wordpress thinks I want to access: www . mydomain . com/wordpress/folder2 ...which doesn't exist. How can I re-gain access to folders in the root, without wordpress interfering?
View Replies!
View Related
Removing Large Files Or Folders CentOS
Something weird happening here. I have tried every string possible... There are a number of folders I want to remove off my server, tried the good old and simple... rm -r /folder/ And then went and ended up with a string as long as my screen. No matter what I do, as it goes recursive in to the directory it asks me if I want to remove each file individually. No matter what string or action I take it insists on asking me as it goes to delete each file. Could this be a configuration option in CentOS?
View Replies!
View Related
|