Okay well I changed my server settings accordingly and it still doesnt work. Now I get "No input file specified." when trying to access phpPgAdmin. I have cgi.fix_pathinfo in php enabled or set to 1 as well as broken-scriptfilename enabled in lighttpd. This doesnt doesnt look like a configuration issue with php/lighty because my other scripts/applications still work fine. Even with /srv/www set as the document root I cannot access phpPgAdmin in any way. Ive look around in logs and online and havent found anything. Out of desperation to find the source of the problem I ran strace of the lighttpd daemon although was not able to pinpoint anything right of the bat. But heres an excerpt from it where I was trying to access the phppgadmin directory. 17:02:34.699220 accept(4, {sa_family=AF_INET, sin_port=htons(46536), sin_addr=inet_addr("127.0.0.1")}, [16]) = 6 17:02:34.699509 brk(0x80b2000) = 0x80b2000 17:02:34.699757 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 17:02:34.699793 fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0 17:02:34.699832 ioctl(6, FIONREAD, [0]) = 0 17:02:34.699882 read(6, 0x80a5df0, 63) = -1 EAGAIN (Resource temporarily unavailable) 17:02:34.699932 accept(4, 0xbf97f468, [112]) = -1 EAGAIN (Resource temporarily unavailable) 17:02:34.699979 time(NULL) = 1207170154 17:02:34.700017 poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLIN}], 2, 1000) = 1 17:02:34.716431 ioctl(6, FIONREAD, [560]) = 0 17:02:34.716506 read(6, "GET /phppgadmin/ HTTP/1.1\r\nUser-Agent: Opera/9.26 (X11; Linux i686; U; en)\r\nHost: localhost\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,en;q=0.9\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r \nAccept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\nReferer: http://localhost/\r\nCookie: PHPSESSID=dmldbeb54le4e2fskbqfcogsr2\r \nCookie2: $Version=1\r\nCache-Control: no-cache\r\nConnection: Keep-Alive, TE\r\nTE: deflate, gzip, chunked, identity, trailers\r\n\r \n", 575) = 560 17:02:34.716801 stat64("/srv/www/phppgadmin/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 17:02:34.716901 stat64("/srv/www/phppgadmin/index.php", {st_mode=S_IFREG|0644, st_size=847, ...}) = 0 17:02:34.716976 open("/srv/www/phppgadmin/index.php", O_RDONLY| O_LARGEFILE) = 7 17:02:34.717025 close(7) = 0 17:02:34.717076 socket(PF_FILE, SOCK_STREAM, 0) = 7 17:02:34.717119 fcntl64(7, F_SETFD, FD_CLOEXEC) = 0 17:02:34.717153 fcntl64(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0 17:02:34.717190 connect(7, {sa_family=AF_FILE, path="/tmp/php-fastcgi.socket-3"}, 27) = 0 17:02:34.717287 getsockname(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 17:02:34.717386 writev(7, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\3 \256\0\0\17\17SERVER_SOFTWARElighttpd/1.4.19\v\tSERVER_NAMElocalhost\21 \7GATEWAY_INTERFACECGI/1.1\v\2SERVER_PORT80\v\tSERVER_ADDR127.0.0.1\v \5REMOTE_PORT46536\v\tREMOTE_ADDR127.0.0.1\v \25SCRIPT_NAME/phppgadmin/index.php\t\0PATH_INFO\17 \35SCRIPT_FILENAME/srv/www/phppgadmin/index.php\r \tDOCUMENT_ROOT/srv/www/\v\fREQUEST_URI/phppgadmin/\f\0QUERY_STRING\16 \3REQUEST_METHODGET\17\3REDIRECT_STATUS200\17\10SERVER_PROTOCOLHTTP/1.1 \17#HTTP_USER_AGENTOpera/9.26 (X11; Linux i686; U; en)\t \tHTTP_HOSTlocalhost\vuHTTP_ACCEPTtext/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\24\16HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9\23 \"HTTP_ACCEPT_CHARSETiso-8859-1, utf-8, utf-16, *;q=0.1 \24&HTTP_ACCEPT_ENCODINGdeflate, gzip, x-gzip, identity, *;q=0\f \21HTTP_REFERERhttp://localhost/\v $HTTP_COOKIEPHPSESSID=dmldbeb54le4e2fskbqfcogsr2\f\nHTTP_COOKIE2 $Version=1\22\10HTTP_CACHE_CONTROLno-cache\17 \16HTTP_CONNECTIONKeep-Alive, TE\7*HTTP_TEdeflate, gzip, chunked, identity, trailers\1\4\0\1\0\0\0\0", 974}, {"\1\5\0\1\0\0\0\0", 8}], 2) = 982 17:02:34.718705 time(NULL) = 1207170154 17:02:34.718746 poll([{fd=4, events=POLLIN}, {fd=-1}, {fd=7, events=POLLIN, revents=POLLIN}], 3, 1000) = 1 17:02:34.718798 ioctl(7, FIONREAD, [104]) = 0 17:02:34.718841 read(7, "\1\6\0\1\0K\5\0Status: 404 Not Found\r \nContent-type: text/html\r\n\r\nNo input file specified.\n\0\0\0\0\0\1 \3\0\1\0\10\0\0\0\0\0\0\0s: ", 104) = 104 17:02:34.718939 close(7) = 0 17:02:34.719037 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0 17:02:34.719135 setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0 17:02:34.719180 writev(6, [{"HTTP/1.1 404 Not Found\r \nTransfer-Encoding: chunked\r\nContent-type: text/html\r\nDate: Wed, 02 Apr 2008 21:02:34 GMT\r\nServer: lighttpd/1.4.19\r\n\r\n", 141}, {"19\r \n", 4}, {"No input file specified.\n", 25}, {"\r\n", 2}, {"0\r\n\r\n", 5}], 5) = 177 17:02:34.719328 setsockopt(6, SOL_TCP, TCP_CORK, [0], 4) = 0 17:02:34.719432 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0 17:02:34.719519 write(5, "127.0.0.1 localhost - [02/Apr/2008:17:02:34 -0400] \"GET /phppgadmin/ HTTP/1.1\" 404 36 \"http://localhost/\" \"Opera/9.26 (X11; Linux i686; U; en)\"\n", 144) = 144 17:02:34.719705 ioctl(6, FIONREAD, [0]) = 0 17:02:34.719755 read(6, 0x80a5e80, 575) = -1 EAGAIN (Resource temporarily unavailable) 17:02:34.719799 time(NULL) = 1207170154 17:02:34.719834 poll([{fd=4, events=POLLIN}, {fd=-1}, {fd=6, events=POLLIN, revents=POLLIN}], 3, 1000) = 1 17:02:34.786893 ioctl(6, FIONREAD, [504]) = 0 17:02:34.786964 read(6, "GET /favicon.ico HTTP/1.1\r\nUser-Agent: Opera/9.26 (X11; Linux i686; U; en)\r\nHost: localhost\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,en;q=0.9\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r \nAccept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\nReferer: http://localhost/phppgadmin/\r\nCache-Control: no-cache\r\nConnection: Keep-Alive, TE\r\nTE: deflate, gzip, chunked, identity, trailers\r\n\r \n", 575) = 504 17:02:34.787207 stat64("/srv/www/favicon.ico", 0xbf97eff8) = -1 ENOENT (No such file or directory) 17:02:34.787288 setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0 17:02:34.787329 writev(6, [{"HTTP/1.1 404 Not Found\r\nContent-Type: text/html\r\nContent-Length: 345\r\nDate: Wed, 02 Apr 2008 21:02:34 GMT \r\nServer: lighttpd/1.4.19\r\n\r\n", 134}, {"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n <head>\n <title>404 - Not Found</title>\n </head>\n <body>\n <h1>404 - Not Found</h1>\n </body>\n</html>\n", 345}], 2) = 479 17:02:34.787524 setsockopt(6, SOL_TCP, TCP_CORK, [0], 4) = 0 17:02:34.787608 ioctl(6, FIONREAD, [0]) = 0 17:02:34.787648 read(6, 0x80a5e80, 575) = -1 EAGAIN (Resource temporarily unavailable) 17:02:34.787685 time(NULL) = 1207170154 17:02:34.787719 poll([{fd=4, events=POLLIN}, {fd=-1}, {fd=6, events=POLLIN, revents=POLLIN}], 3, 1000) = 1 17:02:35.467104 ioctl(6, FIONREAD, [560]) = 0 17:02:35.467168 read(6, "GET /phppgadmin/ HTTP/1.1\r\nUser-Agent: Opera/9.26 (X11; Linux i686; U; en)\r\nHost: localhost\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,en;q=0.9\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r \nAccept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\nReferer: http://localhost/\r\nCookie: PHPSESSID=dmldbeb54le4e2fskbqfcogsr2\r \nCookie2: $Version=1\r\nCache-Control: no-cache\r\nConnection: Keep-Alive, TE\r\nTE: deflate, gzip, chunked, identity, trailers\r\n\r \n", 575) = 560 17:02:35.467428 socket(PF_FILE, SOCK_STREAM, 0) = 7 17:02:35.467477 fcntl64(7, F_SETFD, FD_CLOEXEC) = 0 17:02:35.467511 fcntl64(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0 17:02:35.467548 connect(7, {sa_family=AF_FILE, path="/tmp/php-fastcgi.socket-3"}, 27) = 0 17:02:35.467641 getsockname(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 17:02:35.467736 writev(7, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\3 \256\0\0\17\17SERVER_SOFTWARElighttpd/1.4.19\v\tSERVER_NAMElocalhost\21 \7GATEWAY_INTERFACECGI/1.1\v\2SERVER_PORT80\v\tSERVER_ADDR127.0.0.1\v \5REMOTE_PORT46536\v\tREMOTE_ADDR127.0.0.1\v \25SCRIPT_NAME/phppgadmin/index.php\t\0PATH_INFO\17 \35SCRIPT_FILENAME/srv/www/phppgadmin/index.php\r \tDOCUMENT_ROOT/srv/www/\v\fREQUEST_URI/phppgadmin/\f\0QUERY_STRING\16 \3REQUEST_METHODGET\17\3REDIRECT_STATUS200\17\10SERVER_PROTOCOLHTTP/1.1 \17#HTTP_USER_AGENTOpera/9.26 (X11; Linux i686; U; en)\t \tHTTP_HOSTlocalhost\vuHTTP_ACCEPTtext/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\24\16HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9\23 \"HTTP_ACCEPT_CHARSETiso-8859-1, utf-8, utf-16, *;q=0.1 \24&HTTP_ACCEPT_ENCODINGdeflate, gzip, x-gzip, identity, *;q=0\f \21HTTP_REFERERhttp://localhost/\v $HTTP_COOKIEPHPSESSID=dmldbeb54le4e2fskbqfcogsr2\f\nHTTP_COOKIE2 $Version=1\22\10HTTP_CACHE_CONTROLno-cache\17 \16HTTP_CONNECTIONKeep-Alive, TE\7*HTTP_TEdeflate, gzip, chunked, identity, trailers\1\4\0\1\0\0\0\0", 974}, {"\1\5\0\1\0\0\0\0", 8}], 2) = 982 17:02:35.469107 time(NULL) = 1207170155 17:02:35.469152 poll([{fd=4, events=POLLIN}, {fd=7, events=POLLIN, revents=POLLIN}, {fd=-1}], 3, 1000) = 1 17:02:35.469202 ioctl(7, FIONREAD, [104]) = 0 17:02:35.469243 read(7, "\1\6\0\1\0K\5\0Status: 404 Not Found\r \nContent-type: text/html\r\n\r\nNo input file specified.\n\0\0\0\0\0\1 \3\0\1\0\10\0\0\0\0\0\0\0s: ", 104) = 104 17:02:35.469334 close(7) = 0 17:02:35.469405 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0 17:02:35.469495 setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0 17:02:35.469536 writev(6, [{"HTTP/1.1 404 Not Found\r \nTransfer-Encoding: chunked\r\nContent-type: text/html\r\nDate: Wed, 02 Apr 2008 21:02:35 GMT\r\nServer: lighttpd/1.4.19\r\n\r\n", 141}, {"19\r \n", 4}, {"No input file specified.\n", 25}, {"\r\n", 2}, {"0\r\n\r\n", 5}], 5) = 177 17:02:35.469658 setsockopt(6, SOL_TCP, TCP_CORK, [0], 4) = 0 17:02:35.469750 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0 17:02:35.469836 write(5, "127.0.0.1 localhost - [02/Apr/2008:17:02:34 -0400] \"GET /favicon.ico HTTP/1.1\" 404 345 \"http://localhost/phppgadmin/\" \"Opera/9.26 (X11; Linux i686; U; en)\"\n127.0.0.1 localhost - [02/Apr/2008:17:02:35 -0400] \"GET /phppgadmin/ HTTP/1.1\" 404 36 \"http://localhost/\" \"Opera/9.26 (X11; Linux i686; U; en)\"\n", 300) = 300 17:02:35.469976 ioctl(6, FIONREAD, [0]) = 0 17:02:35.470017 read(6, 0x80a5e80, 575) = -1 EAGAIN (Resource temporarily unavailable) 17:02:35.470059 time(NULL) = 1207170155 17:02:35.470095 poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLIN}, {fd=-1}], 3, 1000) = 1 17:02:35.499947 ioctl(6, FIONREAD, [504]) = 0 17:02:35.500017 read(6, "GET /favicon.ico HTTP/1.1\r\nUser-Agent: Opera/9.26 (X11; Linux i686; U; en)\r\nHost: localhost\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,en;q=0.9\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r \nAccept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\nReferer: http://localhost/phppgadmin/\r\nCache-Control: no-cache\r\nConnection: Keep-Alive, TE\r\nTE: deflate, gzip, chunked, identity, trailers\r\n\r \n", 575) = 504 17:02:35.500248 stat64("/srv/www/favicon.ico", 0xbf97eff8) = -1 ENOENT (No such file or directory) 17:02:35.500327 setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0 17:02:35.500371 writev(6, [{"HTTP/1.1 404 Not Found\r\nContent-Type: text/html\r\nContent-Length: 345\r\nDate: Wed, 02 Apr 2008 21:02:35 GMT \r\nServer: lighttpd/1.4.19\r\n\r\n", 134}, {"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n <head>\n <title>404 - Not Found</title>\n </head>\n <body>\n <h1>404 - Not Found</h1>\n </body>\n</html>\n", 345}], 2) = 479 17:02:35.500575 setsockopt(6, SOL_TCP, TCP_CORK, [0], 4) = 0 17:02:35.500667 ioctl(6, FIONREAD, [0]) = 0 17:02:35.500709 read(6, 0x80a5e80, 575) = -1 EAGAIN (Resource temporarily unavailable) 17:02:35.500749 time(NULL) = 1207170155 17:02:35.500784 poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLIN}, {fd=-1}], 3, 1000) = 1 17:02:36.163111 ioctl(6, FIONREAD, [560]) = 0 17:02:36.163175 read(6, "GET /phppgadmin/ HTTP/1.1\r\nUser-Agent: Opera/9.26 (X11; Linux i686; U; en)\r\nHost: localhost\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,en;q=0.9\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r \nAccept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\nReferer: http://localhost/\r\nCookie: PHPSESSID=dmldbeb54le4e2fskbqfcogsr2\r \nCookie2: $Version=1\r\nCache-Control: no-cache\r\nConnection: Keep-Alive, TE\r\nTE: deflate, gzip, chunked, identity, trailers\r\n\r \n", 575) = 560 17:02:36.163442 stat64("/srv/www/phppgadmin/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 17:02:36.163530 stat64("/srv/www/phppgadmin/index.php", {st_mode=S_IFREG|0644, st_size=847, ...}) = 0 17:02:36.163605 open("/srv/www/phppgadmin/index.php", O_RDONLY| O_LARGEFILE) = 7 17:02:36.163654 close(7) = 0 On Wed, 2008-04-02 at 14:45 -0400, Eric Belanger wrote:
On Wed, 2 Apr 2008, alec.hussey@madsoft.org wrote:
Hey everyone,
The other day I did a system upgrade and upgrade to the latest phpPgAdmin. However, after the ugrade had finished there was nothing left in /home/httpd/html/phpPgAdmin other than conf/config.inc.php.pacsave. And removing then reinstalling the package does not resolve the problem. Then I figured it may have moved directories and didnt specify that during the upgrade but the only results returned are:
/home/httpd/html/phpPgAdmin /home/httpd/html/phpPgAdmin/conf /home/httpd/html/phpPgAdmin/conf/config.inc.php.pacsave
Not exactly sure what happened here but it seems as if the package has become broken. Maybe if anyone else has a better idea they could let me know.
Thanks! -Alec Hussey
The files are now installed in /srv/www/phppgadmin. You'll need to update your web server config accordingly.