Server :: Config Apache Server To List Php / C/c++ / Java Files As Regular Txt On Website?
Feb 23, 2011
config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
ADVERTISEMENT
Feb 2, 2011
I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,
e.g /var/www/mydomain/pub
i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,
if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,
Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
View Related
Jan 6, 2011
my task is to store the data to a file at server sent via HTTP POST, i written suitable cgi script in C, but the PROBLEM is that i can't complete the task, I guess i require server permission to do so, how to configure server or how to get access right from server to store data to a file.
View 3 Replies
View Related
Nov 6, 2009
it may be a simple doubt i have but i really want to know this,in the httpd.conf file under the server root of apache server.they have instructed not to add a slash at the end when mentioning or giving the path for server root.I think both will still remain the same, then y is that mentioned that way?
View 6 Replies
View Related
Feb 17, 2011
I'm running Ubuntu 10.04 with apache, rails, mysql, etc. My rails site is running at www.example.com. I'm intending to use named-based virtual hosting and I have a virtual hosts file configured/enabled for www.example.com. My site is hosted on Amazon EC2.
The problem is that if I set up a new DNS record -- say test.example.com -- and browse to that, my site www.example.com is served up! That's without configuring any new virtual hosts. And the same is true if I go to my DNS records and define test2.example.com, etc. Without touching my server, these new URLs serve up my website. That's not what I want! I want to use name-based virtual hosting and host different sites for each subdomain.
[Code]...
UPDATE: now I understand a bit more... apparently my real problem is not what I thought it was. My real problem now appears to be that when I copy this virtual hosts file and edit it to add a new subdomain name, set up the corresponding site, etc., and enable the virtual host (a2ensite) and restart (graceful), apache immediately stops serving up any websites. Apparently apache crashes although I do not see any error messages. But all my sites go down and I have to revert and then restart apache.
I thought this was because my virtual host file (pasted above) had an error. So I thought I would start by getting that first file right. Apparently it is right. So now I need to understand why adding a second virtual host causes all sites to stop being served up.
View 1 Replies
View Related
Feb 27, 2010
Doing my final year project in linux- a Mozilla Firefox extension which providing chat option for two or more peoples,who happen to be browsing the same website simultaneously. It shows you other people who visit the same websites as you are. These people have to be registered with our software. I don't know how to go about this. After a lot of googling and enquiring i have divided the project into three modules: an extension at browser side, chat implementation (probably in ajax) and a server- apache-php-mysql.
The extension keeps track of the URLs visited by the browser. It sends this information to the server. When it receives information from the server, the extension displays the number of users visiting the URL as the user. The extension informs the server whenever the user clicks the EnableChat(which will be embedded in a toolbar in the browser) button to start a chat session. After receiving the information, the extension displays the users in that site. The user clicks on a particular username for chat.
I have installed php mysql and apache. but i do not know exactly what the server must do. I know i have to write the server code in php and put it in the /var/www folder. but what should that code do? how exactly does the extension or browser communicate with the server for the exchange of above info?
View 4 Replies
View Related
Jul 16, 2010
I'm not all fluent in apache, so bare with me. I inherited this environment months ago, and I am still learning the strangeness of things in it.Here are two of my config files on all my web servers:
/etc/apache2/mods-enabled/cache.conf:
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /var/cache/apache2/mod_disk_cache/
[code]....
Correct me if I'm wrong, but don't these files configure the same settings, and don't they conflict? And if the conflict, which file gets the final say? And if one file overrides the other, can I just remove the one that loses?
View 3 Replies
View Related
Jan 11, 2011
I am trying to host a local website(an wiki application) within a network. Is it necessary that all the files I need to upload should be in the var/www?
View 8 Replies
View Related
Mar 17, 2011
I am trying to add a second vhost to my once working apache config. Now I have things really bollixed up and cannot access anything. I am getting a error 400. The access log shows this:
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951 "-" "-"
I have a default (I think) httpd.conf file and put all my config stuff in files in vhosts.d. I have 3 files there:
[Code]...
View 14 Replies
View Related
Oct 5, 2010
I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find
View 4 Replies
View Related
Jan 29, 2011
I am running opensuse with LAMP, and this is my first time setting up this type of server (usually am a windows junkie) My problem i am having is that I am unable to view my website from outside the local network. I have setup my router for a dynamic dns and forwarded all the ports through the router and the local firewall. I ran the apache setup through YAST2 and everything seems fine locally but when i attempt to access it elsewhere its not connecting. computechsolutions.dyndns.biz is the dynamic dns address i have setup through my router.
View 2 Replies
View Related
Sep 20, 2010
I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.
View 2 Replies
View Related
Feb 10, 2009
I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.
#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget
[code].....
View 7 Replies
View Related
Jun 8, 2011
Fedora 14. I have Apache HTTP Server installed and running fine. I am interested in doing some java servlet pages. Am I correct that in addition to the above I need to install another server - for example Tomcat - that knows how to process java servlets? I see that yum has tomcat. And that Tomcat is not an add on to the HTTP Server, but an alternative to it? i.e I start one or the other?
View 2 Replies
View Related
Jul 29, 2010
I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:
[code]....
But when i try to connect from 192.168.200.4 it says i don't have permission to access
View 1 Replies
View Related
Jun 7, 2010
a reverse proxy scenario
Code:
Server A Server B (Zope Application)
Public IP 192.168.1.5
On the first one that is A in Apache vhost file I made
Code:
ProxyPass / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons
ProxyPassReverse / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons
but the CSS and images on internet which people are accessing are broken while it is running perfectly fine if I access on LAN.
Code:
[URL]
I have checked the documentation page and here also but still the problem persists.Also on LAN if the same is accessed like this
Code:
[URL] then CSS and Java script is broken. It is an eduCommons CMS. Which I am trying to access via internet.
View 1 Replies
View Related
Mar 28, 2011
I've got a problem with a piece of code. Basically, I use my listRegularFiles function in two separate places in my code. The first time I run itit appears to work perfectly well. If I use it a second time, however, it blows a gasket. I'll post my code below, and if anybody has any ideas,Here's the code for listRegularFiles:
Code:
string listRegularFiles(char* dirname)
{
[code]...
View 2 Replies
View Related
Jan 26, 2011
i have a server & there is a website which generate alot of core files, these core files takeup alot of space by time, so i decided to stop it, in WHM the core dump option is disabled, & i used the following command
Code:
ulimit -c 0 but nothing stoped generating core files, i also used the following method http://www.cyberciti.biz/faq/linux-disable-core-dumps/ also this method doesnt stop generating of core dump files, my question is : how i can permenantly stop generating core files for all users or for specific user
View 1 Replies
View Related
May 16, 2009
I am using following software on my web server:
RedHat 2.6.18-92.1.10.el5
Apache/2.2.3
Coldfusion 8
My webserver accesses a backend mySQL server using CentOS5
The last week, I have been getting a "page Load Error" on my web server whilst others told me they are getting a "broken link" error when they try to access my web site. It has been working fine for the last 12 months until last week.
ADSL, modem and router okay according to service provider (verizon)
I can ping my IP address and my domain name.
# netstat -tap
shows http and https both processes running.
# service httpd restart
no issues
I shut down firewall and tried again, but got the same "page load error".
View 3 Replies
View Related
Oct 14, 2010
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info:
monitored server:
CentOS 5.3 2.6.18-128.1.1.el5
[code]....
View 7 Replies
View Related
Aug 25, 2010
I'm taking over as a Linux admin where they use sendmail last week. I've done very little with email on linux, and haven;'t touched sendmail since 2000 so I am really out of my element.Basically the sendmail server for many months has had performance problems, disk, and load.Looking into it I found this doing a tail on /var/log/MaillogAug 25 17:11:49 web8 sendmail[1531]: o7OGF2VH002566: to=postmaster, delay=1+01:58:10, xdelay=00:00:00, mailer=relay, pri=2388694, relay=[xx.xx.xx.xx], dsn=4.0.0, stat=Deferred: [10.10.20.107]:No route to hostAnd that was all it was spewing, I edited the config files because xx.xx.xx.xx doesn't exist. And running m4, then restarting sendmail.It is still spewing out that message, but I do see some things connecting to the new yy.yy.yy.yy address. I even greped the entire /etc looking for the old machine.
View 2 Replies
View Related
Jun 11, 2010
How to make a Server of LOGIN / PASSWORDS for flexible linux machines? Samba config files for the server and the client. The clients, if no network, shall use the /etc/shadow.
View 10 Replies
View Related
Apr 19, 2011
Is leading whitespace significant in bind9 config files? This reverse lookup file (/var/chroot/bind9/etc/bind/zones/rev.168.168.192.in-addr.arpa) did not work; /var/log/messages had "zone 168.168.192.in-addr.arpa/IN: has no NS records".Inserting 3 spaces before IN in the NS line fixed it:
Code:
; IP Address-to-Host DNS Pointers for the 192.168.168.0 subnet
@ IN SOA CW8vDS.localdomain. hostmaster.localdomain. (
2011041901 ; serial
8H ; refresh
[code]...
Reading the man pages and netsearching, I did not find anything about indentation requirements except for "This is usually indented for readability, but the indents are required syntactically" here.Although the above file works, named-checkconf reports an error in it:
Code:
root@CW8vDS:/var/chroot/bind9/etc/bind/zones# named-checkconf rev.168.168.192.in-addr.arpa
rev.168.168.192.in-addr.arpa:1: syntax error near ';'
but named initialisation does not log any errors or warnings in /var/log/messages when processing this file except "/etc/bind/zones/rev.168.168.192.in-addr.arpa:2: no TTL specified; using SOA MINTTL instead".
View 10 Replies
View Related
Nov 14, 2010
i've had my dedicated server for about 16 months now and my log files are huge and I host a few small sites but one of them is quite large and can get a log file (access.log and error.log) of 1-2gb a month so over a year can take up almost 30gb just for that site so I clean them out regularly but I'm wanting a more automated way to do thisi've been thinking of using the find command using something like this but it isn't workingCode:find /var/www -name "*.log" -type f -size +10M -exec echo > {} /;
View 13 Replies
View Related
Apr 29, 2010
According to the man page, rsync should copy "special" and "device" files if the corresponding options are set. Also the man page says that the -a option (--archive) includes the -D option, which is "same as --devices and --specials". BUT We use the -a option, and still get the following in our report:
skipping non-regular file "pristine/dev/full"
skipping non-regular file "pristine/dev/null"
skipping non-regular file "pristine/dev/ptmx"
[code]....
Is this the expected behavior? (BTW this is copying a non-running linux-vserver called 'pristine')
View 2 Replies
View Related
Apr 21, 2011
I'm running a linux cloud server with the following config
1.2ghz Processor allocation
752MB Ram
The site loads slow and clicking a link almost freezes the page for a second. Also, the page loads could be much faster. We've been running mysqltuner and have pretty much optimized all slow queries. Is there anything we can do to fine tune the server for faster and more responsive?
Httpd.conf
Timeout 20
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule prefork.c>
code....
View 2 Replies
View Related
Mar 22, 2011
I am slowly learning Linux by bringing up a server. Using tasksel, I installed the LAMP-server, which went fine. Now, however, I have mucked about with various config files and made the setup unusable. I'd like to do uninstall all of the LAMP packages and do a clean (and more thoughtful) install. Here's the problem: tasksel returns an "aptitude failed (100)" error. I have search various forums and all of the help related to this error (which I can't actually find *explained* anywhere) is related to installing packages. I tried them anyway, without success. man pages and the stack of manuals I have don't seem to be of much help either.
- describe what the error message means?
- a way to remove the packages or the config files by hand?
View 3 Replies
View Related
Jul 2, 2010
i installed apache 2.2.15 in my system its working properly.... but i deployed some php files in /usr/local/apache2/htdocs ... i was not able to run that php files ..... if i run that php file in browser it shows content of that file... for an example i created one test.php file(it contains <?php echo "hello world" ?>) and put it in /usr/local/apache2/htdocs... if i run in browser using this [URL] its shows in browse like this <?php echo "hello world" ?>......
View 1 Replies
View Related
Oct 27, 2009
Possibly off-topic, as this is in a VServer, running a non-standard kernel, but both the host and the VServer are running CentOS, so.....I've been happily running a small web site on a CentOS 5.3 host, using Linux-VServer. (So it actually runs on a 2.6.22 special VServer kernel.)This *might* be connected with updating to 5.4, but I'm not sure how. VServer itself was not touched, and httpd runs inside it (that is, using the VServer's httpd, not the CentOS one. Vserver however, is running Centos.
Suddenly, anything I load into the VServer DocumentRoot is not visible. A ls -l of files that show and files that don't show the exact same thing. That is, for example-rw-r--r-- 1 root wheel 106314 Oct 5 22:38 mutt.html-rw-r--r-- 1 root wheel 390 Oct 26 22:09 new.htmlYet, mutt is viewable and new.html just gives me a 404.
So, I then edited the mutt.html.I added a line like line for testing or something similar.That too, does not show up. That is, the mutt page shows, but the change I made in it doesn't show. I've tried restarting the vserver, but that did nothing.(And yes, I did hit refresh on the browser and also used another browser, to be sure.)I raised apache log level to debug, but neither access nor error shows me anything.I'm not even sure what terms to use in googling, trying things like newer files apache not visible and similar have brought me no luck.
View 6 Replies
View Related
Feb 19, 2009
We are having an odd apache issue. Certain files are not being served out.The files actually live in a remote DFS volume served off a windows system. They're mounted under /data/vizwx. There's a subfolder here called wx_intranet which has all the data.The Document root for this virtual host is /data/www/htdocs. There is a data/vizwxsubdirectory with a symlink named wx_intranet which points to /data/vizwx/wx_intranet .SELinux is completely disabled (not even permissive).
When a user requests a file from http://<host>/data/vizwx/wx_intranet/VizWx_14c.jpg no error is given to the browser. Firefox just shows the URL in question (I can't even view source). The <vhost>_access.log file shows: wx_access.log:172.16.1.16 - - [19/Feb/2009:15:30:16 +0000] "GET /data/vizwx/wx_intranet/VizWx_14c.jpg HTTP/1.1" 206 167791And there's nothing in the <vhost>_error.log, even after cranking the LogLevel up to info.
The permissions on the files in the share are slightly weird for reasons I don't fully understand, but they should work... the files are an effective 'chmod 3777 <file>' for all files in the mounted directory... that's with Sticky and SetGID bit set.What am I missing here? Oh, I also modified the Vhost's options from "Options all' to 'Options all -SymLinksIfOwnerMatch" to see if that was the problem... no dice.)CentOS v5.2, apache 2.2.3
View 9 Replies
View Related