What's new

Help Apache24+MySQL+PHP 8. php script returns a text instead of a PAGE.

reacah

Eternal Poster
Established
Joined
Oct 9, 2015
Posts
1,095
Reaction
167
Points
362
Age
34
sir pa help naman po un web server ko
Apache 24
MySQL + phpmyadmin
PHP 8

un script ng phpmyadmin ko di gumana nirereturn ng localhost as a text script not php web page
kahit un basic na

<?php

phpinfo();

?>

ayaw din

un localhost ko which is apache working naman
un mysql server working din naman na access ko thru mysql server management

na setup ko na din httpd.conf pero kapag nirestart ko na un apache after masetup un httpd.conf sa apache ayaw na mag start


Installation Details:

Apache: c:\Apache24
phpmyadmin: c:\Apache\htdocs\phpmyadmin
php: c:\Apache24\php

UPDATE:

dito ako nagkakaroon ng error sa line ng httpd.conf

#configure the path to php.ini
PHPIniDir "c:/Apache24/php"


LoadModule php_module "c:/Apache24/php/php8apache2_4.dll"

kapag wala un nasa taas ok naman apache server ko


Update: ok na working na un PHP
Solution: nagpalit ako version ng php


New Problem: how to add phpmyadmin in httpd.conf alias error kasi dun sa ginawa ko 403 forbidden ang nalabas.
 
Last edited:
## Added for MYsql/PMA based on guide.
<IfModule mod_alias.c>
Alias /phpMyAdmin "c:\Apache\htdocs\phpMyAdmin"
</IfModule>

<Directory "c:\Apache\htdocs\phpMyAdmin">
Options None
AllowOverride None
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>



SET A URL ALIAS (OPTIONAL)​

The standard URL for a phpMyAdmin installation is You do not have permission to view the full content of this post. Log in or register now., where ipaddress is the IP address that you added to the configuration file in the previous section. If you want to change the URL, you can set an alias.

  1. Open the /etc/httpd/conf.d/phpMyAdmin.conf file in a text editor.
  2. Find the lines beginning with Alias and change /phpMyAdmin to the alias of your choice, as shown in the following example:
    Alias /NewName /usr/share/phpMyAdmin
    Alias /newname /usr/share/phpMyAdmin

  3. Save and exit the file.


    sana nakatulong
 
## Added for MYsql/PMA based on guide.
<IfModule mod_alias.c>
Alias /phpMyAdmin "c:\Apache\htdocs\phpMyAdmin"
</IfModule>

<Directory "c:\Apache\htdocs\phpMyAdmin">
Options None
AllowOverride None
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>



SET A URL ALIAS (OPTIONAL)​

The standard URL for a phpMyAdmin installation is You do not have permission to view the full content of this post. Log in or register now., where ipaddress is the IP address that you added to the configuration file in the previous section. If you want to change the URL, you can set an alias.

  1. Open the /etc/httpd/conf.d/phpMyAdmin.conf file in a text editor.
  2. Find the lines beginning with Alias and change /phpMyAdmin to the alias of your choice, as shown in the following example:
    Alias /NewName /usr/share/phpMyAdmin
    Alias /newname /usr/share/phpMyAdmin

  3. Save and exit the file.


    sana nakatulong
ok naman kaso 403 forbidden un return nya.

SET A URL ALIAS (OPTIONAL)

The standard URL for a phpMyAdmin installation is You do not have permission to view the full content of this post. Log in or register now., where ipaddress is the IP address that you added to the configuration file in the previous section. If you want to change the URL, you can set an alias.

  1. Open the /etc/httpd/conf.d/phpMyAdmin.conf file in a text editor.
  2. Find the lines beginning with Alias and change /phpMyAdmin to the alias of your choice, as shown in the following example:
    Alias /NewName /usr/share/phpMyAdmin
    Alias /newname /usr/share/phpMyAdmin
tungkol dito httpd.conf ang i-edit diba?
 

Similar threads

Back
Top