Software :: Apache Run Perl Then Create Index Page And Display It
Sep 15, 2010
I've got a perl script which generates an html file. What I'd really like to do is send people to just one page (the perl page) which then generates the html and shows the html page in question. Thus the whole transition will be invisible to the user, they'll just have an html page.FYI the perl script generates a list of the users who last logged in to the system, it needs to be up to date (by the second).Let me know if this isn't clear, I understand it sounds a bit confusing...
View 4 Replies
ADVERTISEMENT
May 20, 2010
Today, the power was suddenly cut off in my house, then my home Ubuntu Server restarted after the power on, but when I use my laptop to view my wesite, the index.html suddenly became blank page, I did clear the firefox cache, doesn't work, still blank, and I changed browser, to seamonkey, the index.html still was blank, so, I am sure that the problem is coused by the server, and then, I put the index.html file to a subdirectory, which under the /var/www/home/index.html, and then I put the address < [url] > ,then,I can view my website the main page index.html.
View 2 Replies
View Related
Jan 20, 2010
i have a machine with RHEL 5.1 sendmail-8.13.8-2.el5, uw-imap2007-e-7.el5, php 5.3.1, and apache/2.2.3, but i have a problem, i installed Squirrelmail 1.4.19, but i can't access my index.php page, when i load http://localhost/squirrelmail/ i get the image (main.png), and when i click the index.php link i get this:Quote:
<?php
/**
* index.php
[code]...
View 4 Replies
View Related
Jan 13, 2010
I recently restarted my Apache server to change the max upload from 5mb to 25mb. Once Apache restarted I tryed to go to my website via url www.website.com and a blank page with this source code:
<html>
<body bgcolor="#FFFFFF">
</body>
</html>
I also have two demo websites that I am running and when I go to there url's www.website.com/demosite apache will serve up the index.php
I didn't change anything but the max_upload in the apache2.conf and restarted.
View 1 Replies
View Related
May 10, 2011
My apache ignores index files (index.php ,index.html ,index.htm , ...) and while these files exists in directory apache lists directory content!I mean http://localhost/test/ lists directory content instead of showing index.php!
View 9 Replies
View Related
May 20, 2010
I've set up Apache once or twice in the past, but my memory is escaping me on something simple. This time the OS is Cent5 with Apache/2.2.3
When a user browses to: [url] <nothing else> I get as expected, a '403 'You don't have permission to access' because directory browsing is off for obvious reasons :-) If I enter the full URL to the script: [url]it works as expected. No issues there.
What I would *like* to do (and I'm sure I've done this before) is to set the cgi-bin up so if someone leaves off the script name: http://host.name/cgi-bin/ it serves "index.cgi" pretty much in the same way that if you browse to the root http directory, you index.html||php would normally serve. I just can't remember how to achieve this simple thing and I'm starting to wonder 'am I mad? - Did I do this before?'.
Sanity check - index.cgi exists and runs if you call it directly thus:
Code:
I have added:
Code:
That made no difference.
Tried:
Code:
For good measure, but that made no difference - and even
Code:
and no amount of playing with 'Options Indexes || -Indexes || +Indexes' helped me.
Like I say, I'm sure I've done it before (on Debian/Ubuntu) without the need to start playing with redirects or .htaccess - but I'll be blowed if I can remember how.
View 2 Replies
View Related
Apr 6, 2011
I have displayed web pages (e.g., index.html) under fedora 4, 5, 7, 8 before with no difficulty. Now I troed to do similar thing under Fedora 12, and I cannot display index.html. Is Fedora 12 special? I did '#tail -f /var/log/httpd/error-log' and noticed a line:
"SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0"
Is the SELinux policy blocking me from displaying index.html page?
View 14 Replies
View Related
Aug 25, 2011
My setup is two laptops connected by crossover cable. One runs Windows xp the other Fedora 13. Neither is connected to internet. I'm using a subnet of 192.168.1.x On Fedora eth0 is up, apache runs because it creates pidfile. Everything pings fine. Windows xp ip pings fine from command line. Gave Windows xp a static ip of 192.168.1.1 mask 255.255.255.0 and gateway 1.2, same as eth0. xp says it sees the server. eth0 is up.
DirectoryIndex looks at index.html. I created that file with very simple code and put it in document root. Document root permissions are 755. Access_log 770. Error_log 644. Apache User 755. Listen 80 When I type the ip for eth0 (192.168.1.2) into firefox, firefox gives me an error message - can't find server. The connection status says its connected.
The error log includes a line: [warn]./mod_dnssd.c:No services found to register I don't know what this means. Apache is not writing to access_log. When I cat the path to access_log I get nothing, then a command prompt. I'm looking for the part I'm missing that will let Apache serve that index.html file to firefox so I can see how my code looks to firefox as I go.
View 6 Replies
View Related
Aug 16, 2010
Do I need to restart the webserver if I make any change in the file index.html? Or should the changes get reflected when I open the page again without restarting the service?
View 3 Replies
View Related
Jan 2, 2010
I have a problem to creating a page with cgi script in perl. I have my registration.html page and registration.cgi script. The form in registration.html is the following:
Quote:
<form action="./registration.cgi" method="get">
<fieldset>
<legend><b>Fill up cells to creating your account</b></legend><br/>
<label>Name: <input type="text" name="name"></label><br/><br/>
<label>Email: <input type="text" name="email1"></label><br/><br/>
<label>Re-enter email: <input type="text" name="email2"></label>
[Code]...
View 53 Replies
View Related
Jan 19, 2011
I've just upgraded my laptop to Fedora 14 and installed LAMP on it for a test environment. I've followed the official instructions to install but seem to have a problem that I didn't have on F13 or Opensuse. Each time I try to access index.php on localhost I get a permission denied message and an SElinux alert. I have tried 7 different solutions on various forums and just can't view anything in a browser.
/var/www/html has been set to chmod 777
/var/www/html/index.php has also been set to chmod 777
A standard user can definitely read and write to the above files/folder. Until I commented it out the Welcome/Test page was working perfectly.
View 5 Replies
View Related
Jun 8, 2010
I need to create an index over a folder, subfolders and files. Preferably as a figure. Is there a quick and easy way to do that?
View 2 Replies
View Related
Aug 10, 2010
i want to access to my samba shares index (or contents) trough http. something like this: [URL] i read something about aliases...i wrote this in the httpd.conf:
[Code]...
View 6 Replies
View Related
Mar 29, 2010
Can anyone please help me write a perl script to view normal html page.
View 5 Replies
View Related
Mar 9, 2010
I used wget -r to get all the web pages that were linked from index.html. The pages listed in index.html are all chapters. After using wget -r, all the chapters are now in the same folder on my local hard drive. Is there a way to build the chapters in their proper order into a "long"/"full" web page, rather than simply having each chapter as a link/next link on a previous page?
View 9 Replies
View Related
Feb 16, 2011
Is there a program available that would allow me to create an index in a pdf file that has no security restrictions on it? I know people can lock there files so I am not worried about thise but if I have open permissions on a pdf file how do I go about creating an index. It seems that by default you get the thumbnail view but I like to be able to click on a index list to go to a page.
View 2 Replies
View Related
Sep 25, 2010
I need a script that can do this: A script that searches all directories and subdirectories for .html files When a .html file is found it creates a index.html file in that folder. It then edits the index.html file and inserts links to all of the .html files that are in that folder into the body. If no .html files are found, it searches for folders. It then creates a index.html file with links to all of the folders.
View 4 Replies
View Related
Feb 10, 2011
Everyone knows that it is like impossible to use mplayer to watch an *.html file. OK.
For instance here is a cool example of lot of streaming for firefox
http://watchtvlivestreaming.com/tvlive/b5499
Code...
Anyone is there a talented bright coder, coming from hell -because it is really difficult, to make such console program ?
View 1 Replies
View Related
Sep 16, 2010
I have a debian lenny machine that I am trying to add mod_perl to and use apache asp on. I have had a range of failures on it. Is ther a way I can build apache2 with mod_perl in it? Instead of separate. Apache2 is built with some modules built in by default, how can I make mod_perl one of them?
View 1 Replies
View Related
May 29, 2009
how to install Apache web server as I want to run my Perl and PHP scripts in web environment. what configuration I need for Perl and PHP. Does I also need some separate software/package/module for perl and PHP? I have experience of running ASP scripts with IIS in Windows environment but have no idea of Apache in Linux for Perl and PHP.
View 4 Replies
View Related
Feb 8, 2011
I am trying to use awk command in perl. Below is my awk comamnd which works alone.
awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat
I would like to use this awk's output in shell script. I am using system command like below to get the out put. But it is not working.
$Output = system("awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat'");
View 3 Replies
View Related
Aug 11, 2011
I am trying to set up a web page for the business and we have had the website or domain for a while but no one has put anything on it. I have never done anything like this before so i typed in the website and got the apache test page saying that i should add this: /var/www/html/
1) i'm not really sure what to add it to
2) i've tried adding it to the website url and that comes up with invalid page
3) could someone please explain in simple terms how i can get on to the webpage so i can start adding content to it?
View 1 Replies
View Related
Apr 28, 2011
teste.domain.com:
Code:
<VirtualHost *:80>
ScriptAlias /cgi-bin/ /home1/_sites/teste/site/cgi-bin/
<Directory /home1/_sites/teste/site/cgi-bin/>
Options FollowSymLinks +ExecCGI
AllowOverride None
[Code]...
View 2 Replies
View Related
Jul 30, 2010
I have a large body of code (2000+ lines at this point) with lots of global variables, and a handful of locals. I would like to know is there a way to print out all global variables in use at a particular moment in time either from the debugger (ideally) or in line?
Basically I have something like this for the menu
1. Do thing 1
2. Do thing 2
3. Do thing 3
4. Do thing 1 and 2
5. Do thing 1 and 3
6. Do thing 1, 2 and 3
The problem is, as you select something from the menu again after you finish an option, the globals are still set and I'd like to clear them. If I had a list of all of them, it be easy to copy and paste and set them before the program ran another entry again. Suggestions? I'm aware of reset [a-z], but all of my vars are uppercase, and I would upset INC, and other upper case built-ins.
View 1 Replies
View Related
Mar 4, 2011
I have an apache server and /var/www/html/index.html startpage working fine. But I want to have files accessed by apache in my /home/beny/ director.
View 8 Replies
View Related
Jun 12, 2011
I had installed and checked lamp stack last night but today when I type http://localhost the fodora test page for apache didn't come up. It is just blank. I had also configured apache to load after every boot.
View 14 Replies
View Related
May 7, 2011
Since I upgraded to 11.04 on my Server edition I have been experiencing some problems with my FTP-server and Apache. Apache just says that the page is "forbidden" if I'm not logged in on the server, which means I need to go to the server and physically log in or I can do it trough ssh but then when I close my ssh client on my work computer the page is "forbidden" again. And I cant seem to reach the FTP-server from an external address so I need to be in the network to access it.
It says something like:
Code:
An error occurred opening that folder on the FTP Server. Make sure you have permission to access that folder.
200 Switching to ASCII mode.
227 Entering Passive Mode (192,168,0,194,233,166)
View 3 Replies
View Related
Nov 20, 2009
I am getting this error whenever I access the page:
Code:
PHP Warning: fgets(): supplied argument is not a valid stream resource
Any idea whats all about?
I explored and found it permission issue.
I want to put a user call paul in apache group.Any idea how can I do that?
View 6 Replies
View Related
Nov 23, 2010
I not a total noob to linux only a noob to apache.I am Running A lamp server on A VPS with myhosting.com. but try as i might i cant apache2 to load the right page. I have set document root to /slk/redretriever/ but when i load the page it still loads /var/www/vhosts/default/htdocs/.I cant figure out why please help.
View 5 Replies
View Related
May 8, 2010
I have created a php page with only
PHP Code:
<? php echo "OK"; ?>
in the code. When I go to that page in a browser, I get a blank page. Is that normal, or am I suppose to see the word "OK" displayed in a browser? When I became curious, I open up Wireshark to capture the packets, I see that my server is giving out a "HTTP/1.0 500 Internal Server Error".
Here's the entire tcp stream:
Code:
GET /services/test.php HTTP/1.1
Host: 192.168.1.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 .....
View 6 Replies
View Related