与phpliteadmin共享SQLite数据库

与phpliteadmin共享SQLite数据库,php,linux,sqlite,Php,Linux,Sqlite,我刚刚开始使用phpliteadmin来管理SQLite数据库[1] 我使用php5.4中的内置Web服务器设置本地访问,正如文档[2]所示: php -S localhost:8000 http://localhost:8000/phpliteadmin.php 我想: (1) 与我网络上的其他几个人共享phpliteadmin访问权限 (2) 使用ApacheWebServer设置phpliteadmin(以防我需要从php服务器迁移) 对如何做到这两个方面的建议感兴趣吗 [1] 在运

我刚刚开始使用phpliteadmin来管理SQLite数据库[1]

我使用php5.4中的内置Web服务器设置本地访问,正如文档[2]所示:

php -S localhost:8000
http://localhost:8000/phpliteadmin.php 
我想:

(1) 与我网络上的其他几个人共享phpliteadmin访问权限

(2) 使用ApacheWebServer设置phpliteadmin(以防我需要从php服务器迁移)

对如何做到这两个方面的建议感兴趣吗


[1] 在运行CentOS 6的Linux计算机上


[2]

我解决了这两个问题,但我想公开我所做的事情(也许可以改进或对其他人有用)

(1) 使用php5.4 webserver托管的简单方法(指定IP地址):

(f) 将phpliteadmin.php移动到Web服务器的文档根目录

(g) 修改phpliteadmin.php中的$directory以指向数据库的目录

(h) 修改iptables以允许Web服务器通过防火墙:/etc/sysconfig/iptables

-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
(i) 重新启动iptables:

service iptables restart
(j) 启动Web服务器:

service httpd start
(h) 浏览器中的服务器IP地址应识别phpliteadmin.php文件并请求数据库登录

如果显示.php文件原始文本,则表明php未正确加载,请检查步骤(e)。如果php加载,但报告数据库未找到和/或目录不可写,请检查phpliteadmin.php所在的数据库和DocumentRoot上的权限(例如,/var/www需要修改sudo,我必须打开权限)


[1]

[2]

[3]

## Line 262 - Set the server admin mail ##
ServerAdmin <e-mail>    
## Line 276 - Set the website name ##
ServerName <IP_ADDRESS>:80
## Line 292 - Set the web pages folder ##
DocumentRoot "/var/www"
## line 402 - Sent the index or home page of the website ##
DirectoryIndex phpliteadmin.php
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
service iptables restart
service httpd start