Jump to content

Recommended Posts

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
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/
Share on other sites

  • Premium

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
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31346
Share on other sites

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> 

 

u0Cdb.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31358
Share on other sites

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

Link to comment
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31377
Share on other sites

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

 

 

dWu6h.png

 

I follow this tutorial to install:

 

But instead ngnix i installed apache24.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31383
Share on other sites

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  :D
  • Love 2
Link to comment
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31388
Share on other sites

 

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   :D

 

 

 

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.

Link to comment
https://metin2.dev/topic/4959-problem-with-php5-freebsd-93/#findComment-31463
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.