• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

php files(Symlink) are displaying as text

AbdulWahab

New Pleskian
Hi,

This is not same other question like "php file is displaying text or not executing".

In my case, the php files are indeed working fine. However the files(symlink) to the php files are not working.

For example, the normal .php files are working.

#ls -al
lrwxrwxrwx 1 ftomd psacln 9 Jul 21 2010 ystalyfera -> index.php lrwxrwxrwx 1 ftomd psacln 9 Jul 21 2010 ystradgynlais -> index.php

As you can see in the above, the websites is custom coded and all internal pages are symlink to main index.php file. These symlink files are not working and displaying as text files.

The same script working on another server(migrated from there) with Apache 2.2 and php 5.3.

New server has Apache 2.4 and php 5.4(dso), CentOS 7 with Plesk 12.5

Am i missing something?.

Any suggestions?. Please let me know if you need more details.

Thanks
Abdul
 
Hi AbdulWahab,

actually, your question is not at all related to Plesk, it is a matter of wrong coding in PHP.

Please see: http://php.net/manual/en/function.symlink.php ( Official PHP reference and documentation )

... which will point you to the right direction, what might be wrong with your PHP scripting(s). Please consider as well to READ the answer(s) for each official PHP documentation, because they mostly contain additional informations and examples.
 
Hi

Thank you for the response.
The same script is working on old server with Plesk 11 and Centos 6.

The problem started after we migrated to newer Plesk 12.5 Server with Centos 7.

I am not sure how this could be php problem.

I look definitely look in the link you provided though.

Thank you for your time.

Abdul
 
Back
Top