Ubuntu Networking :: Localhost Can Read Phpinfo() But Not Index.php?
Jan 7, 2011
Installed apache2 and php5, got the message "It works!" and phpinfo() displays the info page from withing the my folder. But when i put my index.php and rest of the files in www/mysite/ I only get a blank page displaying nothing, as if my php scripts wont parse. If I create a plain html "hello world" doc it displays that.. I've used this guide before [URL] and got it to work last time some months ago, but this time around after clean ubuntu reinstall it's showing nothing, remember I struggled with some permission things last time doing sudo chmod a+rwx /var/www/* and same for subfolders css and images. but now nothing happens, no errors or nothing. I didnt have to do enything else last time, no php.ini or nothing, it just worked, after I set permissions to get css and images to display correctly. Tried to put my files in www alone but dont work either (also cannot delete the default index.html in the www folder). Tried to restart apache2 and the computer, but no luck. My site also works online from other servers, so this is a local problem.
View 3 Replies
ADVERTISEMENT
Dec 19, 2010
I'm using fedora 14. And I have installed apache, PHP and MySQL. I tried testing PHP with phpinfo(). But when I view it view my browser (localhost/test.php) it just shows the code itself instead of displaying the phpinfo page. This is the content of my test.php page.
<?php
phpinfo();
?>
View 3 Replies
View Related
Jul 12, 2011
I have installed XAMPP on my system and started it just fine, but for some reason when I type "http://localhost/myDirectory/index.php" into the address bar of a browser, I get a 404 error. I followed the instructions hereand after creating test.php, I was still not able to view it. Can someone please tell me what I am doing wrong?
View 11 Replies
View Related
Jan 24, 2010
I have a very strange problem.Few days ago everything was working fine.Now every site I'm developing under /var/www doesn't open at all.If i have a file /var/www/siteone/index.php, when i try to open http://localhost/siteone/index.php it's not opening. And IT USED TO OPEN few days ago.It seems that php is working: http://localhost/index.php is working.I'm using .htaccess in subfolders. I remove it for tests - nothing changed.What new i did to my Ubuntu:Installing of VMware Server 2.0.2 + Windows XP as a guest. Works fine.Strange error/warning from error.log in apache2 folder:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/apc.so' - /usr/lib/php5/20060613+lfs/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0[Sun Jan 24 18:34:02 2010] [error] [client 127.0.0.1] File does not exist: /var/www/siteone/localhostWhy this localhost appears at the end of line?I'm using linux/ubuntu for about 3 months already - i'm not confident with it.
View 2 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
Apr 2, 2010
I am trying to port c & c++ open source code onto embedded target(MIPS).It compiles fine on x86/RH4. When I try embedded platform specific tool chain as follows, I get following error:
I tried different combinations. It did not help. My idea is to port an open source code that works fine on X86/Linux to an embedded target based on MIPS.
View 4 Replies
View Related
May 30, 2011
I have installed apache+PHP, but even phpinfo gives 500. CLI PHP works fine. What can be the cause?
View 1 Replies
View Related
Jul 19, 2011
I just setup a server using ubuntu server edition also installed apache, php, mysql and phpmyadmin.. when i try to setup FTP permission via winscp i get the error /var/www/phpinfo.php: Operation not permitted. ans so on for other files present there..
View 3 Replies
View Related
Mar 25, 2011
I had set the display_errors to On in the php.ini. But the phpinfo() still show it as off. The php.ini file that I wrote to was the one shown in phpinfo(), namely /etc/php.ini. The setting couldn't be reflected even after a reboot. I suspected that the /etc/php.ini was not the one get run so I rename it to php2.ini and reboot. phpinfo() still working and displayed the loaded php.ini file is /etc/php.ini.
View 4 Replies
View Related
Mar 23, 2011
Have Apache running on Ubuntu Server. Say I have a domain, www.somewhere.com, and I have uploaded a file, phpinfo.php. If I hit http://www.somewhere.com/phpinfo.php, I get my file as expected. However, If I hit non-existent file http://www.somewhere.com/phpinfo/somefile.dat, it also acts as if I hit phpinfo.php, instead of giving me a 404 error. It seems that because the DIRECTORY "phpinfo" does not exist, it decided that I must have meant to hit phpinfo.php at the root of the site.
If I create an empty "phpinfo" directory then it behaves as expected and gives me a 404 not found page. This is reproducible for any other file name you can think of. I'm sure this is some Apache convenience behavior but I would like to disable it (it is messing with some mod_rewrite stuff I would like to do). Because it's hard to describe I cannot figure out which Apache option it might be (whatever I Google for gives me completely unrelated results).
View 9 Replies
View Related
Oct 22, 2010
I created a file to show phpinfo. But configure command is missing from the list.
Check some other servers, confiugure command is there.
Is this an ubuntu issue?
View 1 Replies
View Related
Feb 7, 2011
I have an apache2 php5 on an ubuntu 10.04 it was working fine except today and does not open web site now. I tried to open phpinfo.php but it takes long time and at the end it loads php informations just until date module. I installed php5-cli to find out what does not work properly then I used:
Quote:
# php5 -i
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so' - /usr/lib/php5/20090626+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib
[Code]....
View 6 Replies
View Related
Feb 9, 2010
PVM 3.4.6 cannot add localhost. It says it can't find pvmd3, but why is it even looking for that when that is not part of the installation?
View 2 Replies
View Related
Jun 6, 2010
So i was trying to Wget some files from a server to test how much i know about Wget. Running Karmic.I think it connecting to localhost is wrong right?
View 5 Replies
View Related
Feb 11, 2011
I recently installed Linux Mint and went through the whole business, but when I go to my DNS's it just goes to my FIOS login.
dns:
foxwebhosting.dyndns.org
foxwebhosting2.dyndns.org
I tried everything in mind, but I think the big issue has to do with the reason why it's picking up the FIOS login and not even the index of my server.
View 3 Replies
View Related
Mar 30, 2010
I tend to forget stuff if I don't work with it for awhile. somehow I struggled through and figured out (with a lot of help) how to set up Ubuntu Intrepid server edition on my computer, and am serving my website from my computer. For times when the free DNS nameserver is 'closed' (often lol) I use localhost and can see/work on my site. Suddenly, when I type localhost into the address bar, I get a blank page, nothing! I'm not sure what to do....can someone please help because am going to use my website to present a class project, and was going to use localhost (bring my computer) in case the nameserver was down, I have to be able to display it.
View 3 Replies
View Related
Apr 26, 2011
When i try to connect to MySQL database with MySQL Workbench using root@localhost i get following message: Failed to Connect to MySQL at localhost:3306 with user root
Access denied for user 'root'@'192.168.0.1' (using pasword: YES) which is ok, becouse 192.168.0.1 is not listed as a host from which MySQL server should accept connections.
I am a little confused, becouse i tell MySQL Workbench to connect using localhost, so server should (at least i think so) receive connection from 127.0.0.1
I think i had similar issue with PostgreSQL some time ago, but i just allowed connections from 192.168.0.1 then.
My host file is:
Code:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain localhost
#::1 ent-pc localhost6.localdomain6 localhost6
127.0.0.1 ent-pc
[Code]...
View 5 Replies
View Related
May 24, 2011
i re-installed ubuntu 11.04 two days ago, to join 2 partitons into 1,anyway i then setup vnc and ssh as normal but now it just times out on both when trying to connect is there a firewall or something in place by default?ports show as open when scanning my external isp address, ubuntu box is in the dmz so no need for ports being forwarded.i also cannot connect via localhost, the above testing i could not connect from my worki can also netcat to my external ip via ssh/vnc ports and read the banners fine?
View 1 Replies
View Related
May 27, 2010
I have a laptop with Apache, MySQL, PHP, etc, and I'm able to work on web programming on my local server while at home, connected to my network. But I would like to be able to work on the local websites when I'm not connected to any networks, both for demonstrating a site, or simply working on it.
I was surprised to find that I could not connect to localhost at all without a network connection. I tried my normal Google for a solution, but, of course, that was futile without a network.
Now, I'm at home, and of course, it works because I have wireless. I don't really want to disconnect that to figure it out, so I thought maybe some nice soul here might know how to do this. Surely it can't be hard, can it? But, it's certainly not obvious.
View 3 Replies
View Related
Jul 22, 2010
i know it all sounds weard but ive been searching google so much now.. look the setup is kinda straight forward. We got a test server for websites. This server has lamp server configured. Now i have a Website in the apache www folder. From here on everything works fine in http://localhost or 127.0.1.1 etc etc. also i have configured virtualhosts. This so we can have a live enviroment but its actually a test enviroment.
Now i try to connect trough the lannetwork! so i goto my windows client and hit in the browser :http://(serverip+port) and also tried http://(serverip) When i do this i get a 403 forbiddin acces. I solved that problem by deleted a line in the apache2.conf wot was called : virtualHost xxx.xxx.xxx.xx: xx
Now Hes loading the page but says he cant connect to 127.0.1.1 Any1 knows a solution? (sorry for my bad grammer btw )
View 9 Replies
View Related
Oct 19, 2010
Is there a way to only accept SSH Tunneled VNC connections from localhost? I would like to close port 5900 on my router and only have SSH open.
View 2 Replies
View Related
Dec 31, 2010
I have an application that listens to port 5744. I send to it a command from a terminal like this
Code:
echo my-command > /dev/tcp/localhost/5744
and replies
[code]....
View 3 Replies
View Related
May 5, 2011
I've got problem with Avahi on my laptop. It can see the other machines and services on the LAN but not it's own local services and I have no idea why. The laptop (hostname: forseti) sports Ubuntu 10.10, installed aavahi-daemon, avahi-dnsconfd and libapache2-mod-dnssd. Firewall is disabled. Other hosts on the LAN are: magni (openSuSE 11.4 with lots of services published and visible from forseti) and freya (Ubuntu 10.10 with gnome-user-share up & running). Forseti can see the other hosts and their services but not itself. The other hosts can't see forseti. Checked both with nautilus and CLI's avahi-browse.
View 1 Replies
View Related
Jul 22, 2011
One of the computers attached to the network is giving localhost instead of 192.168.x.x in Remote Desktop config page therefore I'm unable to access it:
Quote: Your desktop is only reachable over the local network. Others can access your computer using the address localhost. Other computer and even other accounts on the same computer are showing something like:
Quote: Your desktop is only reachable over the local network. Others can access your computer using the address 192.168.0.8. How can I fix this?
View 2 Replies
View Related
Dec 30, 2010
I am running the HTTP server (Jetty) from Eclipse IDE, which listens on port 8888. I can connect to it in the browser with URL [URL] but not with http://192.168.1.100:8888/home, where 192.168.1.100 is my local IP. Not from this PC or any other PC in the LAN. Firewall is disabled. I can successfully ping to 192.168.1.100. I can share from this PC with SAMBA.
All configuration and logs look fine.
View 6 Replies
View Related
Jul 8, 2010
I'm having trouble pinging localhost, specifically, pinging localhost when I'm not connected to a network. When I try it keeps telling me the operation is not permitted:
Code:
matt@mubuntu:~$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
if I connect to the network, start pinging then disconnect it continues pinging. Google seems to think it could be something to do with my iptables setup:
Code:
matt@mubuntu:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
[code]....
When not connected to network
Code:
matt@mubuntu:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
But as far as I can tell there isn't anything in there which would stop me connecting to the localhost (I also can't connect to my local apache instance when offline)... (It's worth mentioning that a couple of weeks ago I had the pc setup to share it's internet connection with a laptop, ala this guide, however I've since disabled the iptables rules and disabled ip forwarding.)
View 4 Replies
View Related
Jul 16, 2011
I'm going to be going off to college in the fall and the internet probably won't be blazing fast like it is at home, so I was wanting to set my desktop up so that it would act as a local cache of the parts of the internet i frequent the most, but I can't find anything like that. All the tutorials I've found are either for sharing the load on a server or for setting up a separate machine as the squid.
View 3 Replies
View Related
Aug 8, 2011
I have developed a site in localhost in my laptop. Here are the specs: Ubuntu 11.04, Joomla! 1.7, Db Ver: 5.1.54-1ubuntu4, PHP Ver: 5.3.5, Web Server Apache/2.2.17
This laptop is connected to a wi-fi network. Task: I like to see this local site from my laptop to other desktop computers in the same network. I understand that I need to do some changes in /etc/hosts what changes I need to do to be able to see my localhost site in the network.
View 2 Replies
View Related
May 2, 2010
i am trying to use a local DNS service (unbound), and for that, i want each connection (eth0, wlan0) to first use localhost as DNS (127.0.0.1) and then try the DNSs it gets from the DHCP. this is a laptop so it is not just setting it for a single connection but a system default.
i looked and searched and there does not seem to be a straightforward way of doing it. i am usign gnome with networkmanager, and setting the method as "get IP only" is not suitable, as it omits the DHCP-provided DNSs, and also cannot be set as the default method.
View 1 Replies
View Related
Jul 28, 2010
I am looking how to fix a problem like is in the subject. I searched internet and lots of people wrote that to fix this problem need to add a line in /etc/hosts file:127.0.0.1 localhostMoreover i added later also line:127.0.0.1 localhost.localdomain localhostbut it didn't help.
View 1 Replies
View Related