danhakhavro 42 Posted January 18, 2015 Share Posted January 18, 2015 Hello everybody, Recently i installed php in my dedicated server but i have always some error. When i enter in my site they downloading my index.php Wat is the problem? My php doesnt work? Why? Please help me, i trie everyting and nothing work. Sorry for my bad english and thanks for spend you time with me. Link to comment Share on other sites More sharing options...
Ayaka 300 Posted January 18, 2015 Share Posted January 18, 2015 Sure that php is installed? Show me: pkg_info | grep php When installed, do you have configurate apache? mods-available F E E L - T H E - A W E S O M E N E S S Link to comment Share on other sites More sharing options...
Premium Shogun 4591 Posted January 18, 2015 Premium Share Posted January 18, 2015 add this on httpd.conf below the LoadModule part <IfModule mod_php5.c> DirectoryIndex index.php index.html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted January 18, 2015 Author Share Posted January 18, 2015 (edited) Sure that php is installed? Show me: pkg_info | grep php When installed, do you have configurate apache? mods-available Where i can find pkg_info and grep.php files? add this on httpd.conf below the LoadModule part <IfModule mod_php5.c> DirectoryIndex index.php index.html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Reboot 772 Posted January 18, 2015 Share Posted January 18, 2015 Mysql php56 apahche24 php56-extensions Advanced Firewall If you do I complete tutorial . 2 Link to comment Share on other sites More sharing options...
Ayaka 300 Posted January 18, 2015 Share Posted January 18, 2015 Sure that php is installed? Show me: pkg_info | grep php When installed, do you have configurate apache? mods-available Where i can find pkg_info and grep.php files? Its a console comand (use putty) xD http://www.freebsd.org/cgi/man.cgi?query=pkg_info&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html F E E L - T H E - A W E S O M E N E S S Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted January 18, 2015 Author Share Posted January 18, 2015 (edited) Mysql php56 apahche24 php56-extensions Advanced Firewall If you do I complete tutorial . If you can pleaseee xD Sure that php is installed? Show me: pkg_info | grep php When installed, do you have configurate apache? mods-available Where i can find pkg_info and grep.php files? Its a console comand (use putty) xD http://www.freebsd.org/cgi/man.cgi?query=pkg_info&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html I follow this tutorial to install: But instead ngnix i installed apache24. Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Ayaka 300 Posted January 18, 2015 Share Posted January 18, 2015 I dont know what you did exactly so i cant help you but if you follow this tutorial you should get it work: Apache: http://www.freebsdmadeeasy.com/tutorials/web-server/configure-apache-web-server-on-freebsd.php Mysql: http://www.freebsdmadeeasy.com/tutorials/web-server/install-mysql-server-on-freebsd.php PHP: http://www.freebsdmadeeasy.com/tutorials/web-server/install-php-5-for-web-hosting.php optional: phpmyadmin: http://www.freebsdmadeeasy.com/tutorials/web-server/use-phpmyadmin-to-manage-mysql-on-freebsd.php If you ask me, i would set up a debian server for webhosting. But do it as you want F E E L - T H E - A W E S O M E N E S S Link to comment Share on other sites More sharing options...
Reboot 772 Posted January 18, 2015 Share Posted January 18, 2015 I dont know what you did exactly so i cant help you but if you follow this tutorial you should get it work: Apache: http://www.freebsdmadeeasy.com/tutorials/web-server/configure-apache-web-server-on-freebsd.php Mysql: http://www.freebsdmadeeasy.com/tutorials/web-server/install-mysql-server-on-freebsd.php PHP: http://www.freebsdmadeeasy.com/tutorials/web-server/install-php-5-for-web-hosting.php optional: phpmyadmin: http://www.freebsdmadeeasy.com/tutorials/web-server/use-phpmyadmin-to-manage-mysql-on-freebsd.php If you ask me, i would set up a debian server for webhosting. But do it as you want Not good tutorial, not work. It's for older version php - apache. A tutorial to do immediately 2 Link to comment Share on other sites More sharing options...
Reboot 772 Posted January 18, 2015 Share Posted January 18, 2015 Here is you tutorial : 3 Link to comment Share on other sites More sharing options...
Ayaka 300 Posted January 19, 2015 Share Posted January 19, 2015 I dont know what you did exactly so i cant help you but if you follow this tutorial you should get it work: Apache: http://www.freebsdmadeeasy.com/tutorials/web-server/configure-apache-web-server-on-freebsd.php Mysql: http://www.freebsdmadeeasy.com/tutorials/web-server/install-mysql-server-on-freebsd.php PHP: http://www.freebsdmadeeasy.com/tutorials/web-server/install-php-5-for-web-hosting.php optional: phpmyadmin: http://www.freebsdmadeeasy.com/tutorials/web-server/use-phpmyadmin-to-manage-mysql-on-freebsd.php If you ask me, i would set up a debian server for webhosting. But do it as you want Not good tutorial, not work. It's for older version php - apache. A tutorial to do immediately Sorry but thats just stupid sciolism. Its a right way to set up a working webserver. If you are note able to Upgrade pkg first you should not set up a server. Ports are FreeBSB's software package system where you officially SHOULD use to install, uninstall, update your softwares packages. Thats the best way to install all packages up-to-date. F E E L - T H E - A W E S O M E N E S S Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now