My php or HTML pages wont preview on localhost server?


HOME » Linux

I downloaded XAMPP- apache and tomcat. I installed them and both and MySQL is working fine. The apache service is installed and working fine with a check for "installed service", but the tomcat service has a x where should be a check for service working. When I try to load it as a service I get error the service was not (Un)installed. So think its in stalled but not sure.
Anyhow, when I try to open .php files in dreamweaver I get the following error, but for some reason the path in browser is http://localhost/TMP2m07ki5plg.php and not to the file v611 where the files are? [Full path should be C:/Applications/v611]
Not Found
The requested URL /TMP28usgi5v8o.php was not f

Related to : My php or HTML pages wont preview on localhost server?
PHP pages display well on webhost, but not on my localhost
Linux
Hi can somebody please advise me on what the problem is with my php installation, it is installed on Win XP Pro using IIS 5.1, PHP Version 5.2.3 with MySql 5.0.15. IIS is configured with ISAPI filter set to "C:PHPphp5isapi.dll" and is loaded, mappings is set to ".php" with executable set as "C:PHPphp5isapi.dll".
I am sure it has to do with my php.ini file, but I am a first time php user and I have searched all over the web and can't find any reason for this happening - this is what displays on my localhost, this is a screenshot of the portion of the affected page:
This is what is displayed on my webhost (http://www.000webhost.com) of the same portion of the
My php or HTML pages wont preview on localhost server?
Linux
I downloaded XAMPP- apache and tomcat. I installed them and both and MySQL is working fine. The apache service is installed and working fine with a check for "installed service", but the tomcat service has a x where should be a check for service working. When I try to load it as a service I get error the service was not (Un)installed. So think its in stalled but not sure.
Anyhow, when I try to open .php files in dreamweaver I get the following error, but for some reason the path in browser is http://localhost/TMP2m07ki5plg.php and not to the file v611 where the files are? [Full path should be C:/Applications/v611]
Not Found
The requested URL /TMP28usgi5v8o.php was not f
[ubuntu] Apache server pages problem in localhost
Linux
I'm trying to get this thing working from another app's mini-server - the app contain a very stripped-down html server, and can be pointed towards a port - nothing more. Usually, its use is very simple: point your broswer to http://localhost:port/ and you get the page.
However, when I run this mini-server, I also have (I believe by default) Apache2 running as a service in my Ubuntu. Which means, as soon as I go into http://localhost/, it gives me "IT WORKS!!".
I tried pointing my mini-server towards port 50000, but again, I can't see a thing; it's as though Apache knows it's not the one serving that page, so it doesn't allow any other server to output
[kubuntu] Location of Web HTML pages for Localhost to see
Linux
Hello ya'll,
I am trying to move my existing web pages that I have been working on from a Windows XP Testing Server to a Ubuntu Server edition w/Kubuntu desktop. I have the Apache server running and have found the /root/var/www/ folder with the test Index.Html and testing with my browser running Localhost I get the It Works HTML page so this far we're OK. I then create a folder called it ADWeb and placed it in the root/var/www/ADWeb I then copied my
existing Web pages and data into this folder. If I put these in the root/var/www folder and delete the test Index.Html I can see my web pages starting with my Index.HTML when I run Localhost in the browser.

[ubuntu] how to get html pages to appear from /localhost/~username directory
Linux
I have apache2 installed on Ubuntu Precise. Right now localhost URL points to /var/www directory and it works correctly. How do I setup a redirection to a user folder so that, if for example, the URL /localhost/~username/ was entered, it would display an html file stored in a subdirectory of that user? Thank you.
PHP: connecting to localhost through pg_connect — Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Linux

I have downloaded postgress.app as my localhost for postgresql. I can connect using java through jdbc, but have had problems connecting through php. When I run the pg_connect(host=localhost, user = xxx, password = xxx) I receive the error: Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

I have researched this problem pretty thoroughly and tried all of the suggestions:

1) Uncomment and set listen_addresses = '*' in the postgresql.conf file

2) Add host all all "YOUR-IP-ADDRESS" md5 to the bottom of the pg_hba.conf

3) Set tcpip_socket = true in postgresql.conf file (Now been deprecated)

4) Delete the postmaster.pid file — psql: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

There has been some discrepancy in exactly what to put in for "YOUR-IP-ADDRESS" but this article suggests using ifconfig to check your IP and then using 192.168.0.0/24.

Even if I change the IP address in the pg_hba.conf file, however, my error still asks if the IP (127.0.0.1) accepts connections.

A last note: I have tried the method of leaving host blank or setting the host to a socket path and using a unix domain socket, but that gave me a whole new set of errors which seemed like a bigger rabbit hole than solving the TCP/IP.

Any help is much appreciated!



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .